[2025-02-14 00:00:05] Production.INFO: next invoice date [2025-02-14 00:00:05] Production.INFO: 2025-03-14 [2025-02-14 00:00:05] Production.INFO: getdaysdiff [2025-02-14 00:00:05] Production.INFO: +28 [2025-02-14 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (43,10,2,28,28,'RMScheduler',2025-02-14 00:00:05,1,0,,,0) [2025-02-14 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:00:07 [end_date_ymd] => 2025-02-14 00:00:07 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:00:07' and `end` < '2025-02-14 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-02-14 00:00:20] Production.INFO: count ==848 [2025-02-14 00:00:21] Production.ERROR: pbx CDR StartTime 2025-02-13 21:00:07 - End Time 2025-02-14 00:00:07 [2025-02-14 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469929', 'tblTempUsageDetail_20' ) start [2025-02-14 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469929', 'tblTempUsageDetail_20' ) end [2025-02-14 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469929', 'tblTempVendorCDR_20' ) start [2025-02-14 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469929', 'tblTempVendorCDR_20' ) end [2025-02-14 00:00:21] Production.INFO: ProcessCDR(1,14469929,1,1,2) [2025-02-14 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469929', 'tblTempUsageDetail_20' ) start [2025-02-14 00:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469929', 'tblTempUsageDetail_20' ) end [2025-02-14 00:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:00:30] Production.INFO: ==23625== Releasing lock... [2025-02-14 00:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:00:30] Production.INFO: 35.5 MB #Memory Used# [2025-02-14 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:01:05 [end_date_ymd] => 2025-02-14 00:01:05 [RateCDR] => 1 ) [2025-02-14 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:01:05' and `end` < '2025-02-14 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:01:18] Production.INFO: count ==798 [2025-02-14 00:01:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:01:05 - End Time 2025-02-14 00:01:05 [2025-02-14 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469934', 'tblTempUsageDetail_20' ) start [2025-02-14 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469934', 'tblTempUsageDetail_20' ) end [2025-02-14 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469934', 'tblTempVendorCDR_20' ) start [2025-02-14 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469934', 'tblTempVendorCDR_20' ) end [2025-02-14 00:01:18] Production.INFO: ProcessCDR(1,14469934,1,1,2) [2025-02-14 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469934', 'tblTempUsageDetail_20' ) start [2025-02-14 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469934', 'tblTempUsageDetail_20' ) end [2025-02-14 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:01:21] Production.INFO: ==23714== Releasing lock... [2025-02-14 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:01:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-14 00:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:02:04 [end_date_ymd] => 2025-02-14 00:02:04 [RateCDR] => 1 ) [2025-02-14 00: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-02-13 21:02:04' and `end` < '2025-02-14 00: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-02-14 00:02:38] Production.INFO: count ==221 [2025-02-14 00:02:38] Production.ERROR: pbx CDR StartTime 2025-02-13 21:02:04 - End Time 2025-02-14 00:02:04 [2025-02-14 00:02:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469939', 'tblTempUsageDetail_20' ) start [2025-02-14 00:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469939', 'tblTempUsageDetail_20' ) end [2025-02-14 00:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469939', 'tblTempVendorCDR_20' ) start [2025-02-14 00:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469939', 'tblTempVendorCDR_20' ) end [2025-02-14 00:02:38] Production.INFO: ProcessCDR(1,14469939,1,1,2) [2025-02-14 00:02:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:02:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:02:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:02:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469939', 'tblTempUsageDetail_20' ) start [2025-02-14 00:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469939', 'tblTempUsageDetail_20' ) end [2025-02-14 00:02:41] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:02:41] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:02:41] Production.INFO: ==23782== Releasing lock... [2025-02-14 00:02:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:02:41] Production.INFO: 30 MB #Memory Used# [2025-02-14 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:03:05 [end_date_ymd] => 2025-02-14 00:03:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:03:05' and `end` < '2025-02-14 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-02-14 00:03:30] Production.INFO: count ==217 [2025-02-14 00:03:30] Production.ERROR: pbx CDR StartTime 2025-02-13 21:03:05 - End Time 2025-02-14 00:03:05 [2025-02-14 00:03:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469944', 'tblTempUsageDetail_20' ) start [2025-02-14 00:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469944', 'tblTempUsageDetail_20' ) end [2025-02-14 00:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469944', 'tblTempVendorCDR_20' ) start [2025-02-14 00:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469944', 'tblTempVendorCDR_20' ) end [2025-02-14 00:03:30] Production.INFO: ProcessCDR(1,14469944,1,1,2) [2025-02-14 00:03:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469944', 'tblTempUsageDetail_20' ) start [2025-02-14 00:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469944', 'tblTempUsageDetail_20' ) end [2025-02-14 00:03:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:03:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:03:33] Production.INFO: ==23895== Releasing lock... [2025-02-14 00:03:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:03:33] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:04:06 [end_date_ymd] => 2025-02-14 00:04:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:04:06' and `end` < '2025-02-14 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-02-14 00:04:36] Production.INFO: count ==215 [2025-02-14 00:04:36] Production.ERROR: pbx CDR StartTime 2025-02-13 21:04:06 - End Time 2025-02-14 00:04:06 [2025-02-14 00:04:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469949', 'tblTempUsageDetail_20' ) start [2025-02-14 00:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469949', 'tblTempUsageDetail_20' ) end [2025-02-14 00:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469949', 'tblTempVendorCDR_20' ) start [2025-02-14 00:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469949', 'tblTempVendorCDR_20' ) end [2025-02-14 00:04:36] Production.INFO: ProcessCDR(1,14469949,1,1,2) [2025-02-14 00:04:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:04:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:04:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:04:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:04:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469949', 'tblTempUsageDetail_20' ) start [2025-02-14 00:04:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469949', 'tblTempUsageDetail_20' ) end [2025-02-14 00:04:40] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:04:40] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:04:40] Production.INFO: ==23965== Releasing lock... [2025-02-14 00:04:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:04:40] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:05:05 [end_date_ymd] => 2025-02-14 00:05:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:05:05' and `end` < '2025-02-14 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-02-14 00:05:28] Production.INFO: count ==215 [2025-02-14 00:05:28] Production.ERROR: pbx CDR StartTime 2025-02-13 21:05:05 - End Time 2025-02-14 00:05:05 [2025-02-14 00:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469954', 'tblTempUsageDetail_20' ) start [2025-02-14 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469954', 'tblTempUsageDetail_20' ) end [2025-02-14 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469954', 'tblTempVendorCDR_20' ) start [2025-02-14 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469954', 'tblTempVendorCDR_20' ) end [2025-02-14 00:05:28] Production.INFO: ProcessCDR(1,14469954,1,1,2) [2025-02-14 00:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469954', 'tblTempUsageDetail_20' ) start [2025-02-14 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469954', 'tblTempUsageDetail_20' ) end [2025-02-14 00:05:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:05:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:05:32] Production.INFO: ==24040== Releasing lock... [2025-02-14 00:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:05:32] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:06:06 [end_date_ymd] => 2025-02-14 00:06:06 [RateCDR] => 1 ) [2025-02-14 00:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:06:06' and `end` < '2025-02-14 00:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:06:28] Production.INFO: count ==214 [2025-02-14 00:06:28] Production.ERROR: pbx CDR StartTime 2025-02-13 21:06:06 - End Time 2025-02-14 00:06:06 [2025-02-14 00:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469959', 'tblTempUsageDetail_20' ) start [2025-02-14 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469959', 'tblTempUsageDetail_20' ) end [2025-02-14 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469959', 'tblTempVendorCDR_20' ) start [2025-02-14 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469959', 'tblTempVendorCDR_20' ) end [2025-02-14 00:06:28] Production.INFO: ProcessCDR(1,14469959,1,1,2) [2025-02-14 00:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469959', 'tblTempUsageDetail_20' ) start [2025-02-14 00:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469959', 'tblTempUsageDetail_20' ) end [2025-02-14 00:06:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:06:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:06:31] Production.INFO: ==24113== Releasing lock... [2025-02-14 00:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:06:31] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:07:05 [end_date_ymd] => 2025-02-14 00:07:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:07:05' and `end` < '2025-02-14 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-02-14 00:07:23] Production.INFO: count ==213 [2025-02-14 00:07:23] Production.ERROR: pbx CDR StartTime 2025-02-13 21:07:05 - End Time 2025-02-14 00:07:05 [2025-02-14 00:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469964', 'tblTempUsageDetail_20' ) start [2025-02-14 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469964', 'tblTempUsageDetail_20' ) end [2025-02-14 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469964', 'tblTempVendorCDR_20' ) start [2025-02-14 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469964', 'tblTempVendorCDR_20' ) end [2025-02-14 00:07:23] Production.INFO: ProcessCDR(1,14469964,1,1,2) [2025-02-14 00:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469964', 'tblTempUsageDetail_20' ) start [2025-02-14 00:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469964', 'tblTempUsageDetail_20' ) end [2025-02-14 00:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:07:27] Production.INFO: ==24183== Releasing lock... [2025-02-14 00:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:07:27] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:08:05 [end_date_ymd] => 2025-02-14 00:08:05 [RateCDR] => 1 ) [2025-02-14 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:08:05' and `end` < '2025-02-14 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:08:18] Production.INFO: count ==213 [2025-02-14 00:08:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:08:05 - End Time 2025-02-14 00:08:05 [2025-02-14 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469969', 'tblTempUsageDetail_20' ) start [2025-02-14 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469969', 'tblTempUsageDetail_20' ) end [2025-02-14 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469969', 'tblTempVendorCDR_20' ) start [2025-02-14 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469969', 'tblTempVendorCDR_20' ) end [2025-02-14 00:08:18] Production.INFO: ProcessCDR(1,14469969,1,1,2) [2025-02-14 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469969', 'tblTempUsageDetail_20' ) start [2025-02-14 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469969', 'tblTempUsageDetail_20' ) end [2025-02-14 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:08:21] Production.INFO: ==24253== Releasing lock... [2025-02-14 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:08:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:09:05 [end_date_ymd] => 2025-02-14 00:09:05 [RateCDR] => 1 ) [2025-02-14 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:09:05' and `end` < '2025-02-14 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:09:18] Production.INFO: count ==217 [2025-02-14 00:09:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:09:05 - End Time 2025-02-14 00:09:05 [2025-02-14 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469974', 'tblTempUsageDetail_20' ) start [2025-02-14 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469974', 'tblTempUsageDetail_20' ) end [2025-02-14 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469974', 'tblTempVendorCDR_20' ) start [2025-02-14 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469974', 'tblTempVendorCDR_20' ) end [2025-02-14 00:09:18] Production.INFO: ProcessCDR(1,14469974,1,1,2) [2025-02-14 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469974', 'tblTempUsageDetail_20' ) start [2025-02-14 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469974', 'tblTempUsageDetail_20' ) end [2025-02-14 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:09:22] Production.INFO: ==24324== Releasing lock... [2025-02-14 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:09:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:10:06 [end_date_ymd] => 2025-02-14 00:10:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:10:06' and `end` < '2025-02-14 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-02-14 00:10:20] Production.INFO: count ==225 [2025-02-14 00:10:20] Production.ERROR: pbx CDR StartTime 2025-02-13 21:10:06 - End Time 2025-02-14 00:10:06 [2025-02-14 00:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469980', 'tblTempUsageDetail_20' ) start [2025-02-14 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469980', 'tblTempUsageDetail_20' ) end [2025-02-14 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469980', 'tblTempVendorCDR_20' ) start [2025-02-14 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469980', 'tblTempVendorCDR_20' ) end [2025-02-14 00:10:20] Production.INFO: ProcessCDR(1,14469980,1,1,2) [2025-02-14 00:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469980', 'tblTempUsageDetail_20' ) start [2025-02-14 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469980', 'tblTempUsageDetail_20' ) end [2025-02-14 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:10:23] Production.INFO: ==24397== Releasing lock... [2025-02-14 00:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:10:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:11:05 [end_date_ymd] => 2025-02-14 00:11:05 [RateCDR] => 1 ) [2025-02-14 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:11:05' and `end` < '2025-02-14 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:11:18] Production.INFO: count ==245 [2025-02-14 00:11:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:11:05 - End Time 2025-02-14 00:11:05 [2025-02-14 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469985', 'tblTempUsageDetail_20' ) start [2025-02-14 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469985', 'tblTempUsageDetail_20' ) end [2025-02-14 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469985', 'tblTempVendorCDR_20' ) start [2025-02-14 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469985', 'tblTempVendorCDR_20' ) end [2025-02-14 00:11:18] Production.INFO: ProcessCDR(1,14469985,1,1,2) [2025-02-14 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469985', 'tblTempUsageDetail_20' ) start [2025-02-14 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469985', 'tblTempUsageDetail_20' ) end [2025-02-14 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:11:21] Production.INFO: ==24474== Releasing lock... [2025-02-14 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:12:05 [end_date_ymd] => 2025-02-14 00:12:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:12:05' and `end` < '2025-02-14 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-02-14 00:12:40] Production.INFO: count ==245 [2025-02-14 00:12:40] Production.ERROR: pbx CDR StartTime 2025-02-13 21:12:05 - End Time 2025-02-14 00:12:05 [2025-02-14 00:12:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:12:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469990', 'tblTempUsageDetail_20' ) start [2025-02-14 00:12:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469990', 'tblTempUsageDetail_20' ) end [2025-02-14 00:12:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469990', 'tblTempVendorCDR_20' ) start [2025-02-14 00:12:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469990', 'tblTempVendorCDR_20' ) end [2025-02-14 00:12:40] Production.INFO: ProcessCDR(1,14469990,1,1,2) [2025-02-14 00:12:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:12:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:12:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:12:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:12:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469990', 'tblTempUsageDetail_20' ) start [2025-02-14 00:12:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469990', 'tblTempUsageDetail_20' ) end [2025-02-14 00:12:43] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:12:43] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:12:43] Production.INFO: ==24546== Releasing lock... [2025-02-14 00:12:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:12:43] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:13:05 [end_date_ymd] => 2025-02-14 00:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:13:05' and `end` < '2025-02-14 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-02-14 00:13:22] Production.INFO: count ==245 [2025-02-14 00:13:22] Production.ERROR: pbx CDR StartTime 2025-02-13 21:13:05 - End Time 2025-02-14 00:13:05 [2025-02-14 00:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469995', 'tblTempUsageDetail_20' ) start [2025-02-14 00:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469995', 'tblTempUsageDetail_20' ) end [2025-02-14 00:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469995', 'tblTempVendorCDR_20' ) start [2025-02-14 00:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469995', 'tblTempVendorCDR_20' ) end [2025-02-14 00:13:22] Production.INFO: ProcessCDR(1,14469995,1,1,2) [2025-02-14 00:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469995', 'tblTempUsageDetail_20' ) start [2025-02-14 00:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469995', 'tblTempUsageDetail_20' ) end [2025-02-14 00:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:13:25] Production.INFO: ==24615== Releasing lock... [2025-02-14 00:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:13:25] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:14:06 [end_date_ymd] => 2025-02-14 00:14:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:14:06' and `end` < '2025-02-14 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-02-14 00:14:19] Production.INFO: count ==244 [2025-02-14 00:14:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:14:06 - End Time 2025-02-14 00:14:06 [2025-02-14 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470000', 'tblTempUsageDetail_20' ) start [2025-02-14 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470000', 'tblTempUsageDetail_20' ) end [2025-02-14 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470000', 'tblTempVendorCDR_20' ) start [2025-02-14 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470000', 'tblTempVendorCDR_20' ) end [2025-02-14 00:14:19] Production.INFO: ProcessCDR(1,14470000,1,1,2) [2025-02-14 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470000', 'tblTempUsageDetail_20' ) start [2025-02-14 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470000', 'tblTempUsageDetail_20' ) end [2025-02-14 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:14:22] Production.INFO: ==24686== Releasing lock... [2025-02-14 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:14:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:15:05 [end_date_ymd] => 2025-02-14 00:15:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:15:05' and `end` < '2025-02-14 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-02-14 00:15:18] Production.INFO: count ==237 [2025-02-14 00:15:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:15:05 - End Time 2025-02-14 00:15:05 [2025-02-14 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470005', 'tblTempUsageDetail_20' ) start [2025-02-14 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470005', 'tblTempUsageDetail_20' ) end [2025-02-14 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470005', 'tblTempVendorCDR_20' ) start [2025-02-14 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470005', 'tblTempVendorCDR_20' ) end [2025-02-14 00:15:18] Production.INFO: ProcessCDR(1,14470005,1,1,2) [2025-02-14 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470005', 'tblTempUsageDetail_20' ) start [2025-02-14 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470005', 'tblTempUsageDetail_20' ) end [2025-02-14 00:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:15:23] Production.INFO: ==24760== Releasing lock... [2025-02-14 00:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:15:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:16:05 [end_date_ymd] => 2025-02-14 00:16:05 [RateCDR] => 1 ) [2025-02-14 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:16:05' and `end` < '2025-02-14 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:16:18] Production.INFO: count ==229 [2025-02-14 00:16:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:16:05 - End Time 2025-02-14 00:16:05 [2025-02-14 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470010', 'tblTempUsageDetail_20' ) start [2025-02-14 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470010', 'tblTempUsageDetail_20' ) end [2025-02-14 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470010', 'tblTempVendorCDR_20' ) start [2025-02-14 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470010', 'tblTempVendorCDR_20' ) end [2025-02-14 00:16:18] Production.INFO: ProcessCDR(1,14470010,1,1,2) [2025-02-14 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470010', 'tblTempUsageDetail_20' ) start [2025-02-14 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470010', 'tblTempUsageDetail_20' ) end [2025-02-14 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:16:21] Production.INFO: ==24831== Releasing lock... [2025-02-14 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:17:05 [end_date_ymd] => 2025-02-14 00:17:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:17:05' and `end` < '2025-02-14 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-02-14 00:17:19] Production.INFO: count ==229 [2025-02-14 00:17:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:17:05 - End Time 2025-02-14 00:17:05 [2025-02-14 00:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470015', 'tblTempUsageDetail_20' ) start [2025-02-14 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470015', 'tblTempUsageDetail_20' ) end [2025-02-14 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470015', 'tblTempVendorCDR_20' ) start [2025-02-14 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470015', 'tblTempVendorCDR_20' ) end [2025-02-14 00:17:19] Production.INFO: ProcessCDR(1,14470015,1,1,2) [2025-02-14 00:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470015', 'tblTempUsageDetail_20' ) start [2025-02-14 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470015', 'tblTempUsageDetail_20' ) end [2025-02-14 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:17:22] Production.INFO: ==24903== Releasing lock... [2025-02-14 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:17:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:18:05 [end_date_ymd] => 2025-02-14 00:18:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:18:05' and `end` < '2025-02-14 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-02-14 00:18:18] Production.INFO: count ==229 [2025-02-14 00:18:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:18:05 - End Time 2025-02-14 00:18:05 [2025-02-14 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470020', 'tblTempUsageDetail_20' ) start [2025-02-14 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470020', 'tblTempUsageDetail_20' ) end [2025-02-14 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470020', 'tblTempVendorCDR_20' ) start [2025-02-14 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470020', 'tblTempVendorCDR_20' ) end [2025-02-14 00:18:19] Production.INFO: ProcessCDR(1,14470020,1,1,2) [2025-02-14 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470020', 'tblTempUsageDetail_20' ) start [2025-02-14 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470020', 'tblTempUsageDetail_20' ) end [2025-02-14 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:18:22] Production.INFO: ==25026== Releasing lock... [2025-02-14 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:18:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:19:04 [end_date_ymd] => 2025-02-14 00:19:04 [RateCDR] => 1 ) [2025-02-14 00: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-02-13 21:19:04' and `end` < '2025-02-14 00: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-02-14 00:19:18] Production.INFO: count ==229 [2025-02-14 00:19:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:19:04 - End Time 2025-02-14 00:19:04 [2025-02-14 00:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470025', 'tblTempUsageDetail_20' ) start [2025-02-14 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470025', 'tblTempUsageDetail_20' ) end [2025-02-14 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470025', 'tblTempVendorCDR_20' ) start [2025-02-14 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470025', 'tblTempVendorCDR_20' ) end [2025-02-14 00:19:19] Production.INFO: ProcessCDR(1,14470025,1,1,2) [2025-02-14 00:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470025', 'tblTempUsageDetail_20' ) start [2025-02-14 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470025', 'tblTempUsageDetail_20' ) end [2025-02-14 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:19:22] Production.INFO: ==25096== Releasing lock... [2025-02-14 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:19:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:20:06 [end_date_ymd] => 2025-02-14 00:20:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:20:06' and `end` < '2025-02-14 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-02-14 00:20:19] Production.INFO: count ==236 [2025-02-14 00:20:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:20:06 - End Time 2025-02-14 00:20:06 [2025-02-14 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470030', 'tblTempUsageDetail_20' ) start [2025-02-14 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470030', 'tblTempUsageDetail_20' ) end [2025-02-14 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470030', 'tblTempVendorCDR_20' ) start [2025-02-14 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470030', 'tblTempVendorCDR_20' ) end [2025-02-14 00:20:19] Production.INFO: ProcessCDR(1,14470030,1,1,2) [2025-02-14 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470030', 'tblTempUsageDetail_20' ) start [2025-02-14 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470030', 'tblTempUsageDetail_20' ) end [2025-02-14 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:20:23] Production.INFO: ==25184== Releasing lock... [2025-02-14 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:20:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:21:05 [end_date_ymd] => 2025-02-14 00:21:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:21:05' and `end` < '2025-02-14 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-02-14 00:21:18] Production.INFO: count ==235 [2025-02-14 00:21:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:21:05 - End Time 2025-02-14 00:21:05 [2025-02-14 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470036', 'tblTempUsageDetail_20' ) start [2025-02-14 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470036', 'tblTempUsageDetail_20' ) end [2025-02-14 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470036', 'tblTempVendorCDR_20' ) start [2025-02-14 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470036', 'tblTempVendorCDR_20' ) end [2025-02-14 00:21:18] Production.INFO: ProcessCDR(1,14470036,1,1,2) [2025-02-14 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470036', 'tblTempUsageDetail_20' ) start [2025-02-14 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470036', 'tblTempUsageDetail_20' ) end [2025-02-14 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:21:21] Production.INFO: ==25257== Releasing lock... [2025-02-14 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:22:05 [end_date_ymd] => 2025-02-14 00:22:05 [RateCDR] => 1 ) [2025-02-14 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:22:05' and `end` < '2025-02-14 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:22:20] Production.INFO: count ==238 [2025-02-14 00:22:20] Production.ERROR: pbx CDR StartTime 2025-02-13 21:22:05 - End Time 2025-02-14 00:22:05 [2025-02-14 00:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470041', 'tblTempUsageDetail_20' ) start [2025-02-14 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470041', 'tblTempUsageDetail_20' ) end [2025-02-14 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470041', 'tblTempVendorCDR_20' ) start [2025-02-14 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470041', 'tblTempVendorCDR_20' ) end [2025-02-14 00:22:20] Production.INFO: ProcessCDR(1,14470041,1,1,2) [2025-02-14 00:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470041', 'tblTempUsageDetail_20' ) start [2025-02-14 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470041', 'tblTempUsageDetail_20' ) end [2025-02-14 00:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:22:23] Production.INFO: ==25328== Releasing lock... [2025-02-14 00:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:22:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:23:04 [end_date_ymd] => 2025-02-14 00:23:04 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:23:04' and `end` < '2025-02-14 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-02-14 00:23:18] Production.INFO: count ==235 [2025-02-14 00:23:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:23:04 - End Time 2025-02-14 00:23:04 [2025-02-14 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470046', 'tblTempUsageDetail_20' ) start [2025-02-14 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470046', 'tblTempUsageDetail_20' ) end [2025-02-14 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470046', 'tblTempVendorCDR_20' ) start [2025-02-14 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470046', 'tblTempVendorCDR_20' ) end [2025-02-14 00:23:18] Production.INFO: ProcessCDR(1,14470046,1,1,2) [2025-02-14 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470046', 'tblTempUsageDetail_20' ) start [2025-02-14 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470046', 'tblTempUsageDetail_20' ) end [2025-02-14 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:23:21] Production.INFO: ==25401== Releasing lock... [2025-02-14 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:24:05 [end_date_ymd] => 2025-02-14 00:24:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:24:05' and `end` < '2025-02-14 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-02-14 00:24:18] Production.INFO: count ==232 [2025-02-14 00:24:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:24:05 - End Time 2025-02-14 00:24:05 [2025-02-14 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470051', 'tblTempUsageDetail_20' ) start [2025-02-14 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470051', 'tblTempUsageDetail_20' ) end [2025-02-14 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470051', 'tblTempVendorCDR_20' ) start [2025-02-14 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470051', 'tblTempVendorCDR_20' ) end [2025-02-14 00:24:18] Production.INFO: ProcessCDR(1,14470051,1,1,2) [2025-02-14 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470051', 'tblTempUsageDetail_20' ) start [2025-02-14 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470051', 'tblTempUsageDetail_20' ) end [2025-02-14 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:24:22] Production.INFO: ==25473== Releasing lock... [2025-02-14 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:24:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:25:06 [end_date_ymd] => 2025-02-14 00:25:06 [RateCDR] => 1 ) [2025-02-14 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:25:06' and `end` < '2025-02-14 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:25:19] Production.INFO: count ==230 [2025-02-14 00:25:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:25:06 - End Time 2025-02-14 00:25:06 [2025-02-14 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470056', 'tblTempUsageDetail_20' ) start [2025-02-14 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470056', 'tblTempUsageDetail_20' ) end [2025-02-14 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470056', 'tblTempVendorCDR_20' ) start [2025-02-14 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470056', 'tblTempVendorCDR_20' ) end [2025-02-14 00:25:19] Production.INFO: ProcessCDR(1,14470056,1,1,2) [2025-02-14 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470056', 'tblTempUsageDetail_20' ) start [2025-02-14 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470056', 'tblTempUsageDetail_20' ) end [2025-02-14 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:25:22] Production.INFO: ==25549== Releasing lock... [2025-02-14 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:25:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-14 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:26:05 [end_date_ymd] => 2025-02-14 00:26:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:26:05' and `end` < '2025-02-14 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-02-14 00:26:18] Production.INFO: count ==235 [2025-02-14 00:26:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:26:05 - End Time 2025-02-14 00:26:05 [2025-02-14 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470061', 'tblTempUsageDetail_20' ) start [2025-02-14 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470061', 'tblTempUsageDetail_20' ) end [2025-02-14 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470061', 'tblTempVendorCDR_20' ) start [2025-02-14 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470061', 'tblTempVendorCDR_20' ) end [2025-02-14 00:26:18] Production.INFO: ProcessCDR(1,14470061,1,1,2) [2025-02-14 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470061', 'tblTempUsageDetail_20' ) start [2025-02-14 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470061', 'tblTempUsageDetail_20' ) end [2025-02-14 00:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:26:23] Production.INFO: ==25618== Releasing lock... [2025-02-14 00:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:26:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:27:06 [end_date_ymd] => 2025-02-14 00:27:06 [RateCDR] => 1 ) [2025-02-14 00: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-02-13 21:27:06' and `end` < '2025-02-14 00: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-02-14 00:27:19] Production.INFO: count ==235 [2025-02-14 00:27:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:27:06 - End Time 2025-02-14 00:27:06 [2025-02-14 00:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470066', 'tblTempUsageDetail_20' ) start [2025-02-14 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470066', 'tblTempUsageDetail_20' ) end [2025-02-14 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470066', 'tblTempVendorCDR_20' ) start [2025-02-14 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470066', 'tblTempVendorCDR_20' ) end [2025-02-14 00:27:19] Production.INFO: ProcessCDR(1,14470066,1,1,2) [2025-02-14 00:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470066', 'tblTempUsageDetail_20' ) start [2025-02-14 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470066', 'tblTempUsageDetail_20' ) end [2025-02-14 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:27:22] Production.INFO: ==25689== Releasing lock... [2025-02-14 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:27:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:28:06 [end_date_ymd] => 2025-02-14 00:28:06 [RateCDR] => 1 ) [2025-02-14 00:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:28:06' and `end` < '2025-02-14 00:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:28:20] Production.INFO: count ==228 [2025-02-14 00:28:20] Production.ERROR: pbx CDR StartTime 2025-02-13 21:28:06 - End Time 2025-02-14 00:28:06 [2025-02-14 00:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470071', 'tblTempUsageDetail_20' ) start [2025-02-14 00:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470071', 'tblTempUsageDetail_20' ) end [2025-02-14 00:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470071', 'tblTempVendorCDR_20' ) start [2025-02-14 00:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470071', 'tblTempVendorCDR_20' ) end [2025-02-14 00:28:20] Production.INFO: ProcessCDR(1,14470071,1,1,2) [2025-02-14 00:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470071', 'tblTempUsageDetail_20' ) start [2025-02-14 00:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470071', 'tblTempUsageDetail_20' ) end [2025-02-14 00:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:28:23] Production.INFO: ==25760== Releasing lock... [2025-02-14 00:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:28:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:29:04 [end_date_ymd] => 2025-02-14 00:29:04 [RateCDR] => 1 ) [2025-02-14 00: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-02-13 21:29:04' and `end` < '2025-02-14 00: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-02-14 00:29:17] Production.INFO: count ==228 [2025-02-14 00:29:17] Production.ERROR: pbx CDR StartTime 2025-02-13 21:29:04 - End Time 2025-02-14 00:29:04 [2025-02-14 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470076', 'tblTempUsageDetail_20' ) start [2025-02-14 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470076', 'tblTempUsageDetail_20' ) end [2025-02-14 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470076', 'tblTempVendorCDR_20' ) start [2025-02-14 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470076', 'tblTempVendorCDR_20' ) end [2025-02-14 00:29:17] Production.INFO: ProcessCDR(1,14470076,1,1,2) [2025-02-14 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470076', 'tblTempUsageDetail_20' ) start [2025-02-14 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470076', 'tblTempUsageDetail_20' ) end [2025-02-14 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:29:21] Production.INFO: ==25832== Releasing lock... [2025-02-14 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:30:06 [end_date_ymd] => 2025-02-14 00:30:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:30:06' and `end` < '2025-02-14 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-02-14 00:30:19] Production.INFO: count ==235 [2025-02-14 00:30:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:30:06 - End Time 2025-02-14 00:30:06 [2025-02-14 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470081', 'tblTempUsageDetail_20' ) start [2025-02-14 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470081', 'tblTempUsageDetail_20' ) end [2025-02-14 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470081', 'tblTempVendorCDR_20' ) start [2025-02-14 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470081', 'tblTempVendorCDR_20' ) end [2025-02-14 00:30:19] Production.INFO: ProcessCDR(1,14470081,1,1,2) [2025-02-14 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470081', 'tblTempUsageDetail_20' ) start [2025-02-14 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470081', 'tblTempUsageDetail_20' ) end [2025-02-14 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:30:23] Production.INFO: ==25904== Releasing lock... [2025-02-14 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:30:23] Production.INFO: 30 MB #Memory Used# [2025-02-14 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:31:06 [end_date_ymd] => 2025-02-14 00:31:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:31:06' and `end` < '2025-02-14 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-02-14 00:31:19] Production.INFO: count ==237 [2025-02-14 00:31:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:31:06 - End Time 2025-02-14 00:31:06 [2025-02-14 00:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470087', 'tblTempUsageDetail_20' ) start [2025-02-14 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470087', 'tblTempUsageDetail_20' ) end [2025-02-14 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470087', 'tblTempVendorCDR_20' ) start [2025-02-14 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470087', 'tblTempVendorCDR_20' ) end [2025-02-14 00:31:19] Production.INFO: ProcessCDR(1,14470087,1,1,2) [2025-02-14 00:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470087', 'tblTempUsageDetail_20' ) start [2025-02-14 00:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470087', 'tblTempUsageDetail_20' ) end [2025-02-14 00:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:31:24] Production.INFO: ==25977== Releasing lock... [2025-02-14 00:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:31:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:32:05 [end_date_ymd] => 2025-02-14 00:32:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:32:05' and `end` < '2025-02-14 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-02-14 00:32:18] Production.INFO: count ==237 [2025-02-14 00:32:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:32:05 - End Time 2025-02-14 00:32:05 [2025-02-14 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470092', 'tblTempUsageDetail_20' ) start [2025-02-14 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470092', 'tblTempUsageDetail_20' ) end [2025-02-14 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470092', 'tblTempVendorCDR_20' ) start [2025-02-14 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470092', 'tblTempVendorCDR_20' ) end [2025-02-14 00:32:18] Production.INFO: ProcessCDR(1,14470092,1,1,2) [2025-02-14 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470092', 'tblTempUsageDetail_20' ) start [2025-02-14 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470092', 'tblTempUsageDetail_20' ) end [2025-02-14 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:32:22] Production.INFO: ==26046== Releasing lock... [2025-02-14 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:32:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:33:05 [end_date_ymd] => 2025-02-14 00:33:05 [RateCDR] => 1 ) [2025-02-14 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:33:05' and `end` < '2025-02-14 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:33:18] Production.INFO: count ==238 [2025-02-14 00:33:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:33:05 - End Time 2025-02-14 00:33:05 [2025-02-14 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470097', 'tblTempUsageDetail_20' ) start [2025-02-14 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470097', 'tblTempUsageDetail_20' ) end [2025-02-14 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470097', 'tblTempVendorCDR_20' ) start [2025-02-14 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470097', 'tblTempVendorCDR_20' ) end [2025-02-14 00:33:18] Production.INFO: ProcessCDR(1,14470097,1,1,2) [2025-02-14 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470097', 'tblTempUsageDetail_20' ) start [2025-02-14 00:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470097', 'tblTempUsageDetail_20' ) end [2025-02-14 00:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:33:23] Production.INFO: ==26116== Releasing lock... [2025-02-14 00:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:33:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:34:06 [end_date_ymd] => 2025-02-14 00:34:06 [RateCDR] => 1 ) [2025-02-14 00:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:34:06' and `end` < '2025-02-14 00:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:34:19] Production.INFO: count ==236 [2025-02-14 00:34:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:34:06 - End Time 2025-02-14 00:34:06 [2025-02-14 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470102', 'tblTempUsageDetail_20' ) start [2025-02-14 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470102', 'tblTempUsageDetail_20' ) end [2025-02-14 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470102', 'tblTempVendorCDR_20' ) start [2025-02-14 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470102', 'tblTempVendorCDR_20' ) end [2025-02-14 00:34:19] Production.INFO: ProcessCDR(1,14470102,1,1,2) [2025-02-14 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470102', 'tblTempUsageDetail_20' ) start [2025-02-14 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470102', 'tblTempUsageDetail_20' ) end [2025-02-14 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:34:22] Production.INFO: ==26227== Releasing lock... [2025-02-14 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:34:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:35:06 [end_date_ymd] => 2025-02-14 00:35:06 [RateCDR] => 1 ) [2025-02-14 00: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-02-13 21:35:06' and `end` < '2025-02-14 00: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-02-14 00:35:19] Production.INFO: count ==235 [2025-02-14 00:35:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:35:06 - End Time 2025-02-14 00:35:06 [2025-02-14 00:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470107', 'tblTempUsageDetail_20' ) start [2025-02-14 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470107', 'tblTempUsageDetail_20' ) end [2025-02-14 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470107', 'tblTempVendorCDR_20' ) start [2025-02-14 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470107', 'tblTempVendorCDR_20' ) end [2025-02-14 00:35:19] Production.INFO: ProcessCDR(1,14470107,1,1,2) [2025-02-14 00:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470107', 'tblTempUsageDetail_20' ) start [2025-02-14 00:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470107', 'tblTempUsageDetail_20' ) end [2025-02-14 00:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:35:23] Production.INFO: ==26299== Releasing lock... [2025-02-14 00:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:35:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:36:06 [end_date_ymd] => 2025-02-14 00:36:06 [RateCDR] => 1 ) [2025-02-14 00:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:36:06' and `end` < '2025-02-14 00:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:36:19] Production.INFO: count ==235 [2025-02-14 00:36:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:36:06 - End Time 2025-02-14 00:36:06 [2025-02-14 00:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470112', 'tblTempUsageDetail_20' ) start [2025-02-14 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470112', 'tblTempUsageDetail_20' ) end [2025-02-14 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470112', 'tblTempVendorCDR_20' ) start [2025-02-14 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470112', 'tblTempVendorCDR_20' ) end [2025-02-14 00:36:19] Production.INFO: ProcessCDR(1,14470112,1,1,2) [2025-02-14 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470112', 'tblTempUsageDetail_20' ) start [2025-02-14 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470112', 'tblTempUsageDetail_20' ) end [2025-02-14 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:36:22] Production.INFO: ==26370== Releasing lock... [2025-02-14 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:36:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:37:05 [end_date_ymd] => 2025-02-14 00:37:05 [RateCDR] => 1 ) [2025-02-14 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:37:05' and `end` < '2025-02-14 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:37:18] Production.INFO: count ==235 [2025-02-14 00:37:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:37:05 - End Time 2025-02-14 00:37:05 [2025-02-14 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470117', 'tblTempUsageDetail_20' ) start [2025-02-14 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470117', 'tblTempUsageDetail_20' ) end [2025-02-14 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470117', 'tblTempVendorCDR_20' ) start [2025-02-14 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470117', 'tblTempVendorCDR_20' ) end [2025-02-14 00:37:19] Production.INFO: ProcessCDR(1,14470117,1,1,2) [2025-02-14 00:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470117', 'tblTempUsageDetail_20' ) start [2025-02-14 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470117', 'tblTempUsageDetail_20' ) end [2025-02-14 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:37:22] Production.INFO: ==26441== Releasing lock... [2025-02-14 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:37:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:38:05 [end_date_ymd] => 2025-02-14 00:38:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:38:05' and `end` < '2025-02-14 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-02-14 00:38:20] Production.INFO: count ==235 [2025-02-14 00:38:20] Production.ERROR: pbx CDR StartTime 2025-02-13 21:38:05 - End Time 2025-02-14 00:38:05 [2025-02-14 00:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470122', 'tblTempUsageDetail_20' ) start [2025-02-14 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470122', 'tblTempUsageDetail_20' ) end [2025-02-14 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470122', 'tblTempVendorCDR_20' ) start [2025-02-14 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470122', 'tblTempVendorCDR_20' ) end [2025-02-14 00:38:20] Production.INFO: ProcessCDR(1,14470122,1,1,2) [2025-02-14 00:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470122', 'tblTempUsageDetail_20' ) start [2025-02-14 00:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470122', 'tblTempUsageDetail_20' ) end [2025-02-14 00:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:38:24] Production.INFO: ==26511== Releasing lock... [2025-02-14 00:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:38:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:39:06 [end_date_ymd] => 2025-02-14 00:39:06 [RateCDR] => 1 ) [2025-02-14 00:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:39:06' and `end` < '2025-02-14 00:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:39:19] Production.INFO: count ==233 [2025-02-14 00:39:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:39:06 - End Time 2025-02-14 00:39:06 [2025-02-14 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470127', 'tblTempUsageDetail_20' ) start [2025-02-14 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470127', 'tblTempUsageDetail_20' ) end [2025-02-14 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470127', 'tblTempVendorCDR_20' ) start [2025-02-14 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470127', 'tblTempVendorCDR_20' ) end [2025-02-14 00:39:19] Production.INFO: ProcessCDR(1,14470127,1,1,2) [2025-02-14 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470127', 'tblTempUsageDetail_20' ) start [2025-02-14 00:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470127', 'tblTempUsageDetail_20' ) end [2025-02-14 00:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:39:24] Production.INFO: ==26581== Releasing lock... [2025-02-14 00:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:39:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:40:06 [end_date_ymd] => 2025-02-14 00:40:06 [RateCDR] => 1 ) [2025-02-14 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:40:06' and `end` < '2025-02-14 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:40:19] Production.INFO: count ==241 [2025-02-14 00:40:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:40:06 - End Time 2025-02-14 00:40:06 [2025-02-14 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470132', 'tblTempUsageDetail_20' ) start [2025-02-14 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470132', 'tblTempUsageDetail_20' ) end [2025-02-14 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470132', 'tblTempVendorCDR_20' ) start [2025-02-14 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470132', 'tblTempVendorCDR_20' ) end [2025-02-14 00:40:19] Production.INFO: ProcessCDR(1,14470132,1,1,2) [2025-02-14 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470132', 'tblTempUsageDetail_20' ) start [2025-02-14 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470132', 'tblTempUsageDetail_20' ) end [2025-02-14 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:40:22] Production.INFO: ==26653== Releasing lock... [2025-02-14 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:41:06 [end_date_ymd] => 2025-02-14 00:41:06 [RateCDR] => 1 ) [2025-02-14 00: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-02-13 21:41:06' and `end` < '2025-02-14 00: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-02-14 00:41:18] Production.INFO: count ==246 [2025-02-14 00:41:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:41:06 - End Time 2025-02-14 00:41:06 [2025-02-14 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470138', 'tblTempUsageDetail_20' ) start [2025-02-14 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470138', 'tblTempUsageDetail_20' ) end [2025-02-14 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470138', 'tblTempVendorCDR_20' ) start [2025-02-14 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470138', 'tblTempVendorCDR_20' ) end [2025-02-14 00:41:18] Production.INFO: ProcessCDR(1,14470138,1,1,2) [2025-02-14 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470138', 'tblTempUsageDetail_20' ) start [2025-02-14 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470138', 'tblTempUsageDetail_20' ) end [2025-02-14 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:41:22] Production.INFO: ==26727== Releasing lock... [2025-02-14 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:41:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:42:05 [end_date_ymd] => 2025-02-14 00:42:05 [RateCDR] => 1 ) [2025-02-14 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:42:05' and `end` < '2025-02-14 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:42:18] Production.INFO: count ==240 [2025-02-14 00:42:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:42:05 - End Time 2025-02-14 00:42:05 [2025-02-14 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470143', 'tblTempUsageDetail_20' ) start [2025-02-14 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470143', 'tblTempUsageDetail_20' ) end [2025-02-14 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470143', 'tblTempVendorCDR_20' ) start [2025-02-14 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470143', 'tblTempVendorCDR_20' ) end [2025-02-14 00:42:18] Production.INFO: ProcessCDR(1,14470143,1,1,2) [2025-02-14 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470143', 'tblTempUsageDetail_20' ) start [2025-02-14 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470143', 'tblTempUsageDetail_20' ) end [2025-02-14 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:42:21] Production.INFO: ==26799== Releasing lock... [2025-02-14 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:42:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:43:06 [end_date_ymd] => 2025-02-14 00:43:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:43:06' and `end` < '2025-02-14 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-02-14 00:43:19] Production.INFO: count ==241 [2025-02-14 00:43:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:43:06 - End Time 2025-02-14 00:43:06 [2025-02-14 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470148', 'tblTempUsageDetail_20' ) start [2025-02-14 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470148', 'tblTempUsageDetail_20' ) end [2025-02-14 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470148', 'tblTempVendorCDR_20' ) start [2025-02-14 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470148', 'tblTempVendorCDR_20' ) end [2025-02-14 00:43:19] Production.INFO: ProcessCDR(1,14470148,1,1,2) [2025-02-14 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470148', 'tblTempUsageDetail_20' ) start [2025-02-14 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470148', 'tblTempUsageDetail_20' ) end [2025-02-14 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:43:22] Production.INFO: ==26870== Releasing lock... [2025-02-14 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:44:05 [end_date_ymd] => 2025-02-14 00:44:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:44:05' and `end` < '2025-02-14 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-02-14 00:44:19] Production.INFO: count ==244 [2025-02-14 00:44:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:44:05 - End Time 2025-02-14 00:44:05 [2025-02-14 00:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470153', 'tblTempUsageDetail_20' ) start [2025-02-14 00:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470153', 'tblTempUsageDetail_20' ) end [2025-02-14 00:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470153', 'tblTempVendorCDR_20' ) start [2025-02-14 00:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470153', 'tblTempVendorCDR_20' ) end [2025-02-14 00:44:20] Production.INFO: ProcessCDR(1,14470153,1,1,2) [2025-02-14 00:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470153', 'tblTempUsageDetail_20' ) start [2025-02-14 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470153', 'tblTempUsageDetail_20' ) end [2025-02-14 00:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:44:23] Production.INFO: ==26945== Releasing lock... [2025-02-14 00:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:44:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:45:05 [end_date_ymd] => 2025-02-14 00:45:05 [RateCDR] => 1 ) [2025-02-14 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:45:05' and `end` < '2025-02-14 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:45:18] Production.INFO: count ==244 [2025-02-14 00:45:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:45:05 - End Time 2025-02-14 00:45:05 [2025-02-14 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470158', 'tblTempUsageDetail_20' ) start [2025-02-14 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470158', 'tblTempUsageDetail_20' ) end [2025-02-14 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470158', 'tblTempVendorCDR_20' ) start [2025-02-14 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470158', 'tblTempVendorCDR_20' ) end [2025-02-14 00:45:18] Production.INFO: ProcessCDR(1,14470158,1,1,2) [2025-02-14 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470158', 'tblTempUsageDetail_20' ) start [2025-02-14 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470158', 'tblTempUsageDetail_20' ) end [2025-02-14 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:45:22] Production.INFO: ==27016== Releasing lock... [2025-02-14 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:45:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:46:05 [end_date_ymd] => 2025-02-14 00:46:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:46:05' and `end` < '2025-02-14 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-02-14 00:46:20] Production.INFO: count ==243 [2025-02-14 00:46:20] Production.ERROR: pbx CDR StartTime 2025-02-13 21:46:05 - End Time 2025-02-14 00:46:05 [2025-02-14 00:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470163', 'tblTempUsageDetail_20' ) start [2025-02-14 00:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470163', 'tblTempUsageDetail_20' ) end [2025-02-14 00:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470163', 'tblTempVendorCDR_20' ) start [2025-02-14 00:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470163', 'tblTempVendorCDR_20' ) end [2025-02-14 00:46:20] Production.INFO: ProcessCDR(1,14470163,1,1,2) [2025-02-14 00:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470163', 'tblTempUsageDetail_20' ) start [2025-02-14 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470163', 'tblTempUsageDetail_20' ) end [2025-02-14 00:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:46:23] Production.INFO: ==27087== Releasing lock... [2025-02-14 00:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:46:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:47:05 [end_date_ymd] => 2025-02-14 00:47:05 [RateCDR] => 1 ) [2025-02-14 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:47:05' and `end` < '2025-02-14 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-02-14 00:47:20] Production.INFO: count ==247 [2025-02-14 00:47:20] Production.ERROR: pbx CDR StartTime 2025-02-13 21:47:05 - End Time 2025-02-14 00:47:05 [2025-02-14 00:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470168', 'tblTempUsageDetail_20' ) start [2025-02-14 00:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470168', 'tblTempUsageDetail_20' ) end [2025-02-14 00:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470168', 'tblTempVendorCDR_20' ) start [2025-02-14 00:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470168', 'tblTempVendorCDR_20' ) end [2025-02-14 00:47:20] Production.INFO: ProcessCDR(1,14470168,1,1,2) [2025-02-14 00:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470168', 'tblTempUsageDetail_20' ) start [2025-02-14 00:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470168', 'tblTempUsageDetail_20' ) end [2025-02-14 00:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:47:23] Production.INFO: ==27158== Releasing lock... [2025-02-14 00:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:47:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:48:05 [end_date_ymd] => 2025-02-14 00:48:05 [RateCDR] => 1 ) [2025-02-14 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:48:05' and `end` < '2025-02-14 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:48:20] Production.INFO: count ==246 [2025-02-14 00:48:20] Production.ERROR: pbx CDR StartTime 2025-02-13 21:48:05 - End Time 2025-02-14 00:48:05 [2025-02-14 00:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470173', 'tblTempUsageDetail_20' ) start [2025-02-14 00:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470173', 'tblTempUsageDetail_20' ) end [2025-02-14 00:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470173', 'tblTempVendorCDR_20' ) start [2025-02-14 00:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470173', 'tblTempVendorCDR_20' ) end [2025-02-14 00:48:20] Production.INFO: ProcessCDR(1,14470173,1,1,2) [2025-02-14 00:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470173', 'tblTempUsageDetail_20' ) start [2025-02-14 00:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470173', 'tblTempUsageDetail_20' ) end [2025-02-14 00:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:48:24] Production.INFO: ==27227== Releasing lock... [2025-02-14 00:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:48:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:49:06 [end_date_ymd] => 2025-02-14 00:49:06 [RateCDR] => 1 ) [2025-02-14 00: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-02-13 21:49:06' and `end` < '2025-02-14 00: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-02-14 00:49:20] Production.INFO: count ==246 [2025-02-14 00:49:20] Production.ERROR: pbx CDR StartTime 2025-02-13 21:49:06 - End Time 2025-02-14 00:49:06 [2025-02-14 00:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470178', 'tblTempUsageDetail_20' ) start [2025-02-14 00:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470178', 'tblTempUsageDetail_20' ) end [2025-02-14 00:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470178', 'tblTempVendorCDR_20' ) start [2025-02-14 00:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470178', 'tblTempVendorCDR_20' ) end [2025-02-14 00:49:20] Production.INFO: ProcessCDR(1,14470178,1,1,2) [2025-02-14 00:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470178', 'tblTempUsageDetail_20' ) start [2025-02-14 00:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470178', 'tblTempUsageDetail_20' ) end [2025-02-14 00:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:49:23] Production.INFO: ==27339== Releasing lock... [2025-02-14 00:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:49:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:50:05 [end_date_ymd] => 2025-02-14 00:50:05 [RateCDR] => 1 ) [2025-02-14 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:50:05' and `end` < '2025-02-14 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:50:18] Production.INFO: count ==256 [2025-02-14 00:50:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:50:05 - End Time 2025-02-14 00:50:05 [2025-02-14 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470183', 'tblTempUsageDetail_20' ) start [2025-02-14 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470183', 'tblTempUsageDetail_20' ) end [2025-02-14 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470183', 'tblTempVendorCDR_20' ) start [2025-02-14 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470183', 'tblTempVendorCDR_20' ) end [2025-02-14 00:50:18] Production.INFO: ProcessCDR(1,14470183,1,1,2) [2025-02-14 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470183', 'tblTempUsageDetail_20' ) start [2025-02-14 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470183', 'tblTempUsageDetail_20' ) end [2025-02-14 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:50:21] Production.INFO: ==27410== Releasing lock... [2025-02-14 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:50:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:51:05 [end_date_ymd] => 2025-02-14 00:51:05 [RateCDR] => 1 ) [2025-02-14 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:51:05' and `end` < '2025-02-14 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:51:19] Production.INFO: count ==268 [2025-02-14 00:51:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:51:05 - End Time 2025-02-14 00:51:05 [2025-02-14 00:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470189', 'tblTempUsageDetail_20' ) start [2025-02-14 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470189', 'tblTempUsageDetail_20' ) end [2025-02-14 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470189', 'tblTempVendorCDR_20' ) start [2025-02-14 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470189', 'tblTempVendorCDR_20' ) end [2025-02-14 00:51:19] Production.INFO: ProcessCDR(1,14470189,1,1,2) [2025-02-14 00:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470189', 'tblTempUsageDetail_20' ) start [2025-02-14 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470189', 'tblTempUsageDetail_20' ) end [2025-02-14 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:51:22] Production.INFO: ==27484== Releasing lock... [2025-02-14 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:51:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:52:05 [end_date_ymd] => 2025-02-14 00:52:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:52:05' and `end` < '2025-02-14 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-02-14 00:52:18] Production.INFO: count ==264 [2025-02-14 00:52:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:52:05 - End Time 2025-02-14 00:52:05 [2025-02-14 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470194', 'tblTempUsageDetail_20' ) start [2025-02-14 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470194', 'tblTempUsageDetail_20' ) end [2025-02-14 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470194', 'tblTempVendorCDR_20' ) start [2025-02-14 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470194', 'tblTempVendorCDR_20' ) end [2025-02-14 00:52:18] Production.INFO: ProcessCDR(1,14470194,1,1,2) [2025-02-14 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470194', 'tblTempUsageDetail_20' ) start [2025-02-14 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470194', 'tblTempUsageDetail_20' ) end [2025-02-14 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:52:21] Production.INFO: ==27554== Releasing lock... [2025-02-14 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:52:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:53:05 [end_date_ymd] => 2025-02-14 00:53:05 [RateCDR] => 1 ) [2025-02-14 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:53:05' and `end` < '2025-02-14 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:53:18] Production.INFO: count ==263 [2025-02-14 00:53:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:53:05 - End Time 2025-02-14 00:53:05 [2025-02-14 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470199', 'tblTempUsageDetail_20' ) start [2025-02-14 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470199', 'tblTempUsageDetail_20' ) end [2025-02-14 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470199', 'tblTempVendorCDR_20' ) start [2025-02-14 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470199', 'tblTempVendorCDR_20' ) end [2025-02-14 00:53:18] Production.INFO: ProcessCDR(1,14470199,1,1,2) [2025-02-14 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470199', 'tblTempUsageDetail_20' ) start [2025-02-14 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470199', 'tblTempUsageDetail_20' ) end [2025-02-14 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:53:22] Production.INFO: ==27628== Releasing lock... [2025-02-14 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:53:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 00:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:54:04 [end_date_ymd] => 2025-02-14 00:54:04 [RateCDR] => 1 ) [2025-02-14 00:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 21:54:04' and `end` < '2025-02-14 00:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 00:54:18] Production.INFO: count ==266 [2025-02-14 00:54:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:54:04 - End Time 2025-02-14 00:54:04 [2025-02-14 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470204', 'tblTempUsageDetail_20' ) start [2025-02-14 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470204', 'tblTempUsageDetail_20' ) end [2025-02-14 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470204', 'tblTempVendorCDR_20' ) start [2025-02-14 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470204', 'tblTempVendorCDR_20' ) end [2025-02-14 00:54:18] Production.INFO: ProcessCDR(1,14470204,1,1,2) [2025-02-14 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470204', 'tblTempUsageDetail_20' ) start [2025-02-14 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470204', 'tblTempUsageDetail_20' ) end [2025-02-14 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:54:21] Production.INFO: ==27699== Releasing lock... [2025-02-14 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:54:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:55:06 [end_date_ymd] => 2025-02-14 00:55:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:55:06' and `end` < '2025-02-14 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-02-14 00:55:18] Production.INFO: count ==265 [2025-02-14 00:55:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:55:06 - End Time 2025-02-14 00:55:06 [2025-02-14 00:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470209', 'tblTempUsageDetail_20' ) start [2025-02-14 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470209', 'tblTempUsageDetail_20' ) end [2025-02-14 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470209', 'tblTempVendorCDR_20' ) start [2025-02-14 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470209', 'tblTempVendorCDR_20' ) end [2025-02-14 00:55:19] Production.INFO: ProcessCDR(1,14470209,1,1,2) [2025-02-14 00:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470209', 'tblTempUsageDetail_20' ) start [2025-02-14 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470209', 'tblTempUsageDetail_20' ) end [2025-02-14 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:55:22] Production.INFO: ==27773== Releasing lock... [2025-02-14 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:55:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:56:05 [end_date_ymd] => 2025-02-14 00:56:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:56:05' and `end` < '2025-02-14 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-02-14 00:56:20] Production.INFO: count ==264 [2025-02-14 00:56:20] Production.ERROR: pbx CDR StartTime 2025-02-13 21:56:05 - End Time 2025-02-14 00:56:05 [2025-02-14 00:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470214', 'tblTempUsageDetail_20' ) start [2025-02-14 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470214', 'tblTempUsageDetail_20' ) end [2025-02-14 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470214', 'tblTempVendorCDR_20' ) start [2025-02-14 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470214', 'tblTempVendorCDR_20' ) end [2025-02-14 00:56:20] Production.INFO: ProcessCDR(1,14470214,1,1,2) [2025-02-14 00:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470214', 'tblTempUsageDetail_20' ) start [2025-02-14 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470214', 'tblTempUsageDetail_20' ) end [2025-02-14 00:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:56:23] Production.INFO: ==27843== Releasing lock... [2025-02-14 00:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:56:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:57:05 [end_date_ymd] => 2025-02-14 00:57:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:57:05' and `end` < '2025-02-14 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-02-14 00:57:19] Production.INFO: count ==264 [2025-02-14 00:57:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:57:05 - End Time 2025-02-14 00:57:05 [2025-02-14 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470219', 'tblTempUsageDetail_20' ) start [2025-02-14 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470219', 'tblTempUsageDetail_20' ) end [2025-02-14 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470219', 'tblTempVendorCDR_20' ) start [2025-02-14 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470219', 'tblTempVendorCDR_20' ) end [2025-02-14 00:57:19] Production.INFO: ProcessCDR(1,14470219,1,1,2) [2025-02-14 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470219', 'tblTempUsageDetail_20' ) start [2025-02-14 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470219', 'tblTempUsageDetail_20' ) end [2025-02-14 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:57:22] Production.INFO: ==27916== Releasing lock... [2025-02-14 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:57:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:58:05 [end_date_ymd] => 2025-02-14 00:58:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:58:05' and `end` < '2025-02-14 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-02-14 00:58:19] Production.INFO: count ==264 [2025-02-14 00:58:19] Production.ERROR: pbx CDR StartTime 2025-02-13 21:58:05 - End Time 2025-02-14 00:58:05 [2025-02-14 00:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470224', 'tblTempUsageDetail_20' ) start [2025-02-14 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470224', 'tblTempUsageDetail_20' ) end [2025-02-14 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470224', 'tblTempVendorCDR_20' ) start [2025-02-14 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470224', 'tblTempVendorCDR_20' ) end [2025-02-14 00:58:19] Production.INFO: ProcessCDR(1,14470224,1,1,2) [2025-02-14 00:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470224', 'tblTempUsageDetail_20' ) start [2025-02-14 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470224', 'tblTempUsageDetail_20' ) end [2025-02-14 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:58:22] Production.INFO: ==27986== Releasing lock... [2025-02-14 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:58:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 21:59:05 [end_date_ymd] => 2025-02-14 00:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 21:59:05' and `end` < '2025-02-14 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-02-14 00:59:18] Production.INFO: count ==264 [2025-02-14 00:59:18] Production.ERROR: pbx CDR StartTime 2025-02-13 21:59:05 - End Time 2025-02-14 00:59:05 [2025-02-14 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470229', 'tblTempUsageDetail_20' ) start [2025-02-14 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470229', 'tblTempUsageDetail_20' ) end [2025-02-14 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470229', 'tblTempVendorCDR_20' ) start [2025-02-14 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470229', 'tblTempVendorCDR_20' ) end [2025-02-14 00:59:18] Production.INFO: ProcessCDR(1,14470229,1,1,2) [2025-02-14 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470229', 'tblTempUsageDetail_20' ) start [2025-02-14 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470229', 'tblTempUsageDetail_20' ) end [2025-02-14 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 00:59:21] Production.INFO: ==28060== Releasing lock... [2025-02-14 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 00:59:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:00:05 [end_date_ymd] => 2025-02-14 01:00:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:00:05' and `end` < '2025-02-14 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-02-14 01:00:18] Production.INFO: count ==269 [2025-02-14 01:00:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:00:05 - End Time 2025-02-14 01:00:05 [2025-02-14 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470235', 'tblTempUsageDetail_20' ) start [2025-02-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470235', 'tblTempUsageDetail_20' ) end [2025-02-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470235', 'tblTempVendorCDR_20' ) start [2025-02-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470235', 'tblTempVendorCDR_20' ) end [2025-02-14 01:00:18] Production.INFO: ProcessCDR(1,14470235,1,1,2) [2025-02-14 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470235', 'tblTempUsageDetail_20' ) start [2025-02-14 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470235', 'tblTempUsageDetail_20' ) end [2025-02-14 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:00:22] Production.INFO: ==28133== Releasing lock... [2025-02-14 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:00:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:01:06 [end_date_ymd] => 2025-02-14 01:01:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:01:06' and `end` < '2025-02-14 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-02-14 01:01:19] Production.INFO: count ==282 [2025-02-14 01:01:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:01:06 - End Time 2025-02-14 01:01:06 [2025-02-14 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470240', 'tblTempUsageDetail_20' ) start [2025-02-14 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470240', 'tblTempUsageDetail_20' ) end [2025-02-14 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470240', 'tblTempVendorCDR_20' ) start [2025-02-14 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470240', 'tblTempVendorCDR_20' ) end [2025-02-14 01:01:19] Production.INFO: ProcessCDR(1,14470240,1,1,2) [2025-02-14 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470240', 'tblTempUsageDetail_20' ) start [2025-02-14 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470240', 'tblTempUsageDetail_20' ) end [2025-02-14 01:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:01:23] Production.INFO: ==28221== Releasing lock... [2025-02-14 01:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:01:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:02:05 [end_date_ymd] => 2025-02-14 01:02:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:02:05' and `end` < '2025-02-14 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-02-14 01:02:20] Production.INFO: count ==281 [2025-02-14 01:02:20] Production.ERROR: pbx CDR StartTime 2025-02-13 22:02:05 - End Time 2025-02-14 01:02:05 [2025-02-14 01:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470245', 'tblTempUsageDetail_20' ) start [2025-02-14 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470245', 'tblTempUsageDetail_20' ) end [2025-02-14 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470245', 'tblTempVendorCDR_20' ) start [2025-02-14 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470245', 'tblTempVendorCDR_20' ) end [2025-02-14 01:02:20] Production.INFO: ProcessCDR(1,14470245,1,1,2) [2025-02-14 01:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470245', 'tblTempUsageDetail_20' ) start [2025-02-14 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470245', 'tblTempUsageDetail_20' ) end [2025-02-14 01:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:02:23] Production.INFO: ==28298== Releasing lock... [2025-02-14 01:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:02:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:03:05 [end_date_ymd] => 2025-02-14 01:03:05 [RateCDR] => 1 ) [2025-02-14 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:03:05' and `end` < '2025-02-14 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:03:19] Production.INFO: count ==277 [2025-02-14 01:03:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:03:05 - End Time 2025-02-14 01:03:05 [2025-02-14 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470250', 'tblTempUsageDetail_20' ) start [2025-02-14 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470250', 'tblTempUsageDetail_20' ) end [2025-02-14 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470250', 'tblTempVendorCDR_20' ) start [2025-02-14 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470250', 'tblTempVendorCDR_20' ) end [2025-02-14 01:03:19] Production.INFO: ProcessCDR(1,14470250,1,1,2) [2025-02-14 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470250', 'tblTempUsageDetail_20' ) start [2025-02-14 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470250', 'tblTempUsageDetail_20' ) end [2025-02-14 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:03:22] Production.INFO: ==28375== Releasing lock... [2025-02-14 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:03:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:04:06 [end_date_ymd] => 2025-02-14 01:04:06 [RateCDR] => 1 ) [2025-02-14 01: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-02-13 22:04:06' and `end` < '2025-02-14 01: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-02-14 01:04:20] Production.INFO: count ==281 [2025-02-14 01:04:20] Production.ERROR: pbx CDR StartTime 2025-02-13 22:04:06 - End Time 2025-02-14 01:04:06 [2025-02-14 01:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470255', 'tblTempUsageDetail_20' ) start [2025-02-14 01:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470255', 'tblTempUsageDetail_20' ) end [2025-02-14 01:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470255', 'tblTempVendorCDR_20' ) start [2025-02-14 01:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470255', 'tblTempVendorCDR_20' ) end [2025-02-14 01:04:20] Production.INFO: ProcessCDR(1,14470255,1,1,2) [2025-02-14 01:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470255', 'tblTempUsageDetail_20' ) start [2025-02-14 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470255', 'tblTempUsageDetail_20' ) end [2025-02-14 01:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:04:23] Production.INFO: ==28446== Releasing lock... [2025-02-14 01:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:04:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:05:05 [end_date_ymd] => 2025-02-14 01:05:05 [RateCDR] => 1 ) [2025-02-14 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:05:05' and `end` < '2025-02-14 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:05:18] Production.INFO: count ==281 [2025-02-14 01:05:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:05:05 - End Time 2025-02-14 01:05:05 [2025-02-14 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470260', 'tblTempUsageDetail_20' ) start [2025-02-14 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470260', 'tblTempUsageDetail_20' ) end [2025-02-14 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470260', 'tblTempVendorCDR_20' ) start [2025-02-14 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470260', 'tblTempVendorCDR_20' ) end [2025-02-14 01:05:18] Production.INFO: ProcessCDR(1,14470260,1,1,2) [2025-02-14 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470260', 'tblTempUsageDetail_20' ) start [2025-02-14 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470260', 'tblTempUsageDetail_20' ) end [2025-02-14 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:05:21] Production.INFO: ==28556== Releasing lock... [2025-02-14 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:06:05 [end_date_ymd] => 2025-02-14 01:06:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:06:05' and `end` < '2025-02-14 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-02-14 01:06:19] Production.INFO: count ==281 [2025-02-14 01:06:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:06:05 - End Time 2025-02-14 01:06:05 [2025-02-14 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470261', 'tblTempUsageDetail_20' ) start [2025-02-14 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470261', 'tblTempUsageDetail_20' ) end [2025-02-14 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470261', 'tblTempVendorCDR_20' ) start [2025-02-14 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470261', 'tblTempVendorCDR_20' ) end [2025-02-14 01:06:19] Production.INFO: ProcessCDR(1,14470261,1,1,2) [2025-02-14 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470261', 'tblTempUsageDetail_20' ) start [2025-02-14 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470261', 'tblTempUsageDetail_20' ) end [2025-02-14 01:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:06:23] Production.INFO: ==28630== Releasing lock... [2025-02-14 01:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:06:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:07:05 [end_date_ymd] => 2025-02-14 01:07:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:07:05' and `end` < '2025-02-14 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-02-14 01:07:19] Production.INFO: count ==281 [2025-02-14 01:07:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:07:05 - End Time 2025-02-14 01:07:05 [2025-02-14 01:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470269', 'tblTempUsageDetail_20' ) start [2025-02-14 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470269', 'tblTempUsageDetail_20' ) end [2025-02-14 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470269', 'tblTempVendorCDR_20' ) start [2025-02-14 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470269', 'tblTempVendorCDR_20' ) end [2025-02-14 01:07:19] Production.INFO: ProcessCDR(1,14470269,1,1,2) [2025-02-14 01:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470269', 'tblTempUsageDetail_20' ) start [2025-02-14 01:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470269', 'tblTempUsageDetail_20' ) end [2025-02-14 01:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:07:24] Production.INFO: ==28700== Releasing lock... [2025-02-14 01:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:07:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:08:06 [end_date_ymd] => 2025-02-14 01:08:06 [RateCDR] => 1 ) [2025-02-14 01:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:08:06' and `end` < '2025-02-14 01:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:08:19] Production.INFO: count ==281 [2025-02-14 01:08:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:08:06 - End Time 2025-02-14 01:08:06 [2025-02-14 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470275', 'tblTempUsageDetail_20' ) start [2025-02-14 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470275', 'tblTempUsageDetail_20' ) end [2025-02-14 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470275', 'tblTempVendorCDR_20' ) start [2025-02-14 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470275', 'tblTempVendorCDR_20' ) end [2025-02-14 01:08:19] Production.INFO: ProcessCDR(1,14470275,1,1,2) [2025-02-14 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470275', 'tblTempUsageDetail_20' ) start [2025-02-14 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470275', 'tblTempUsageDetail_20' ) end [2025-02-14 01:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:08:23] Production.INFO: ==28774== Releasing lock... [2025-02-14 01:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:08:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:09:05 [end_date_ymd] => 2025-02-14 01:09:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:09:05' and `end` < '2025-02-14 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-02-14 01:09:18] Production.INFO: count ==281 [2025-02-14 01:09:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:09:05 - End Time 2025-02-14 01:09:05 [2025-02-14 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470280', 'tblTempUsageDetail_20' ) start [2025-02-14 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470280', 'tblTempUsageDetail_20' ) end [2025-02-14 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470280', 'tblTempVendorCDR_20' ) start [2025-02-14 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470280', 'tblTempVendorCDR_20' ) end [2025-02-14 01:09:19] Production.INFO: ProcessCDR(1,14470280,1,1,2) [2025-02-14 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470280', 'tblTempUsageDetail_20' ) start [2025-02-14 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470280', 'tblTempUsageDetail_20' ) end [2025-02-14 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:09:22] Production.INFO: ==28847== Releasing lock... [2025-02-14 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:09:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:10:06 [end_date_ymd] => 2025-02-14 01:10:06 [RateCDR] => 1 ) [2025-02-14 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:10:06' and `end` < '2025-02-14 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:10:19] Production.INFO: count ==287 [2025-02-14 01:10:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:10:06 - End Time 2025-02-14 01:10:06 [2025-02-14 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470286', 'tblTempUsageDetail_20' ) start [2025-02-14 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470286', 'tblTempUsageDetail_20' ) end [2025-02-14 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470286', 'tblTempVendorCDR_20' ) start [2025-02-14 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470286', 'tblTempVendorCDR_20' ) end [2025-02-14 01:10:19] Production.INFO: ProcessCDR(1,14470286,1,1,2) [2025-02-14 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470286', 'tblTempUsageDetail_20' ) start [2025-02-14 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470286', 'tblTempUsageDetail_20' ) end [2025-02-14 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:10:23] Production.INFO: ==28922== Releasing lock... [2025-02-14 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:10:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:11:05 [end_date_ymd] => 2025-02-14 01:11:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:11:05' and `end` < '2025-02-14 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-02-14 01:11:19] Production.INFO: count ==286 [2025-02-14 01:11:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:11:05 - End Time 2025-02-14 01:11:05 [2025-02-14 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470291', 'tblTempUsageDetail_20' ) start [2025-02-14 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470291', 'tblTempUsageDetail_20' ) end [2025-02-14 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470291', 'tblTempVendorCDR_20' ) start [2025-02-14 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470291', 'tblTempVendorCDR_20' ) end [2025-02-14 01:11:19] Production.INFO: ProcessCDR(1,14470291,1,1,2) [2025-02-14 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470291', 'tblTempUsageDetail_20' ) start [2025-02-14 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470291', 'tblTempUsageDetail_20' ) end [2025-02-14 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:11:22] Production.INFO: ==28998== Releasing lock... [2025-02-14 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:11:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:12:06 [end_date_ymd] => 2025-02-14 01:12:06 [RateCDR] => 1 ) [2025-02-14 01: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-02-13 22:12:06' and `end` < '2025-02-14 01: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-02-14 01:12:19] Production.INFO: count ==290 [2025-02-14 01:12:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:12:06 - End Time 2025-02-14 01:12:06 [2025-02-14 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470296', 'tblTempUsageDetail_20' ) start [2025-02-14 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470296', 'tblTempUsageDetail_20' ) end [2025-02-14 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470296', 'tblTempVendorCDR_20' ) start [2025-02-14 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470296', 'tblTempVendorCDR_20' ) end [2025-02-14 01:12:19] Production.INFO: ProcessCDR(1,14470296,1,1,2) [2025-02-14 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470296', 'tblTempUsageDetail_20' ) start [2025-02-14 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470296', 'tblTempUsageDetail_20' ) end [2025-02-14 01:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:12:23] Production.INFO: ==29070== Releasing lock... [2025-02-14 01:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:12:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:13:05 [end_date_ymd] => 2025-02-14 01:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:13:05' and `end` < '2025-02-14 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-02-14 01:13:19] Production.INFO: count ==290 [2025-02-14 01:13:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:13:05 - End Time 2025-02-14 01:13:05 [2025-02-14 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470301', 'tblTempUsageDetail_20' ) start [2025-02-14 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470301', 'tblTempUsageDetail_20' ) end [2025-02-14 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470301', 'tblTempVendorCDR_20' ) start [2025-02-14 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470301', 'tblTempVendorCDR_20' ) end [2025-02-14 01:13:19] Production.INFO: ProcessCDR(1,14470301,1,1,2) [2025-02-14 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470301', 'tblTempUsageDetail_20' ) start [2025-02-14 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470301', 'tblTempUsageDetail_20' ) end [2025-02-14 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:13:22] Production.INFO: ==29142== Releasing lock... [2025-02-14 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:13:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:14:05 [end_date_ymd] => 2025-02-14 01:14:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:14:05' and `end` < '2025-02-14 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-02-14 01:14:18] Production.INFO: count ==290 [2025-02-14 01:14:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:14:05 - End Time 2025-02-14 01:14:05 [2025-02-14 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470306', 'tblTempUsageDetail_20' ) start [2025-02-14 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470306', 'tblTempUsageDetail_20' ) end [2025-02-14 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470306', 'tblTempVendorCDR_20' ) start [2025-02-14 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470306', 'tblTempVendorCDR_20' ) end [2025-02-14 01:14:19] Production.INFO: ProcessCDR(1,14470306,1,1,2) [2025-02-14 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470306', 'tblTempUsageDetail_20' ) start [2025-02-14 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470306', 'tblTempUsageDetail_20' ) end [2025-02-14 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:14:22] Production.INFO: ==29215== Releasing lock... [2025-02-14 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:14:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:15:05 [end_date_ymd] => 2025-02-14 01:15:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:15:05' and `end` < '2025-02-14 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-02-14 01:15:18] Production.INFO: count ==291 [2025-02-14 01:15:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:15:05 - End Time 2025-02-14 01:15:05 [2025-02-14 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470311', 'tblTempUsageDetail_20' ) start [2025-02-14 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470311', 'tblTempUsageDetail_20' ) end [2025-02-14 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470311', 'tblTempVendorCDR_20' ) start [2025-02-14 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470311', 'tblTempVendorCDR_20' ) end [2025-02-14 01:15:18] Production.INFO: ProcessCDR(1,14470311,1,1,2) [2025-02-14 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470311', 'tblTempUsageDetail_20' ) start [2025-02-14 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470311', 'tblTempUsageDetail_20' ) end [2025-02-14 01:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:15:23] Production.INFO: ==29286== Releasing lock... [2025-02-14 01:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:15:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:16:06 [end_date_ymd] => 2025-02-14 01:16:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:16:06' and `end` < '2025-02-14 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-02-14 01:16:18] Production.INFO: count ==292 [2025-02-14 01:16:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:16:06 - End Time 2025-02-14 01:16:06 [2025-02-14 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470316', 'tblTempUsageDetail_20' ) start [2025-02-14 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470316', 'tblTempUsageDetail_20' ) end [2025-02-14 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470316', 'tblTempVendorCDR_20' ) start [2025-02-14 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470316', 'tblTempVendorCDR_20' ) end [2025-02-14 01:16:19] Production.INFO: ProcessCDR(1,14470316,1,1,2) [2025-02-14 01:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470316', 'tblTempUsageDetail_20' ) start [2025-02-14 01:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470316', 'tblTempUsageDetail_20' ) end [2025-02-14 01:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:16:23] Production.INFO: ==29359== Releasing lock... [2025-02-14 01:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:16:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:17:05 [end_date_ymd] => 2025-02-14 01:17:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:17:05' and `end` < '2025-02-14 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-02-14 01:17:19] Production.INFO: count ==291 [2025-02-14 01:17:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:17:05 - End Time 2025-02-14 01:17:05 [2025-02-14 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470321', 'tblTempUsageDetail_20' ) start [2025-02-14 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470321', 'tblTempUsageDetail_20' ) end [2025-02-14 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470321', 'tblTempVendorCDR_20' ) start [2025-02-14 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470321', 'tblTempVendorCDR_20' ) end [2025-02-14 01:17:19] Production.INFO: ProcessCDR(1,14470321,1,1,2) [2025-02-14 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470321', 'tblTempUsageDetail_20' ) start [2025-02-14 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470321', 'tblTempUsageDetail_20' ) end [2025-02-14 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:17:22] Production.INFO: ==29432== Releasing lock... [2025-02-14 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:17:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:18:05 [end_date_ymd] => 2025-02-14 01:18:05 [RateCDR] => 1 ) [2025-02-14 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:18:05' and `end` < '2025-02-14 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:18:18] Production.INFO: count ==291 [2025-02-14 01:18:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:18:05 - End Time 2025-02-14 01:18:05 [2025-02-14 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470326', 'tblTempUsageDetail_20' ) start [2025-02-14 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470326', 'tblTempUsageDetail_20' ) end [2025-02-14 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470326', 'tblTempVendorCDR_20' ) start [2025-02-14 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470326', 'tblTempVendorCDR_20' ) end [2025-02-14 01:18:18] Production.INFO: ProcessCDR(1,14470326,1,1,2) [2025-02-14 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470326', 'tblTempUsageDetail_20' ) start [2025-02-14 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470326', 'tblTempUsageDetail_20' ) end [2025-02-14 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:18:22] Production.INFO: ==29506== Releasing lock... [2025-02-14 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:18:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:19:05 [end_date_ymd] => 2025-02-14 01:19:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:19:05' and `end` < '2025-02-14 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-02-14 01:19:19] Production.INFO: count ==291 [2025-02-14 01:19:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:19:05 - End Time 2025-02-14 01:19:05 [2025-02-14 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470331', 'tblTempUsageDetail_20' ) start [2025-02-14 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470331', 'tblTempUsageDetail_20' ) end [2025-02-14 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470331', 'tblTempVendorCDR_20' ) start [2025-02-14 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470331', 'tblTempVendorCDR_20' ) end [2025-02-14 01:19:19] Production.INFO: ProcessCDR(1,14470331,1,1,2) [2025-02-14 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470331', 'tblTempUsageDetail_20' ) start [2025-02-14 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470331', 'tblTempUsageDetail_20' ) end [2025-02-14 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:19:22] Production.INFO: ==29579== Releasing lock... [2025-02-14 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:19:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:20:07 [end_date_ymd] => 2025-02-14 01:20:07 [RateCDR] => 1 ) [2025-02-14 01:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:20:07' and `end` < '2025-02-14 01:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:20:20] Production.INFO: count ==303 [2025-02-14 01:20:20] Production.ERROR: pbx CDR StartTime 2025-02-13 22:20:07 - End Time 2025-02-14 01:20:07 [2025-02-14 01:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470337', 'tblTempUsageDetail_20' ) start [2025-02-14 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470337', 'tblTempUsageDetail_20' ) end [2025-02-14 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470337', 'tblTempVendorCDR_20' ) start [2025-02-14 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470337', 'tblTempVendorCDR_20' ) end [2025-02-14 01:20:20] Production.INFO: ProcessCDR(1,14470337,1,1,2) [2025-02-14 01:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470337', 'tblTempUsageDetail_20' ) start [2025-02-14 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470337', 'tblTempUsageDetail_20' ) end [2025-02-14 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:20:23] Production.INFO: ==29691== Releasing lock... [2025-02-14 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:20:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:21:05 [end_date_ymd] => 2025-02-14 01:21:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:21:05' and `end` < '2025-02-14 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-02-14 01:21:19] Production.INFO: count ==313 [2025-02-14 01:21:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:21:05 - End Time 2025-02-14 01:21:05 [2025-02-14 01:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470342', 'tblTempUsageDetail_20' ) start [2025-02-14 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470342', 'tblTempUsageDetail_20' ) end [2025-02-14 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470342', 'tblTempVendorCDR_20' ) start [2025-02-14 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470342', 'tblTempVendorCDR_20' ) end [2025-02-14 01:21:19] Production.INFO: ProcessCDR(1,14470342,1,1,2) [2025-02-14 01:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470342', 'tblTempUsageDetail_20' ) start [2025-02-14 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470342', 'tblTempUsageDetail_20' ) end [2025-02-14 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:21:22] Production.INFO: ==29766== Releasing lock... [2025-02-14 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:21:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:22:06 [end_date_ymd] => 2025-02-14 01:22:06 [RateCDR] => 1 ) [2025-02-14 01: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-02-13 22:22:06' and `end` < '2025-02-14 01: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-02-14 01:22:19] Production.INFO: count ==313 [2025-02-14 01:22:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:22:06 - End Time 2025-02-14 01:22:06 [2025-02-14 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470347', 'tblTempUsageDetail_20' ) start [2025-02-14 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470347', 'tblTempUsageDetail_20' ) end [2025-02-14 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470347', 'tblTempVendorCDR_20' ) start [2025-02-14 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470347', 'tblTempVendorCDR_20' ) end [2025-02-14 01:22:19] Production.INFO: ProcessCDR(1,14470347,1,1,2) [2025-02-14 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470347', 'tblTempUsageDetail_20' ) start [2025-02-14 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470347', 'tblTempUsageDetail_20' ) end [2025-02-14 01:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:22:23] Production.INFO: ==29837== Releasing lock... [2025-02-14 01:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:22:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:23:05 [end_date_ymd] => 2025-02-14 01:23:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:23:05' and `end` < '2025-02-14 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-02-14 01:23:19] Production.INFO: count ==313 [2025-02-14 01:23:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:23:05 - End Time 2025-02-14 01:23:05 [2025-02-14 01:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470352', 'tblTempUsageDetail_20' ) start [2025-02-14 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470352', 'tblTempUsageDetail_20' ) end [2025-02-14 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470352', 'tblTempVendorCDR_20' ) start [2025-02-14 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470352', 'tblTempVendorCDR_20' ) end [2025-02-14 01:23:19] Production.INFO: ProcessCDR(1,14470352,1,1,2) [2025-02-14 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470352', 'tblTempUsageDetail_20' ) start [2025-02-14 01:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470352', 'tblTempUsageDetail_20' ) end [2025-02-14 01:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:23:24] Production.INFO: ==29915== Releasing lock... [2025-02-14 01:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:23:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:24:06 [end_date_ymd] => 2025-02-14 01:24:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:24:06' and `end` < '2025-02-14 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-02-14 01:24:19] Production.INFO: count ==313 [2025-02-14 01:24:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:24:06 - End Time 2025-02-14 01:24:06 [2025-02-14 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470357', 'tblTempUsageDetail_20' ) start [2025-02-14 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470357', 'tblTempUsageDetail_20' ) end [2025-02-14 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470357', 'tblTempVendorCDR_20' ) start [2025-02-14 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470357', 'tblTempVendorCDR_20' ) end [2025-02-14 01:24:19] Production.INFO: ProcessCDR(1,14470357,1,1,2) [2025-02-14 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470357', 'tblTempUsageDetail_20' ) start [2025-02-14 01:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470357', 'tblTempUsageDetail_20' ) end [2025-02-14 01:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:24:23] Production.INFO: ==29986== Releasing lock... [2025-02-14 01:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:24:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:25:05 [end_date_ymd] => 2025-02-14 01:25:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:25:05' and `end` < '2025-02-14 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-02-14 01:25:18] Production.INFO: count ==314 [2025-02-14 01:25:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:25:05 - End Time 2025-02-14 01:25:05 [2025-02-14 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470362', 'tblTempUsageDetail_20' ) start [2025-02-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470362', 'tblTempUsageDetail_20' ) end [2025-02-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470362', 'tblTempVendorCDR_20' ) start [2025-02-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470362', 'tblTempVendorCDR_20' ) end [2025-02-14 01:25:18] Production.INFO: ProcessCDR(1,14470362,1,1,2) [2025-02-14 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470362', 'tblTempUsageDetail_20' ) start [2025-02-14 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470362', 'tblTempUsageDetail_20' ) end [2025-02-14 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:25:23] Production.INFO: ==30058== Releasing lock... [2025-02-14 01:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:25:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:26:05 [end_date_ymd] => 2025-02-14 01:26:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:26:05' and `end` < '2025-02-14 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-02-14 01:26:18] Production.INFO: count ==314 [2025-02-14 01:26:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:26:05 - End Time 2025-02-14 01:26:05 [2025-02-14 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470367', 'tblTempUsageDetail_20' ) start [2025-02-14 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470367', 'tblTempUsageDetail_20' ) end [2025-02-14 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470367', 'tblTempVendorCDR_20' ) start [2025-02-14 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470367', 'tblTempVendorCDR_20' ) end [2025-02-14 01:26:18] Production.INFO: ProcessCDR(1,14470367,1,1,2) [2025-02-14 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470367', 'tblTempUsageDetail_20' ) start [2025-02-14 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470367', 'tblTempUsageDetail_20' ) end [2025-02-14 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:26:21] Production.INFO: ==30131== Releasing lock... [2025-02-14 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:26:21] Production.INFO: 31 MB #Memory Used# [2025-02-14 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:27:05 [end_date_ymd] => 2025-02-14 01:27:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:27:05' and `end` < '2025-02-14 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-02-14 01:27:18] Production.INFO: count ==314 [2025-02-14 01:27:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:27:05 - End Time 2025-02-14 01:27:05 [2025-02-14 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470372', 'tblTempUsageDetail_20' ) start [2025-02-14 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470372', 'tblTempUsageDetail_20' ) end [2025-02-14 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470372', 'tblTempVendorCDR_20' ) start [2025-02-14 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470372', 'tblTempVendorCDR_20' ) end [2025-02-14 01:27:18] Production.INFO: ProcessCDR(1,14470372,1,1,2) [2025-02-14 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470372', 'tblTempUsageDetail_20' ) start [2025-02-14 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470372', 'tblTempUsageDetail_20' ) end [2025-02-14 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:27:21] Production.INFO: ==30203== Releasing lock... [2025-02-14 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:27:21] Production.INFO: 31 MB #Memory Used# [2025-02-14 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:28:06 [end_date_ymd] => 2025-02-14 01:28:06 [RateCDR] => 1 ) [2025-02-14 01:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:28:06' and `end` < '2025-02-14 01:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:28:20] Production.INFO: count ==314 [2025-02-14 01:28:20] Production.ERROR: pbx CDR StartTime 2025-02-13 22:28:06 - End Time 2025-02-14 01:28:06 [2025-02-14 01:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470377', 'tblTempUsageDetail_20' ) start [2025-02-14 01:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470377', 'tblTempUsageDetail_20' ) end [2025-02-14 01:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470377', 'tblTempVendorCDR_20' ) start [2025-02-14 01:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470377', 'tblTempVendorCDR_20' ) end [2025-02-14 01:28:20] Production.INFO: ProcessCDR(1,14470377,1,1,2) [2025-02-14 01:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470377', 'tblTempUsageDetail_20' ) start [2025-02-14 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470377', 'tblTempUsageDetail_20' ) end [2025-02-14 01:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:28:23] Production.INFO: ==30273== Releasing lock... [2025-02-14 01:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:28:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:29:05 [end_date_ymd] => 2025-02-14 01:29:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:29:05' and `end` < '2025-02-14 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-02-14 01:29:18] Production.INFO: count ==314 [2025-02-14 01:29:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:29:05 - End Time 2025-02-14 01:29:05 [2025-02-14 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470382', 'tblTempUsageDetail_20' ) start [2025-02-14 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470382', 'tblTempUsageDetail_20' ) end [2025-02-14 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470382', 'tblTempVendorCDR_20' ) start [2025-02-14 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470382', 'tblTempVendorCDR_20' ) end [2025-02-14 01:29:18] Production.INFO: ProcessCDR(1,14470382,1,1,2) [2025-02-14 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470382', 'tblTempUsageDetail_20' ) start [2025-02-14 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470382', 'tblTempUsageDetail_20' ) end [2025-02-14 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:29:22] Production.INFO: ==30346== Releasing lock... [2025-02-14 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:29:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:30:06 [end_date_ymd] => 2025-02-14 01:30:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:30:06' and `end` < '2025-02-14 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-02-14 01:30:19] Production.INFO: count ==318 [2025-02-14 01:30:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:30:06 - End Time 2025-02-14 01:30:06 [2025-02-14 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470388', 'tblTempUsageDetail_20' ) start [2025-02-14 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470388', 'tblTempUsageDetail_20' ) end [2025-02-14 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470388', 'tblTempVendorCDR_20' ) start [2025-02-14 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470388', 'tblTempVendorCDR_20' ) end [2025-02-14 01:30:19] Production.INFO: ProcessCDR(1,14470388,1,1,2) [2025-02-14 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470388', 'tblTempUsageDetail_20' ) start [2025-02-14 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470388', 'tblTempUsageDetail_20' ) end [2025-02-14 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:30:22] Production.INFO: ==30420== Releasing lock... [2025-02-14 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:30:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:31:05 [end_date_ymd] => 2025-02-14 01:31:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:31:05' and `end` < '2025-02-14 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-02-14 01:31:18] Production.INFO: count ==318 [2025-02-14 01:31:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:31:05 - End Time 2025-02-14 01:31:05 [2025-02-14 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470393', 'tblTempUsageDetail_20' ) start [2025-02-14 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470393', 'tblTempUsageDetail_20' ) end [2025-02-14 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470393', 'tblTempVendorCDR_20' ) start [2025-02-14 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470393', 'tblTempVendorCDR_20' ) end [2025-02-14 01:31:19] Production.INFO: ProcessCDR(1,14470393,1,1,2) [2025-02-14 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470393', 'tblTempUsageDetail_20' ) start [2025-02-14 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470393', 'tblTempUsageDetail_20' ) end [2025-02-14 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:31:22] Production.INFO: ==30491== Releasing lock... [2025-02-14 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:31:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:32:05 [end_date_ymd] => 2025-02-14 01:32:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:32:05' and `end` < '2025-02-14 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-02-14 01:32:18] Production.INFO: count ==318 [2025-02-14 01:32:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:32:05 - End Time 2025-02-14 01:32:05 [2025-02-14 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470398', 'tblTempUsageDetail_20' ) start [2025-02-14 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470398', 'tblTempUsageDetail_20' ) end [2025-02-14 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470398', 'tblTempVendorCDR_20' ) start [2025-02-14 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470398', 'tblTempVendorCDR_20' ) end [2025-02-14 01:32:18] Production.INFO: ProcessCDR(1,14470398,1,1,2) [2025-02-14 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470398', 'tblTempUsageDetail_20' ) start [2025-02-14 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470398', 'tblTempUsageDetail_20' ) end [2025-02-14 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:32:22] Production.INFO: ==30562== Releasing lock... [2025-02-14 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:32:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:33:04 [end_date_ymd] => 2025-02-14 01:33:04 [RateCDR] => 1 ) [2025-02-14 01: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-02-13 22:33:04' and `end` < '2025-02-14 01: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-02-14 01:33:17] Production.INFO: count ==318 [2025-02-14 01:33:17] Production.ERROR: pbx CDR StartTime 2025-02-13 22:33:04 - End Time 2025-02-14 01:33:04 [2025-02-14 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470401', 'tblTempUsageDetail_20' ) start [2025-02-14 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470401', 'tblTempUsageDetail_20' ) end [2025-02-14 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470401', 'tblTempVendorCDR_20' ) start [2025-02-14 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470401', 'tblTempVendorCDR_20' ) end [2025-02-14 01:33:17] Production.INFO: ProcessCDR(1,14470401,1,1,2) [2025-02-14 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470401', 'tblTempUsageDetail_20' ) start [2025-02-14 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470401', 'tblTempUsageDetail_20' ) end [2025-02-14 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:33:21] Production.INFO: ==30636== Releasing lock... [2025-02-14 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:33:21] Production.INFO: 31 MB #Memory Used# [2025-02-14 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:34:06 [end_date_ymd] => 2025-02-14 01:34:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:34:06' and `end` < '2025-02-14 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-02-14 01:34:20] Production.INFO: count ==318 [2025-02-14 01:34:20] Production.ERROR: pbx CDR StartTime 2025-02-13 22:34:06 - End Time 2025-02-14 01:34:06 [2025-02-14 01:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470408', 'tblTempUsageDetail_20' ) start [2025-02-14 01:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470408', 'tblTempUsageDetail_20' ) end [2025-02-14 01:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470408', 'tblTempVendorCDR_20' ) start [2025-02-14 01:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470408', 'tblTempVendorCDR_20' ) end [2025-02-14 01:34:20] Production.INFO: ProcessCDR(1,14470408,1,1,2) [2025-02-14 01:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470408', 'tblTempUsageDetail_20' ) start [2025-02-14 01:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470408', 'tblTempUsageDetail_20' ) end [2025-02-14 01:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:34:24] Production.INFO: ==30710== Releasing lock... [2025-02-14 01:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:34:24] Production.INFO: 31 MB #Memory Used# [2025-02-14 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:35:05 [end_date_ymd] => 2025-02-14 01:35:05 [RateCDR] => 1 ) [2025-02-14 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:35:05' and `end` < '2025-02-14 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:35:18] Production.INFO: count ==318 [2025-02-14 01:35:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:35:05 - End Time 2025-02-14 01:35:05 [2025-02-14 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470413', 'tblTempUsageDetail_20' ) start [2025-02-14 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470413', 'tblTempUsageDetail_20' ) end [2025-02-14 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470413', 'tblTempVendorCDR_20' ) start [2025-02-14 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470413', 'tblTempVendorCDR_20' ) end [2025-02-14 01:35:18] Production.INFO: ProcessCDR(1,14470413,1,1,2) [2025-02-14 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470413', 'tblTempUsageDetail_20' ) start [2025-02-14 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470413', 'tblTempUsageDetail_20' ) end [2025-02-14 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:35:22] Production.INFO: ==30780== Releasing lock... [2025-02-14 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:35:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:36:05 [end_date_ymd] => 2025-02-14 01:36:05 [RateCDR] => 1 ) [2025-02-14 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:36:05' and `end` < '2025-02-14 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:36:18] Production.INFO: count ==314 [2025-02-14 01:36:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:36:05 - End Time 2025-02-14 01:36:05 [2025-02-14 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470418', 'tblTempUsageDetail_20' ) start [2025-02-14 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470418', 'tblTempUsageDetail_20' ) end [2025-02-14 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470418', 'tblTempVendorCDR_20' ) start [2025-02-14 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470418', 'tblTempVendorCDR_20' ) end [2025-02-14 01:36:19] Production.INFO: ProcessCDR(1,14470418,1,1,2) [2025-02-14 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470418', 'tblTempUsageDetail_20' ) start [2025-02-14 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470418', 'tblTempUsageDetail_20' ) end [2025-02-14 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:36:22] Production.INFO: ==30891== Releasing lock... [2025-02-14 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:36:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:37:05 [end_date_ymd] => 2025-02-14 01:37:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:37:05' and `end` < '2025-02-14 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-02-14 01:37:18] Production.INFO: count ==314 [2025-02-14 01:37:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:37:05 - End Time 2025-02-14 01:37:05 [2025-02-14 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470423', 'tblTempUsageDetail_20' ) start [2025-02-14 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470423', 'tblTempUsageDetail_20' ) end [2025-02-14 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470423', 'tblTempVendorCDR_20' ) start [2025-02-14 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470423', 'tblTempVendorCDR_20' ) end [2025-02-14 01:37:18] Production.INFO: ProcessCDR(1,14470423,1,1,2) [2025-02-14 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470423', 'tblTempUsageDetail_20' ) start [2025-02-14 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470423', 'tblTempUsageDetail_20' ) end [2025-02-14 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:37:22] Production.INFO: ==30962== Releasing lock... [2025-02-14 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:37:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:38:06 [end_date_ymd] => 2025-02-14 01:38:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:38:06' and `end` < '2025-02-14 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-02-14 01:38:20] Production.INFO: count ==310 [2025-02-14 01:38:20] Production.ERROR: pbx CDR StartTime 2025-02-13 22:38:06 - End Time 2025-02-14 01:38:06 [2025-02-14 01:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470428', 'tblTempUsageDetail_20' ) start [2025-02-14 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470428', 'tblTempUsageDetail_20' ) end [2025-02-14 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470428', 'tblTempVendorCDR_20' ) start [2025-02-14 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470428', 'tblTempVendorCDR_20' ) end [2025-02-14 01:38:20] Production.INFO: ProcessCDR(1,14470428,1,1,2) [2025-02-14 01:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470428', 'tblTempUsageDetail_20' ) start [2025-02-14 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470428', 'tblTempUsageDetail_20' ) end [2025-02-14 01:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:38:23] Production.INFO: ==31036== Releasing lock... [2025-02-14 01:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:38:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:39:05 [end_date_ymd] => 2025-02-14 01:39:05 [RateCDR] => 1 ) [2025-02-14 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:39:05' and `end` < '2025-02-14 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:39:19] Production.INFO: count ==310 [2025-02-14 01:39:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:39:05 - End Time 2025-02-14 01:39:05 [2025-02-14 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470433', 'tblTempUsageDetail_20' ) start [2025-02-14 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470433', 'tblTempUsageDetail_20' ) end [2025-02-14 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470433', 'tblTempVendorCDR_20' ) start [2025-02-14 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470433', 'tblTempVendorCDR_20' ) end [2025-02-14 01:39:19] Production.INFO: ProcessCDR(1,14470433,1,1,2) [2025-02-14 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470433', 'tblTempUsageDetail_20' ) start [2025-02-14 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470433', 'tblTempUsageDetail_20' ) end [2025-02-14 01:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:39:23] Production.INFO: ==31108== Releasing lock... [2025-02-14 01:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:39:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:40:07 [end_date_ymd] => 2025-02-14 01:40:07 [RateCDR] => 1 ) [2025-02-14 01: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-02-13 22:40:07' and `end` < '2025-02-14 01: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-02-14 01:40:21] Production.INFO: count ==318 [2025-02-14 01:40:21] Production.ERROR: pbx CDR StartTime 2025-02-13 22:40:07 - End Time 2025-02-14 01:40:07 [2025-02-14 01:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470438', 'tblTempUsageDetail_20' ) start [2025-02-14 01:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470438', 'tblTempUsageDetail_20' ) end [2025-02-14 01:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470438', 'tblTempVendorCDR_20' ) start [2025-02-14 01:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470438', 'tblTempVendorCDR_20' ) end [2025-02-14 01:40:21] Production.INFO: ProcessCDR(1,14470438,1,1,2) [2025-02-14 01:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470438', 'tblTempUsageDetail_20' ) start [2025-02-14 01:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470438', 'tblTempUsageDetail_20' ) end [2025-02-14 01:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:40:24] Production.INFO: ==31181== Releasing lock... [2025-02-14 01:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:40:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:41:05 [end_date_ymd] => 2025-02-14 01:41:05 [RateCDR] => 1 ) [2025-02-14 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:41:05' and `end` < '2025-02-14 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:41:18] Production.INFO: count ==318 [2025-02-14 01:41:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:41:05 - End Time 2025-02-14 01:41:05 [2025-02-14 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470444', 'tblTempUsageDetail_20' ) start [2025-02-14 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470444', 'tblTempUsageDetail_20' ) end [2025-02-14 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470444', 'tblTempVendorCDR_20' ) start [2025-02-14 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470444', 'tblTempVendorCDR_20' ) end [2025-02-14 01:41:18] Production.INFO: ProcessCDR(1,14470444,1,1,2) [2025-02-14 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470444', 'tblTempUsageDetail_20' ) start [2025-02-14 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470444', 'tblTempUsageDetail_20' ) end [2025-02-14 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:41:22] Production.INFO: ==31254== Releasing lock... [2025-02-14 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:41:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:42:05 [end_date_ymd] => 2025-02-14 01:42:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:42:05' and `end` < '2025-02-14 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-02-14 01:42:18] Production.INFO: count ==317 [2025-02-14 01:42:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:42:05 - End Time 2025-02-14 01:42:05 [2025-02-14 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470449', 'tblTempUsageDetail_20' ) start [2025-02-14 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470449', 'tblTempUsageDetail_20' ) end [2025-02-14 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470449', 'tblTempVendorCDR_20' ) start [2025-02-14 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470449', 'tblTempVendorCDR_20' ) end [2025-02-14 01:42:18] Production.INFO: ProcessCDR(1,14470449,1,1,2) [2025-02-14 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470449', 'tblTempUsageDetail_20' ) start [2025-02-14 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470449', 'tblTempUsageDetail_20' ) end [2025-02-14 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:42:22] Production.INFO: ==31330== Releasing lock... [2025-02-14 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:42:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:43:05 [end_date_ymd] => 2025-02-14 01:43:05 [RateCDR] => 1 ) [2025-02-14 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:43:05' and `end` < '2025-02-14 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:43:18] Production.INFO: count ==317 [2025-02-14 01:43:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:43:05 - End Time 2025-02-14 01:43:05 [2025-02-14 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470454', 'tblTempUsageDetail_20' ) start [2025-02-14 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470454', 'tblTempUsageDetail_20' ) end [2025-02-14 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470454', 'tblTempVendorCDR_20' ) start [2025-02-14 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470454', 'tblTempVendorCDR_20' ) end [2025-02-14 01:43:18] Production.INFO: ProcessCDR(1,14470454,1,1,2) [2025-02-14 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470454', 'tblTempUsageDetail_20' ) start [2025-02-14 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470454', 'tblTempUsageDetail_20' ) end [2025-02-14 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:43:22] Production.INFO: ==31403== Releasing lock... [2025-02-14 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:44:05 [end_date_ymd] => 2025-02-14 01:44:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:44:05' and `end` < '2025-02-14 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-02-14 01:44:20] Production.INFO: count ==320 [2025-02-14 01:44:20] Production.ERROR: pbx CDR StartTime 2025-02-13 22:44:05 - End Time 2025-02-14 01:44:05 [2025-02-14 01:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470459', 'tblTempUsageDetail_20' ) start [2025-02-14 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470459', 'tblTempUsageDetail_20' ) end [2025-02-14 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470459', 'tblTempVendorCDR_20' ) start [2025-02-14 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470459', 'tblTempVendorCDR_20' ) end [2025-02-14 01:44:20] Production.INFO: ProcessCDR(1,14470459,1,1,2) [2025-02-14 01:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470459', 'tblTempUsageDetail_20' ) start [2025-02-14 01:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470459', 'tblTempUsageDetail_20' ) end [2025-02-14 01:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:44:24] Production.INFO: ==31475== Releasing lock... [2025-02-14 01:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:44:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:45:05 [end_date_ymd] => 2025-02-14 01:45:05 [RateCDR] => 1 ) [2025-02-14 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:45:05' and `end` < '2025-02-14 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:45:18] Production.INFO: count ==322 [2025-02-14 01:45:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:45:05 - End Time 2025-02-14 01:45:05 [2025-02-14 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470464', 'tblTempUsageDetail_20' ) start [2025-02-14 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470464', 'tblTempUsageDetail_20' ) end [2025-02-14 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470464', 'tblTempVendorCDR_20' ) start [2025-02-14 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470464', 'tblTempVendorCDR_20' ) end [2025-02-14 01:45:19] Production.INFO: ProcessCDR(1,14470464,1,1,2) [2025-02-14 01:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470464', 'tblTempUsageDetail_20' ) start [2025-02-14 01:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470464', 'tblTempUsageDetail_20' ) end [2025-02-14 01:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:45:24] Production.INFO: ==31547== Releasing lock... [2025-02-14 01:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:45:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:46:06 [end_date_ymd] => 2025-02-14 01:46:06 [RateCDR] => 1 ) [2025-02-14 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:46:06' and `end` < '2025-02-14 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:46:19] Production.INFO: count ==323 [2025-02-14 01:46:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:46:06 - End Time 2025-02-14 01:46:06 [2025-02-14 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470469', 'tblTempUsageDetail_20' ) start [2025-02-14 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470469', 'tblTempUsageDetail_20' ) end [2025-02-14 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470469', 'tblTempVendorCDR_20' ) start [2025-02-14 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470469', 'tblTempVendorCDR_20' ) end [2025-02-14 01:46:19] Production.INFO: ProcessCDR(1,14470469,1,1,2) [2025-02-14 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470469', 'tblTempUsageDetail_20' ) start [2025-02-14 01:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470469', 'tblTempUsageDetail_20' ) end [2025-02-14 01:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:46:24] Production.INFO: ==31620== Releasing lock... [2025-02-14 01:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:46:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:47:06 [end_date_ymd] => 2025-02-14 01:47:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:47:06' and `end` < '2025-02-14 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-02-14 01:47:19] Production.INFO: count ==326 [2025-02-14 01:47:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:47:06 - End Time 2025-02-14 01:47:06 [2025-02-14 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470474', 'tblTempUsageDetail_20' ) start [2025-02-14 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470474', 'tblTempUsageDetail_20' ) end [2025-02-14 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470474', 'tblTempVendorCDR_20' ) start [2025-02-14 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470474', 'tblTempVendorCDR_20' ) end [2025-02-14 01:47:19] Production.INFO: ProcessCDR(1,14470474,1,1,2) [2025-02-14 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470474', 'tblTempUsageDetail_20' ) start [2025-02-14 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470474', 'tblTempUsageDetail_20' ) end [2025-02-14 01:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:47:23] Production.INFO: ==31692== Releasing lock... [2025-02-14 01:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:47:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:48:06 [end_date_ymd] => 2025-02-14 01:48:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:48:06' and `end` < '2025-02-14 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-02-14 01:48:20] Production.INFO: count ==326 [2025-02-14 01:48:20] Production.ERROR: pbx CDR StartTime 2025-02-13 22:48:06 - End Time 2025-02-14 01:48:06 [2025-02-14 01:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470479', 'tblTempUsageDetail_20' ) start [2025-02-14 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470479', 'tblTempUsageDetail_20' ) end [2025-02-14 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470479', 'tblTempVendorCDR_20' ) start [2025-02-14 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470479', 'tblTempVendorCDR_20' ) end [2025-02-14 01:48:20] Production.INFO: ProcessCDR(1,14470479,1,1,2) [2025-02-14 01:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470479', 'tblTempUsageDetail_20' ) start [2025-02-14 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470479', 'tblTempUsageDetail_20' ) end [2025-02-14 01:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:48:23] Production.INFO: ==31765== Releasing lock... [2025-02-14 01:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:48:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:49:06 [end_date_ymd] => 2025-02-14 01:49:06 [RateCDR] => 1 ) [2025-02-14 01: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-02-13 22:49:06' and `end` < '2025-02-14 01: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-02-14 01:49:20] Production.INFO: count ==326 [2025-02-14 01:49:20] Production.ERROR: pbx CDR StartTime 2025-02-13 22:49:06 - End Time 2025-02-14 01:49:06 [2025-02-14 01:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470484', 'tblTempUsageDetail_20' ) start [2025-02-14 01:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470484', 'tblTempUsageDetail_20' ) end [2025-02-14 01:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470484', 'tblTempVendorCDR_20' ) start [2025-02-14 01:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470484', 'tblTempVendorCDR_20' ) end [2025-02-14 01:49:20] Production.INFO: ProcessCDR(1,14470484,1,1,2) [2025-02-14 01:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470484', 'tblTempUsageDetail_20' ) start [2025-02-14 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470484', 'tblTempUsageDetail_20' ) end [2025-02-14 01:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:49:23] Production.INFO: ==31837== Releasing lock... [2025-02-14 01:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:49:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:50:06 [end_date_ymd] => 2025-02-14 01:50:06 [RateCDR] => 1 ) [2025-02-14 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:50:06' and `end` < '2025-02-14 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:50:20] Production.INFO: count ==336 [2025-02-14 01:50:20] Production.ERROR: pbx CDR StartTime 2025-02-13 22:50:06 - End Time 2025-02-14 01:50:06 [2025-02-14 01:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470490', 'tblTempUsageDetail_20' ) start [2025-02-14 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470490', 'tblTempUsageDetail_20' ) end [2025-02-14 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470490', 'tblTempVendorCDR_20' ) start [2025-02-14 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470490', 'tblTempVendorCDR_20' ) end [2025-02-14 01:50:20] Production.INFO: ProcessCDR(1,14470490,1,1,2) [2025-02-14 01:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470490', 'tblTempUsageDetail_20' ) start [2025-02-14 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470490', 'tblTempUsageDetail_20' ) end [2025-02-14 01:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:50:24] Production.INFO: ==31911== Releasing lock... [2025-02-14 01:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:50:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:51:05 [end_date_ymd] => 2025-02-14 01:51:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:51:05' and `end` < '2025-02-14 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-02-14 01:51:18] Production.INFO: count ==342 [2025-02-14 01:51:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:51:05 - End Time 2025-02-14 01:51:05 [2025-02-14 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470495', 'tblTempUsageDetail_20' ) start [2025-02-14 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470495', 'tblTempUsageDetail_20' ) end [2025-02-14 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470495', 'tblTempVendorCDR_20' ) start [2025-02-14 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470495', 'tblTempVendorCDR_20' ) end [2025-02-14 01:51:18] Production.INFO: ProcessCDR(1,14470495,1,1,2) [2025-02-14 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470495', 'tblTempUsageDetail_20' ) start [2025-02-14 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470495', 'tblTempUsageDetail_20' ) end [2025-02-14 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:51:22] Production.INFO: ==32029== Releasing lock... [2025-02-14 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:51:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:52:05 [end_date_ymd] => 2025-02-14 01:52:05 [RateCDR] => 1 ) [2025-02-14 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:52:05' and `end` < '2025-02-14 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:52:18] Production.INFO: count ==339 [2025-02-14 01:52:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:52:05 - End Time 2025-02-14 01:52:05 [2025-02-14 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470500', 'tblTempUsageDetail_20' ) start [2025-02-14 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470500', 'tblTempUsageDetail_20' ) end [2025-02-14 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470500', 'tblTempVendorCDR_20' ) start [2025-02-14 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470500', 'tblTempVendorCDR_20' ) end [2025-02-14 01:52:18] Production.INFO: ProcessCDR(1,14470500,1,1,2) [2025-02-14 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470500', 'tblTempUsageDetail_20' ) start [2025-02-14 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470500', 'tblTempUsageDetail_20' ) end [2025-02-14 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:52:22] Production.INFO: ==32100== Releasing lock... [2025-02-14 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:52:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:53:05 [end_date_ymd] => 2025-02-14 01:53:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:53:05' and `end` < '2025-02-14 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-02-14 01:53:19] Production.INFO: count ==339 [2025-02-14 01:53:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:53:05 - End Time 2025-02-14 01:53:05 [2025-02-14 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470505', 'tblTempUsageDetail_20' ) start [2025-02-14 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470505', 'tblTempUsageDetail_20' ) end [2025-02-14 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470505', 'tblTempVendorCDR_20' ) start [2025-02-14 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470505', 'tblTempVendorCDR_20' ) end [2025-02-14 01:53:19] Production.INFO: ProcessCDR(1,14470505,1,1,2) [2025-02-14 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470505', 'tblTempUsageDetail_20' ) start [2025-02-14 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470505', 'tblTempUsageDetail_20' ) end [2025-02-14 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:53:22] Production.INFO: ==32171== Releasing lock... [2025-02-14 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:53:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:54:05 [end_date_ymd] => 2025-02-14 01:54:05 [RateCDR] => 1 ) [2025-02-14 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:54:05' and `end` < '2025-02-14 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:54:19] Production.INFO: count ==338 [2025-02-14 01:54:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:54:05 - End Time 2025-02-14 01:54:05 [2025-02-14 01:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470510', 'tblTempUsageDetail_20' ) start [2025-02-14 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470510', 'tblTempUsageDetail_20' ) end [2025-02-14 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470510', 'tblTempVendorCDR_20' ) start [2025-02-14 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470510', 'tblTempVendorCDR_20' ) end [2025-02-14 01:54:19] Production.INFO: ProcessCDR(1,14470510,1,1,2) [2025-02-14 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470510', 'tblTempUsageDetail_20' ) start [2025-02-14 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470510', 'tblTempUsageDetail_20' ) end [2025-02-14 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:54:22] Production.INFO: ==32243== Releasing lock... [2025-02-14 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:54:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:55:06 [end_date_ymd] => 2025-02-14 01:55:06 [RateCDR] => 1 ) [2025-02-14 01:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:55:06' and `end` < '2025-02-14 01:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:55:19] Production.INFO: count ==338 [2025-02-14 01:55:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:55:06 - End Time 2025-02-14 01:55:06 [2025-02-14 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470515', 'tblTempUsageDetail_20' ) start [2025-02-14 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470515', 'tblTempUsageDetail_20' ) end [2025-02-14 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470515', 'tblTempVendorCDR_20' ) start [2025-02-14 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470515', 'tblTempVendorCDR_20' ) end [2025-02-14 01:55:19] Production.INFO: ProcessCDR(1,14470515,1,1,2) [2025-02-14 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470515', 'tblTempUsageDetail_20' ) start [2025-02-14 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470515', 'tblTempUsageDetail_20' ) end [2025-02-14 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:55:22] Production.INFO: ==32319== Releasing lock... [2025-02-14 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:55:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:56:05 [end_date_ymd] => 2025-02-14 01:56:05 [RateCDR] => 1 ) [2025-02-14 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:56:05' and `end` < '2025-02-14 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:56:18] Production.INFO: count ==337 [2025-02-14 01:56:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:56:05 - End Time 2025-02-14 01:56:05 [2025-02-14 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470520', 'tblTempUsageDetail_20' ) start [2025-02-14 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470520', 'tblTempUsageDetail_20' ) end [2025-02-14 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470520', 'tblTempVendorCDR_20' ) start [2025-02-14 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470520', 'tblTempVendorCDR_20' ) end [2025-02-14 01:56:18] Production.INFO: ProcessCDR(1,14470520,1,1,2) [2025-02-14 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470520', 'tblTempUsageDetail_20' ) start [2025-02-14 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470520', 'tblTempUsageDetail_20' ) end [2025-02-14 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:56:22] Production.INFO: ==32394== Releasing lock... [2025-02-14 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:56:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:57:06 [end_date_ymd] => 2025-02-14 01:57:06 [RateCDR] => 1 ) [2025-02-14 01:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 22:57:06' and `end` < '2025-02-14 01:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 01:57:19] Production.INFO: count ==337 [2025-02-14 01:57:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:57:06 - End Time 2025-02-14 01:57:06 [2025-02-14 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470525', 'tblTempUsageDetail_20' ) start [2025-02-14 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470525', 'tblTempUsageDetail_20' ) end [2025-02-14 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470525', 'tblTempVendorCDR_20' ) start [2025-02-14 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470525', 'tblTempVendorCDR_20' ) end [2025-02-14 01:57:19] Production.INFO: ProcessCDR(1,14470525,1,1,2) [2025-02-14 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470525', 'tblTempUsageDetail_20' ) start [2025-02-14 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470525', 'tblTempUsageDetail_20' ) end [2025-02-14 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:57:22] Production.INFO: ==32463== Releasing lock... [2025-02-14 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:57:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:58:05 [end_date_ymd] => 2025-02-14 01:58:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:58:05' and `end` < '2025-02-14 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-02-14 01:58:18] Production.INFO: count ==341 [2025-02-14 01:58:18] Production.ERROR: pbx CDR StartTime 2025-02-13 22:58:05 - End Time 2025-02-14 01:58:05 [2025-02-14 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470530', 'tblTempUsageDetail_20' ) start [2025-02-14 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470530', 'tblTempUsageDetail_20' ) end [2025-02-14 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470530', 'tblTempVendorCDR_20' ) start [2025-02-14 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470530', 'tblTempVendorCDR_20' ) end [2025-02-14 01:58:18] Production.INFO: ProcessCDR(1,14470530,1,1,2) [2025-02-14 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470530', 'tblTempUsageDetail_20' ) start [2025-02-14 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470530', 'tblTempUsageDetail_20' ) end [2025-02-14 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:58:22] Production.INFO: ==32537== Releasing lock... [2025-02-14 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:58:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 22:59:06 [end_date_ymd] => 2025-02-14 01:59:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 22:59:06' and `end` < '2025-02-14 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-02-14 01:59:19] Production.INFO: count ==341 [2025-02-14 01:59:19] Production.ERROR: pbx CDR StartTime 2025-02-13 22:59:06 - End Time 2025-02-14 01:59:06 [2025-02-14 01:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470535', 'tblTempUsageDetail_20' ) start [2025-02-14 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470535', 'tblTempUsageDetail_20' ) end [2025-02-14 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470535', 'tblTempVendorCDR_20' ) start [2025-02-14 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470535', 'tblTempVendorCDR_20' ) end [2025-02-14 01:59:19] Production.INFO: ProcessCDR(1,14470535,1,1,2) [2025-02-14 01:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470535', 'tblTempUsageDetail_20' ) start [2025-02-14 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470535', 'tblTempUsageDetail_20' ) end [2025-02-14 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 01:59:22] Production.INFO: ==32614== Releasing lock... [2025-02-14 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 01:59:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:00:06 [end_date_ymd] => 2025-02-14 02:00:06 [RateCDR] => 1 ) [2025-02-14 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:00:06' and `end` < '2025-02-14 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:00:19] Production.INFO: count ==353 [2025-02-14 02:00:20] Production.ERROR: pbx CDR StartTime 2025-02-13 23:00:06 - End Time 2025-02-14 02:00:06 [2025-02-14 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470540', 'tblTempUsageDetail_20' ) start [2025-02-14 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470540', 'tblTempUsageDetail_20' ) end [2025-02-14 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470540', 'tblTempVendorCDR_20' ) start [2025-02-14 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470540', 'tblTempVendorCDR_20' ) end [2025-02-14 02:00:20] Production.INFO: ProcessCDR(1,14470540,1,1,2) [2025-02-14 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470540', 'tblTempUsageDetail_20' ) start [2025-02-14 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470540', 'tblTempUsageDetail_20' ) end [2025-02-14 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:00:24] Production.INFO: ==32693== Releasing lock... [2025-02-14 02:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:00:24] Production.INFO: 31 MB #Memory Used# [2025-02-14 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:01:06 [end_date_ymd] => 2025-02-14 02:01:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:01:06' and `end` < '2025-02-14 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-02-14 02:01:19] Production.INFO: count ==353 [2025-02-14 02:01:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:01:06 - End Time 2025-02-14 02:01:06 [2025-02-14 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470546', 'tblTempUsageDetail_20' ) start [2025-02-14 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470546', 'tblTempUsageDetail_20' ) end [2025-02-14 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470546', 'tblTempVendorCDR_20' ) start [2025-02-14 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470546', 'tblTempVendorCDR_20' ) end [2025-02-14 02:01:19] Production.INFO: ProcessCDR(1,14470546,1,1,2) [2025-02-14 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470546', 'tblTempUsageDetail_20' ) start [2025-02-14 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470546', 'tblTempUsageDetail_20' ) end [2025-02-14 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:01:22] Production.INFO: ==422== Releasing lock... [2025-02-14 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:01:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:02:05 [end_date_ymd] => 2025-02-14 02:02:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:02:05' and `end` < '2025-02-14 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-02-14 02:02:19] Production.INFO: count ==353 [2025-02-14 02:02:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:02:05 - End Time 2025-02-14 02:02:05 [2025-02-14 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470551', 'tblTempUsageDetail_20' ) start [2025-02-14 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470551', 'tblTempUsageDetail_20' ) end [2025-02-14 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470551', 'tblTempVendorCDR_20' ) start [2025-02-14 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470551', 'tblTempVendorCDR_20' ) end [2025-02-14 02:02:19] Production.INFO: ProcessCDR(1,14470551,1,1,2) [2025-02-14 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470551', 'tblTempUsageDetail_20' ) start [2025-02-14 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470551', 'tblTempUsageDetail_20' ) end [2025-02-14 02:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:02:23] Production.INFO: ==497== Releasing lock... [2025-02-14 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:02:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:03:06 [end_date_ymd] => 2025-02-14 02:03:06 [RateCDR] => 1 ) [2025-02-14 02: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-02-13 23:03:06' and `end` < '2025-02-14 02: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-02-14 02:03:19] Production.INFO: count ==349 [2025-02-14 02:03:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:03:06 - End Time 2025-02-14 02:03:06 [2025-02-14 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470556', 'tblTempUsageDetail_20' ) start [2025-02-14 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470556', 'tblTempUsageDetail_20' ) end [2025-02-14 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470556', 'tblTempVendorCDR_20' ) start [2025-02-14 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470556', 'tblTempVendorCDR_20' ) end [2025-02-14 02:03:19] Production.INFO: ProcessCDR(1,14470556,1,1,2) [2025-02-14 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470556', 'tblTempUsageDetail_20' ) start [2025-02-14 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470556', 'tblTempUsageDetail_20' ) end [2025-02-14 02:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:03:23] Production.INFO: ==572== Releasing lock... [2025-02-14 02:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:03:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:04:06 [end_date_ymd] => 2025-02-14 02:04:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:04:06' and `end` < '2025-02-14 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-02-14 02:04:20] Production.INFO: count ==348 [2025-02-14 02:04:20] Production.ERROR: pbx CDR StartTime 2025-02-13 23:04:06 - End Time 2025-02-14 02:04:06 [2025-02-14 02:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470561', 'tblTempUsageDetail_20' ) start [2025-02-14 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470561', 'tblTempUsageDetail_20' ) end [2025-02-14 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470561', 'tblTempVendorCDR_20' ) start [2025-02-14 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470561', 'tblTempVendorCDR_20' ) end [2025-02-14 02:04:20] Production.INFO: ProcessCDR(1,14470561,1,1,2) [2025-02-14 02:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470561', 'tblTempUsageDetail_20' ) start [2025-02-14 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470561', 'tblTempUsageDetail_20' ) end [2025-02-14 02:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:04:23] Production.INFO: ==650== Releasing lock... [2025-02-14 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:04:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:05:05 [end_date_ymd] => 2025-02-14 02:05:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:05:05' and `end` < '2025-02-14 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-02-14 02:05:18] Production.INFO: count ==343 [2025-02-14 02:05:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:05:05 - End Time 2025-02-14 02:05:05 [2025-02-14 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470566', 'tblTempUsageDetail_20' ) start [2025-02-14 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470566', 'tblTempUsageDetail_20' ) end [2025-02-14 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470566', 'tblTempVendorCDR_20' ) start [2025-02-14 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470566', 'tblTempVendorCDR_20' ) end [2025-02-14 02:05:18] Production.INFO: ProcessCDR(1,14470566,1,1,2) [2025-02-14 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470566', 'tblTempUsageDetail_20' ) start [2025-02-14 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470566', 'tblTempUsageDetail_20' ) end [2025-02-14 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:05:22] Production.INFO: ==748== Releasing lock... [2025-02-14 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:05:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:06:06 [end_date_ymd] => 2025-02-14 02:06:06 [RateCDR] => 1 ) [2025-02-14 02: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-02-13 23:06:06' and `end` < '2025-02-14 02: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-02-14 02:06:19] Production.INFO: count ==343 [2025-02-14 02:06:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:06:06 - End Time 2025-02-14 02:06:06 [2025-02-14 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470571', 'tblTempUsageDetail_20' ) start [2025-02-14 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470571', 'tblTempUsageDetail_20' ) end [2025-02-14 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470571', 'tblTempVendorCDR_20' ) start [2025-02-14 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470571', 'tblTempVendorCDR_20' ) end [2025-02-14 02:06:19] Production.INFO: ProcessCDR(1,14470571,1,1,2) [2025-02-14 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470571', 'tblTempUsageDetail_20' ) start [2025-02-14 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470571', 'tblTempUsageDetail_20' ) end [2025-02-14 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:06:22] Production.INFO: ==860== Releasing lock... [2025-02-14 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:06:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:07:06 [end_date_ymd] => 2025-02-14 02:07:06 [RateCDR] => 1 ) [2025-02-14 02:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:07:06' and `end` < '2025-02-14 02:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:07:20] Production.INFO: count ==339 [2025-02-14 02:07:20] Production.ERROR: pbx CDR StartTime 2025-02-13 23:07:06 - End Time 2025-02-14 02:07:06 [2025-02-14 02:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470576', 'tblTempUsageDetail_20' ) start [2025-02-14 02:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470576', 'tblTempUsageDetail_20' ) end [2025-02-14 02:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470576', 'tblTempVendorCDR_20' ) start [2025-02-14 02:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470576', 'tblTempVendorCDR_20' ) end [2025-02-14 02:07:20] Production.INFO: ProcessCDR(1,14470576,1,1,2) [2025-02-14 02:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470576', 'tblTempUsageDetail_20' ) start [2025-02-14 02:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470576', 'tblTempUsageDetail_20' ) end [2025-02-14 02:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:07:24] Production.INFO: ==936== Releasing lock... [2025-02-14 02:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:07:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:08:05 [end_date_ymd] => 2025-02-14 02:08:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:08:05' and `end` < '2025-02-14 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-02-14 02:08:19] Production.INFO: count ==339 [2025-02-14 02:08:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:08:05 - End Time 2025-02-14 02:08:05 [2025-02-14 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470581', 'tblTempUsageDetail_20' ) start [2025-02-14 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470581', 'tblTempUsageDetail_20' ) end [2025-02-14 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470581', 'tblTempVendorCDR_20' ) start [2025-02-14 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470581', 'tblTempVendorCDR_20' ) end [2025-02-14 02:08:19] Production.INFO: ProcessCDR(1,14470581,1,1,2) [2025-02-14 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470581', 'tblTempUsageDetail_20' ) start [2025-02-14 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470581', 'tblTempUsageDetail_20' ) end [2025-02-14 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:08:22] Production.INFO: ==1009== Releasing lock... [2025-02-14 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:08:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:09:06 [end_date_ymd] => 2025-02-14 02:09:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:09:06' and `end` < '2025-02-14 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-02-14 02:09:20] Production.INFO: count ==339 [2025-02-14 02:09:20] Production.ERROR: pbx CDR StartTime 2025-02-13 23:09:06 - End Time 2025-02-14 02:09:06 [2025-02-14 02:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470586', 'tblTempUsageDetail_20' ) start [2025-02-14 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470586', 'tblTempUsageDetail_20' ) end [2025-02-14 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470586', 'tblTempVendorCDR_20' ) start [2025-02-14 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470586', 'tblTempVendorCDR_20' ) end [2025-02-14 02:09:20] Production.INFO: ProcessCDR(1,14470586,1,1,2) [2025-02-14 02:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470586', 'tblTempUsageDetail_20' ) start [2025-02-14 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470586', 'tblTempUsageDetail_20' ) end [2025-02-14 02:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:09:23] Production.INFO: ==1085== Releasing lock... [2025-02-14 02:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:09:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:10:06 [end_date_ymd] => 2025-02-14 02:10:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:10:06' and `end` < '2025-02-14 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-02-14 02:10:20] Production.INFO: count ==342 [2025-02-14 02:10:20] Production.ERROR: pbx CDR StartTime 2025-02-13 23:10:06 - End Time 2025-02-14 02:10:06 [2025-02-14 02:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470592', 'tblTempUsageDetail_20' ) start [2025-02-14 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470592', 'tblTempUsageDetail_20' ) end [2025-02-14 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470592', 'tblTempVendorCDR_20' ) start [2025-02-14 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470592', 'tblTempVendorCDR_20' ) end [2025-02-14 02:10:20] Production.INFO: ProcessCDR(1,14470592,1,1,2) [2025-02-14 02:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470592', 'tblTempUsageDetail_20' ) start [2025-02-14 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470592', 'tblTempUsageDetail_20' ) end [2025-02-14 02:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:10:24] Production.INFO: ==1169== Releasing lock... [2025-02-14 02:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:10:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:11:06 [end_date_ymd] => 2025-02-14 02:11:06 [RateCDR] => 1 ) [2025-02-14 02:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:11:06' and `end` < '2025-02-14 02:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:11:20] Production.INFO: count ==343 [2025-02-14 02:11:20] Production.ERROR: pbx CDR StartTime 2025-02-13 23:11:06 - End Time 2025-02-14 02:11:06 [2025-02-14 02:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470597', 'tblTempUsageDetail_20' ) start [2025-02-14 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470597', 'tblTempUsageDetail_20' ) end [2025-02-14 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470597', 'tblTempVendorCDR_20' ) start [2025-02-14 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470597', 'tblTempVendorCDR_20' ) end [2025-02-14 02:11:20] Production.INFO: ProcessCDR(1,14470597,1,1,2) [2025-02-14 02:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470597', 'tblTempUsageDetail_20' ) start [2025-02-14 02:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470597', 'tblTempUsageDetail_20' ) end [2025-02-14 02:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:11:23] Production.INFO: ==1256== Releasing lock... [2025-02-14 02:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:11:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:12:05 [end_date_ymd] => 2025-02-14 02:12:05 [RateCDR] => 1 ) [2025-02-14 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:12:05' and `end` < '2025-02-14 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:12:19] Production.INFO: count ==342 [2025-02-14 02:12:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:12:05 - End Time 2025-02-14 02:12:05 [2025-02-14 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470602', 'tblTempUsageDetail_20' ) start [2025-02-14 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470602', 'tblTempUsageDetail_20' ) end [2025-02-14 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470602', 'tblTempVendorCDR_20' ) start [2025-02-14 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470602', 'tblTempVendorCDR_20' ) end [2025-02-14 02:12:19] Production.INFO: ProcessCDR(1,14470602,1,1,2) [2025-02-14 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470602', 'tblTempUsageDetail_20' ) start [2025-02-14 02:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470602', 'tblTempUsageDetail_20' ) end [2025-02-14 02:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:12:23] Production.INFO: ==1331== Releasing lock... [2025-02-14 02:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:12:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:13:06 [end_date_ymd] => 2025-02-14 02:13:06 [RateCDR] => 1 ) [2025-02-14 02:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:13:06' and `end` < '2025-02-14 02:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:13:19] Production.INFO: count ==346 [2025-02-14 02:13:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:13:06 - End Time 2025-02-14 02:13:06 [2025-02-14 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470607', 'tblTempUsageDetail_20' ) start [2025-02-14 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470607', 'tblTempUsageDetail_20' ) end [2025-02-14 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470607', 'tblTempVendorCDR_20' ) start [2025-02-14 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470607', 'tblTempVendorCDR_20' ) end [2025-02-14 02:13:19] Production.INFO: ProcessCDR(1,14470607,1,1,2) [2025-02-14 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470607', 'tblTempUsageDetail_20' ) start [2025-02-14 02:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470607', 'tblTempUsageDetail_20' ) end [2025-02-14 02:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:13:23] Production.INFO: ==1403== Releasing lock... [2025-02-14 02:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:13:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:14:06 [end_date_ymd] => 2025-02-14 02:14:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:14:06' and `end` < '2025-02-14 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-02-14 02:14:19] Production.INFO: count ==344 [2025-02-14 02:14:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:14:06 - End Time 2025-02-14 02:14:06 [2025-02-14 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470612', 'tblTempUsageDetail_20' ) start [2025-02-14 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470612', 'tblTempUsageDetail_20' ) end [2025-02-14 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470612', 'tblTempVendorCDR_20' ) start [2025-02-14 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470612', 'tblTempVendorCDR_20' ) end [2025-02-14 02:14:19] Production.INFO: ProcessCDR(1,14470612,1,1,2) [2025-02-14 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470612', 'tblTempUsageDetail_20' ) start [2025-02-14 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470612', 'tblTempUsageDetail_20' ) end [2025-02-14 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:14:22] Production.INFO: ==1477== Releasing lock... [2025-02-14 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:14:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:15:06 [end_date_ymd] => 2025-02-14 02:15:06 [RateCDR] => 1 ) [2025-02-14 02:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:15:06' and `end` < '2025-02-14 02:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:15:19] Production.INFO: count ==342 [2025-02-14 02:15:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:15:06 - End Time 2025-02-14 02:15:06 [2025-02-14 02:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470617', 'tblTempUsageDetail_20' ) start [2025-02-14 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470617', 'tblTempUsageDetail_20' ) end [2025-02-14 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470617', 'tblTempVendorCDR_20' ) start [2025-02-14 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470617', 'tblTempVendorCDR_20' ) end [2025-02-14 02:15:19] Production.INFO: ProcessCDR(1,14470617,1,1,2) [2025-02-14 02:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470617', 'tblTempUsageDetail_20' ) start [2025-02-14 02:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470617', 'tblTempUsageDetail_20' ) end [2025-02-14 02:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:15:23] Production.INFO: ==1590== Releasing lock... [2025-02-14 02:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:15:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:16:05 [end_date_ymd] => 2025-02-14 02:16:05 [RateCDR] => 1 ) [2025-02-14 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:16:05' and `end` < '2025-02-14 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:16:19] Production.INFO: count ==342 [2025-02-14 02:16:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:16:05 - End Time 2025-02-14 02:16:05 [2025-02-14 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470622', 'tblTempUsageDetail_20' ) start [2025-02-14 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470622', 'tblTempUsageDetail_20' ) end [2025-02-14 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470622', 'tblTempVendorCDR_20' ) start [2025-02-14 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470622', 'tblTempVendorCDR_20' ) end [2025-02-14 02:16:19] Production.INFO: ProcessCDR(1,14470622,1,1,2) [2025-02-14 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470622', 'tblTempUsageDetail_20' ) start [2025-02-14 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470622', 'tblTempUsageDetail_20' ) end [2025-02-14 02:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:16:23] Production.INFO: ==1660== Releasing lock... [2025-02-14 02:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:16:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:17:05 [end_date_ymd] => 2025-02-14 02:17:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:17:05' and `end` < '2025-02-14 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-02-14 02:17:19] Production.INFO: count ==342 [2025-02-14 02:17:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:17:05 - End Time 2025-02-14 02:17:05 [2025-02-14 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470627', 'tblTempUsageDetail_20' ) start [2025-02-14 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470627', 'tblTempUsageDetail_20' ) end [2025-02-14 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470627', 'tblTempVendorCDR_20' ) start [2025-02-14 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470627', 'tblTempVendorCDR_20' ) end [2025-02-14 02:17:19] Production.INFO: ProcessCDR(1,14470627,1,1,2) [2025-02-14 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470627', 'tblTempUsageDetail_20' ) start [2025-02-14 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470627', 'tblTempUsageDetail_20' ) end [2025-02-14 02:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:17:23] Production.INFO: ==1735== Releasing lock... [2025-02-14 02:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:17:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:18:05 [end_date_ymd] => 2025-02-14 02:18:05 [RateCDR] => 1 ) [2025-02-14 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:18:05' and `end` < '2025-02-14 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:18:18] Production.INFO: count ==342 [2025-02-14 02:18:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:18:05 - End Time 2025-02-14 02:18:05 [2025-02-14 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470632', 'tblTempUsageDetail_20' ) start [2025-02-14 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470632', 'tblTempUsageDetail_20' ) end [2025-02-14 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470632', 'tblTempVendorCDR_20' ) start [2025-02-14 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470632', 'tblTempVendorCDR_20' ) end [2025-02-14 02:18:18] Production.INFO: ProcessCDR(1,14470632,1,1,2) [2025-02-14 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470632', 'tblTempUsageDetail_20' ) start [2025-02-14 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470632', 'tblTempUsageDetail_20' ) end [2025-02-14 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:18:22] Production.INFO: ==1810== Releasing lock... [2025-02-14 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:18:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:19:06 [end_date_ymd] => 2025-02-14 02:19:06 [RateCDR] => 1 ) [2025-02-14 02:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:19:06' and `end` < '2025-02-14 02:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:19:19] Production.INFO: count ==342 [2025-02-14 02:19:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:19:06 - End Time 2025-02-14 02:19:06 [2025-02-14 02:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470637', 'tblTempUsageDetail_20' ) start [2025-02-14 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470637', 'tblTempUsageDetail_20' ) end [2025-02-14 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470637', 'tblTempVendorCDR_20' ) start [2025-02-14 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470637', 'tblTempVendorCDR_20' ) end [2025-02-14 02:19:19] Production.INFO: ProcessCDR(1,14470637,1,1,2) [2025-02-14 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470637', 'tblTempUsageDetail_20' ) start [2025-02-14 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470637', 'tblTempUsageDetail_20' ) end [2025-02-14 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:19:22] Production.INFO: ==1887== Releasing lock... [2025-02-14 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:19:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:20:05 [end_date_ymd] => 2025-02-14 02:20:05 [RateCDR] => 1 ) [2025-02-14 02:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:20:05' and `end` < '2025-02-14 02:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:20:19] Production.INFO: count ==348 [2025-02-14 02:20:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:20:05 - End Time 2025-02-14 02:20:05 [2025-02-14 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470643', 'tblTempUsageDetail_20' ) start [2025-02-14 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470643', 'tblTempUsageDetail_20' ) end [2025-02-14 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470643', 'tblTempVendorCDR_20' ) start [2025-02-14 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470643', 'tblTempVendorCDR_20' ) end [2025-02-14 02:20:19] Production.INFO: ProcessCDR(1,14470643,1,1,2) [2025-02-14 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470643', 'tblTempUsageDetail_20' ) start [2025-02-14 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470643', 'tblTempUsageDetail_20' ) end [2025-02-14 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:20:23] Production.INFO: ==1961== Releasing lock... [2025-02-14 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:20:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 02:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:21:06 [end_date_ymd] => 2025-02-14 02:21:06 [RateCDR] => 1 ) [2025-02-14 02:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:21:06' and `end` < '2025-02-14 02:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:21:18] Production.INFO: count ==356 [2025-02-14 02:21:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:21:06 - End Time 2025-02-14 02:21:06 [2025-02-14 02:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470648', 'tblTempUsageDetail_20' ) start [2025-02-14 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470648', 'tblTempUsageDetail_20' ) end [2025-02-14 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470648', 'tblTempVendorCDR_20' ) start [2025-02-14 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470648', 'tblTempVendorCDR_20' ) end [2025-02-14 02:21:19] Production.INFO: ProcessCDR(1,14470648,1,1,2) [2025-02-14 02:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470648', 'tblTempUsageDetail_20' ) start [2025-02-14 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470648', 'tblTempUsageDetail_20' ) end [2025-02-14 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:21:22] Production.INFO: ==2046== Releasing lock... [2025-02-14 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:21:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:22:05 [end_date_ymd] => 2025-02-14 02:22:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:22:05' and `end` < '2025-02-14 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-02-14 02:22:18] Production.INFO: count ==356 [2025-02-14 02:22:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:22:05 - End Time 2025-02-14 02:22:05 [2025-02-14 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470653', 'tblTempUsageDetail_20' ) start [2025-02-14 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470653', 'tblTempUsageDetail_20' ) end [2025-02-14 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470653', 'tblTempVendorCDR_20' ) start [2025-02-14 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470653', 'tblTempVendorCDR_20' ) end [2025-02-14 02:22:18] Production.INFO: ProcessCDR(1,14470653,1,1,2) [2025-02-14 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470653', 'tblTempUsageDetail_20' ) start [2025-02-14 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470653', 'tblTempUsageDetail_20' ) end [2025-02-14 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:22:21] Production.INFO: ==2157== Releasing lock... [2025-02-14 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:23:06 [end_date_ymd] => 2025-02-14 02:23:06 [RateCDR] => 1 ) [2025-02-14 02:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:23:06' and `end` < '2025-02-14 02:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:23:19] Production.INFO: count ==360 [2025-02-14 02:23:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:23:06 - End Time 2025-02-14 02:23:06 [2025-02-14 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470658', 'tblTempUsageDetail_20' ) start [2025-02-14 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470658', 'tblTempUsageDetail_20' ) end [2025-02-14 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470658', 'tblTempVendorCDR_20' ) start [2025-02-14 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470658', 'tblTempVendorCDR_20' ) end [2025-02-14 02:23:19] Production.INFO: ProcessCDR(1,14470658,1,1,2) [2025-02-14 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470658', 'tblTempUsageDetail_20' ) start [2025-02-14 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470658', 'tblTempUsageDetail_20' ) end [2025-02-14 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:23:22] Production.INFO: ==2234== Releasing lock... [2025-02-14 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:23:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:24:05 [end_date_ymd] => 2025-02-14 02:24:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:24:05' and `end` < '2025-02-14 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-02-14 02:24:18] Production.INFO: count ==352 [2025-02-14 02:24:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:24:05 - End Time 2025-02-14 02:24:05 [2025-02-14 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470663', 'tblTempUsageDetail_20' ) start [2025-02-14 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470663', 'tblTempUsageDetail_20' ) end [2025-02-14 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470663', 'tblTempVendorCDR_20' ) start [2025-02-14 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470663', 'tblTempVendorCDR_20' ) end [2025-02-14 02:24:19] Production.INFO: ProcessCDR(1,14470663,1,1,2) [2025-02-14 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470663', 'tblTempUsageDetail_20' ) start [2025-02-14 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470663', 'tblTempUsageDetail_20' ) end [2025-02-14 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:24:22] Production.INFO: ==2307== Releasing lock... [2025-02-14 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:24:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:25:06 [end_date_ymd] => 2025-02-14 02:25:06 [RateCDR] => 1 ) [2025-02-14 02:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:25:06' and `end` < '2025-02-14 02:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:25:20] Production.INFO: count ==353 [2025-02-14 02:25:20] Production.ERROR: pbx CDR StartTime 2025-02-13 23:25:06 - End Time 2025-02-14 02:25:06 [2025-02-14 02:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470668', 'tblTempUsageDetail_20' ) start [2025-02-14 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470668', 'tblTempUsageDetail_20' ) end [2025-02-14 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470668', 'tblTempVendorCDR_20' ) start [2025-02-14 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470668', 'tblTempVendorCDR_20' ) end [2025-02-14 02:25:20] Production.INFO: ProcessCDR(1,14470668,1,1,2) [2025-02-14 02:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470668', 'tblTempUsageDetail_20' ) start [2025-02-14 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470668', 'tblTempUsageDetail_20' ) end [2025-02-14 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:25:25] Production.INFO: ==2382== Releasing lock... [2025-02-14 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:25:25] Production.INFO: 31 MB #Memory Used# [2025-02-14 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:26:05 [end_date_ymd] => 2025-02-14 02:26:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:26:05' and `end` < '2025-02-14 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-02-14 02:26:18] Production.INFO: count ==351 [2025-02-14 02:26:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:26:05 - End Time 2025-02-14 02:26:05 [2025-02-14 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470673', 'tblTempUsageDetail_20' ) start [2025-02-14 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470673', 'tblTempUsageDetail_20' ) end [2025-02-14 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470673', 'tblTempVendorCDR_20' ) start [2025-02-14 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470673', 'tblTempVendorCDR_20' ) end [2025-02-14 02:26:18] Production.INFO: ProcessCDR(1,14470673,1,1,2) [2025-02-14 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470673', 'tblTempUsageDetail_20' ) start [2025-02-14 02:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470673', 'tblTempUsageDetail_20' ) end [2025-02-14 02:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:26:23] Production.INFO: ==2456== Releasing lock... [2025-02-14 02:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:26:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:27:05 [end_date_ymd] => 2025-02-14 02:27:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:27:05' and `end` < '2025-02-14 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-02-14 02:27:18] Production.INFO: count ==351 [2025-02-14 02:27:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:27:05 - End Time 2025-02-14 02:27:05 [2025-02-14 02:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470678', 'tblTempUsageDetail_20' ) start [2025-02-14 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470678', 'tblTempUsageDetail_20' ) end [2025-02-14 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470678', 'tblTempVendorCDR_20' ) start [2025-02-14 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470678', 'tblTempVendorCDR_20' ) end [2025-02-14 02:27:19] Production.INFO: ProcessCDR(1,14470678,1,1,2) [2025-02-14 02:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470678', 'tblTempUsageDetail_20' ) start [2025-02-14 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470678', 'tblTempUsageDetail_20' ) end [2025-02-14 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:27:22] Production.INFO: ==2525== Releasing lock... [2025-02-14 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:27:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:28:05 [end_date_ymd] => 2025-02-14 02:28:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:28:05' and `end` < '2025-02-14 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-02-14 02:28:18] Production.INFO: count ==350 [2025-02-14 02:28:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:28:05 - End Time 2025-02-14 02:28:05 [2025-02-14 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470683', 'tblTempUsageDetail_20' ) start [2025-02-14 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470683', 'tblTempUsageDetail_20' ) end [2025-02-14 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470683', 'tblTempVendorCDR_20' ) start [2025-02-14 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470683', 'tblTempVendorCDR_20' ) end [2025-02-14 02:28:18] Production.INFO: ProcessCDR(1,14470683,1,1,2) [2025-02-14 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470683', 'tblTempUsageDetail_20' ) start [2025-02-14 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470683', 'tblTempUsageDetail_20' ) end [2025-02-14 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:28:21] Production.INFO: ==2596== Releasing lock... [2025-02-14 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:29:05 [end_date_ymd] => 2025-02-14 02:29:05 [RateCDR] => 1 ) [2025-02-14 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:29:05' and `end` < '2025-02-14 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:29:18] Production.INFO: count ==350 [2025-02-14 02:29:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:29:05 - End Time 2025-02-14 02:29:05 [2025-02-14 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470688', 'tblTempUsageDetail_20' ) start [2025-02-14 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470688', 'tblTempUsageDetail_20' ) end [2025-02-14 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470688', 'tblTempVendorCDR_20' ) start [2025-02-14 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470688', 'tblTempVendorCDR_20' ) end [2025-02-14 02:29:18] Production.INFO: ProcessCDR(1,14470688,1,1,2) [2025-02-14 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470688', 'tblTempUsageDetail_20' ) start [2025-02-14 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470688', 'tblTempUsageDetail_20' ) end [2025-02-14 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:29:22] Production.INFO: ==2671== Releasing lock... [2025-02-14 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:29:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:30:05 [end_date_ymd] => 2025-02-14 02:30:05 [RateCDR] => 1 ) [2025-02-14 02: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-02-13 23:30:05' and `end` < '2025-02-14 02: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-02-14 02:30:18] Production.INFO: count ==357 [2025-02-14 02:30:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:30:05 - End Time 2025-02-14 02:30:05 [2025-02-14 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470694', 'tblTempUsageDetail_20' ) start [2025-02-14 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470694', 'tblTempUsageDetail_20' ) end [2025-02-14 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470694', 'tblTempVendorCDR_20' ) start [2025-02-14 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470694', 'tblTempVendorCDR_20' ) end [2025-02-14 02:30:18] Production.INFO: ProcessCDR(1,14470694,1,1,2) [2025-02-14 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470694', 'tblTempUsageDetail_20' ) start [2025-02-14 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470694', 'tblTempUsageDetail_20' ) end [2025-02-14 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:30:23] Production.INFO: ==2745== Releasing lock... [2025-02-14 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:30:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:31:05 [end_date_ymd] => 2025-02-14 02:31:05 [RateCDR] => 1 ) [2025-02-14 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:31:05' and `end` < '2025-02-14 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:31:18] Production.INFO: count ==371 [2025-02-14 02:31:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:31:05 - End Time 2025-02-14 02:31:05 [2025-02-14 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470699', 'tblTempUsageDetail_20' ) start [2025-02-14 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470699', 'tblTempUsageDetail_20' ) end [2025-02-14 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470699', 'tblTempVendorCDR_20' ) start [2025-02-14 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470699', 'tblTempVendorCDR_20' ) end [2025-02-14 02:31:18] Production.INFO: ProcessCDR(1,14470699,1,1,2) [2025-02-14 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470699', 'tblTempUsageDetail_20' ) start [2025-02-14 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470699', 'tblTempUsageDetail_20' ) end [2025-02-14 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:31:22] Production.INFO: ==2822== Releasing lock... [2025-02-14 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:31:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:32:05 [end_date_ymd] => 2025-02-14 02:32:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:32:05' and `end` < '2025-02-14 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-02-14 02:32:18] Production.INFO: count ==372 [2025-02-14 02:32:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:32:05 - End Time 2025-02-14 02:32:05 [2025-02-14 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470704', 'tblTempUsageDetail_20' ) start [2025-02-14 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470704', 'tblTempUsageDetail_20' ) end [2025-02-14 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470704', 'tblTempVendorCDR_20' ) start [2025-02-14 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470704', 'tblTempVendorCDR_20' ) end [2025-02-14 02:32:18] Production.INFO: ProcessCDR(1,14470704,1,1,2) [2025-02-14 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470704', 'tblTempUsageDetail_20' ) start [2025-02-14 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470704', 'tblTempUsageDetail_20' ) end [2025-02-14 02:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:32:23] Production.INFO: ==2896== Releasing lock... [2025-02-14 02:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:32:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:33:05 [end_date_ymd] => 2025-02-14 02:33:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:33:05' and `end` < '2025-02-14 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-02-14 02:33:19] Production.INFO: count ==372 [2025-02-14 02:33:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:33:05 - End Time 2025-02-14 02:33:05 [2025-02-14 02:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470709', 'tblTempUsageDetail_20' ) start [2025-02-14 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470709', 'tblTempUsageDetail_20' ) end [2025-02-14 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470709', 'tblTempVendorCDR_20' ) start [2025-02-14 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470709', 'tblTempVendorCDR_20' ) end [2025-02-14 02:33:19] Production.INFO: ProcessCDR(1,14470709,1,1,2) [2025-02-14 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470709', 'tblTempUsageDetail_20' ) start [2025-02-14 02:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470709', 'tblTempUsageDetail_20' ) end [2025-02-14 02:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:33:24] Production.INFO: ==2967== Releasing lock... [2025-02-14 02:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:33:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:34:05 [end_date_ymd] => 2025-02-14 02:34:05 [RateCDR] => 1 ) [2025-02-14 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:34:05' and `end` < '2025-02-14 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:34:19] Production.INFO: count ==375 [2025-02-14 02:34:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:34:05 - End Time 2025-02-14 02:34:05 [2025-02-14 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470714', 'tblTempUsageDetail_20' ) start [2025-02-14 02:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470714', 'tblTempUsageDetail_20' ) end [2025-02-14 02:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470714', 'tblTempVendorCDR_20' ) start [2025-02-14 02:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470714', 'tblTempVendorCDR_20' ) end [2025-02-14 02:34:20] Production.INFO: ProcessCDR(1,14470714,1,1,2) [2025-02-14 02:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470714', 'tblTempUsageDetail_20' ) start [2025-02-14 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470714', 'tblTempUsageDetail_20' ) end [2025-02-14 02:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:34:23] Production.INFO: ==3041== Releasing lock... [2025-02-14 02:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:34:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:35:06 [end_date_ymd] => 2025-02-14 02:35:06 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:35:06' and `end` < '2025-02-14 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-02-14 02:35:19] Production.INFO: count ==374 [2025-02-14 02:35:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:35:06 - End Time 2025-02-14 02:35:06 [2025-02-14 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470719', 'tblTempUsageDetail_20' ) start [2025-02-14 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470719', 'tblTempUsageDetail_20' ) end [2025-02-14 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470719', 'tblTempVendorCDR_20' ) start [2025-02-14 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470719', 'tblTempVendorCDR_20' ) end [2025-02-14 02:35:19] Production.INFO: ProcessCDR(1,14470719,1,1,2) [2025-02-14 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470719', 'tblTempUsageDetail_20' ) start [2025-02-14 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470719', 'tblTempUsageDetail_20' ) end [2025-02-14 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:35:22] Production.INFO: ==3128== Releasing lock... [2025-02-14 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:35:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:36:05 [end_date_ymd] => 2025-02-14 02:36:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:36:05' and `end` < '2025-02-14 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-02-14 02:36:18] Production.INFO: count ==374 [2025-02-14 02:36:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:36:05 - End Time 2025-02-14 02:36:05 [2025-02-14 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470724', 'tblTempUsageDetail_20' ) start [2025-02-14 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470724', 'tblTempUsageDetail_20' ) end [2025-02-14 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470724', 'tblTempVendorCDR_20' ) start [2025-02-14 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470724', 'tblTempVendorCDR_20' ) end [2025-02-14 02:36:18] Production.INFO: ProcessCDR(1,14470724,1,1,2) [2025-02-14 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470724', 'tblTempUsageDetail_20' ) start [2025-02-14 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470724', 'tblTempUsageDetail_20' ) end [2025-02-14 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:36:22] Production.INFO: ==3227== Releasing lock... [2025-02-14 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:36:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:37:06 [end_date_ymd] => 2025-02-14 02:37:06 [RateCDR] => 1 ) [2025-02-14 02: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-02-13 23:37:06' and `end` < '2025-02-14 02: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-02-14 02:37:19] Production.INFO: count ==374 [2025-02-14 02:37:20] Production.ERROR: pbx CDR StartTime 2025-02-13 23:37:06 - End Time 2025-02-14 02:37:06 [2025-02-14 02:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470729', 'tblTempUsageDetail_20' ) start [2025-02-14 02:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470729', 'tblTempUsageDetail_20' ) end [2025-02-14 02:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470729', 'tblTempVendorCDR_20' ) start [2025-02-14 02:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470729', 'tblTempVendorCDR_20' ) end [2025-02-14 02:37:20] Production.INFO: ProcessCDR(1,14470729,1,1,2) [2025-02-14 02:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470729', 'tblTempUsageDetail_20' ) start [2025-02-14 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470729', 'tblTempUsageDetail_20' ) end [2025-02-14 02:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:37:23] Production.INFO: ==3366== Releasing lock... [2025-02-14 02:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:37:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:38:05 [end_date_ymd] => 2025-02-14 02:38:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:38:05' and `end` < '2025-02-14 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-02-14 02:38:19] Production.INFO: count ==374 [2025-02-14 02:38:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:38:05 - End Time 2025-02-14 02:38:05 [2025-02-14 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470734', 'tblTempUsageDetail_20' ) start [2025-02-14 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470734', 'tblTempUsageDetail_20' ) end [2025-02-14 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470734', 'tblTempVendorCDR_20' ) start [2025-02-14 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470734', 'tblTempVendorCDR_20' ) end [2025-02-14 02:38:19] Production.INFO: ProcessCDR(1,14470734,1,1,2) [2025-02-14 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470734', 'tblTempUsageDetail_20' ) start [2025-02-14 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470734', 'tblTempUsageDetail_20' ) end [2025-02-14 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:38:22] Production.INFO: ==3475== Releasing lock... [2025-02-14 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:38:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:39:05 [end_date_ymd] => 2025-02-14 02:39:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:39:05' and `end` < '2025-02-14 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-02-14 02:39:19] Production.INFO: count ==374 [2025-02-14 02:39:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:39:05 - End Time 2025-02-14 02:39:05 [2025-02-14 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470739', 'tblTempUsageDetail_20' ) start [2025-02-14 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470739', 'tblTempUsageDetail_20' ) end [2025-02-14 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470739', 'tblTempVendorCDR_20' ) start [2025-02-14 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470739', 'tblTempVendorCDR_20' ) end [2025-02-14 02:39:19] Production.INFO: ProcessCDR(1,14470739,1,1,2) [2025-02-14 02:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470739', 'tblTempUsageDetail_20' ) start [2025-02-14 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470739', 'tblTempUsageDetail_20' ) end [2025-02-14 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:39:22] Production.INFO: ==3575== Releasing lock... [2025-02-14 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:39:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:40:05 [end_date_ymd] => 2025-02-14 02:40:05 [RateCDR] => 1 ) [2025-02-14 02: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-02-13 23:40:05' and `end` < '2025-02-14 02: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-02-14 02:40:18] Production.INFO: count ==382 [2025-02-14 02:40:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:40:05 - End Time 2025-02-14 02:40:05 [2025-02-14 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470744', 'tblTempUsageDetail_20' ) start [2025-02-14 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470744', 'tblTempUsageDetail_20' ) end [2025-02-14 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470744', 'tblTempVendorCDR_20' ) start [2025-02-14 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470744', 'tblTempVendorCDR_20' ) end [2025-02-14 02:40:18] Production.INFO: ProcessCDR(1,14470744,1,1,2) [2025-02-14 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470744', 'tblTempUsageDetail_20' ) start [2025-02-14 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470744', 'tblTempUsageDetail_20' ) end [2025-02-14 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:40:21] Production.INFO: ==3656== Releasing lock... [2025-02-14 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:40:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:41:05 [end_date_ymd] => 2025-02-14 02:41:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:41:05' and `end` < '2025-02-14 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-02-14 02:41:19] Production.INFO: count ==384 [2025-02-14 02:41:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:41:05 - End Time 2025-02-14 02:41:05 [2025-02-14 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470750', 'tblTempUsageDetail_20' ) start [2025-02-14 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470750', 'tblTempUsageDetail_20' ) end [2025-02-14 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470750', 'tblTempVendorCDR_20' ) start [2025-02-14 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470750', 'tblTempVendorCDR_20' ) end [2025-02-14 02:41:19] Production.INFO: ProcessCDR(1,14470750,1,1,2) [2025-02-14 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470750', 'tblTempUsageDetail_20' ) start [2025-02-14 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470750', 'tblTempUsageDetail_20' ) end [2025-02-14 02:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:41:23] Production.INFO: ==3732== Releasing lock... [2025-02-14 02:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:41:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:42:05 [end_date_ymd] => 2025-02-14 02:42:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:42:05' and `end` < '2025-02-14 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-02-14 02:42:18] Production.INFO: count ==377 [2025-02-14 02:42:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:42:05 - End Time 2025-02-14 02:42:05 [2025-02-14 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470755', 'tblTempUsageDetail_20' ) start [2025-02-14 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470755', 'tblTempUsageDetail_20' ) end [2025-02-14 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470755', 'tblTempVendorCDR_20' ) start [2025-02-14 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470755', 'tblTempVendorCDR_20' ) end [2025-02-14 02:42:19] Production.INFO: ProcessCDR(1,14470755,1,1,2) [2025-02-14 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470755', 'tblTempUsageDetail_20' ) start [2025-02-14 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470755', 'tblTempUsageDetail_20' ) end [2025-02-14 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:42:22] Production.INFO: ==3801== Releasing lock... [2025-02-14 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:42:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 02:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:43:04 [end_date_ymd] => 2025-02-14 02:43:04 [RateCDR] => 1 ) [2025-02-14 02:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:43:04' and `end` < '2025-02-14 02:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:43:18] Production.INFO: count ==375 [2025-02-14 02:43:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:43:04 - End Time 2025-02-14 02:43:04 [2025-02-14 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470760', 'tblTempUsageDetail_20' ) start [2025-02-14 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470760', 'tblTempUsageDetail_20' ) end [2025-02-14 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470760', 'tblTempVendorCDR_20' ) start [2025-02-14 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470760', 'tblTempVendorCDR_20' ) end [2025-02-14 02:43:18] Production.INFO: ProcessCDR(1,14470760,1,1,2) [2025-02-14 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470760', 'tblTempUsageDetail_20' ) start [2025-02-14 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470760', 'tblTempUsageDetail_20' ) end [2025-02-14 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:43:21] Production.INFO: ==3873== Releasing lock... [2025-02-14 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:43:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:44:05 [end_date_ymd] => 2025-02-14 02:44:05 [RateCDR] => 1 ) [2025-02-14 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:44:05' and `end` < '2025-02-14 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:44:18] Production.INFO: count ==374 [2025-02-14 02:44:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:44:05 - End Time 2025-02-14 02:44:05 [2025-02-14 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470765', 'tblTempUsageDetail_20' ) start [2025-02-14 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470765', 'tblTempUsageDetail_20' ) end [2025-02-14 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470765', 'tblTempVendorCDR_20' ) start [2025-02-14 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470765', 'tblTempVendorCDR_20' ) end [2025-02-14 02:44:18] Production.INFO: ProcessCDR(1,14470765,1,1,2) [2025-02-14 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470765', 'tblTempUsageDetail_20' ) start [2025-02-14 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470765', 'tblTempUsageDetail_20' ) end [2025-02-14 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:44:22] Production.INFO: ==3946== Releasing lock... [2025-02-14 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:44:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:45:05 [end_date_ymd] => 2025-02-14 02:45:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:45:05' and `end` < '2025-02-14 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-02-14 02:45:18] Production.INFO: count ==374 [2025-02-14 02:45:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:45:05 - End Time 2025-02-14 02:45:05 [2025-02-14 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470770', 'tblTempUsageDetail_20' ) start [2025-02-14 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470770', 'tblTempUsageDetail_20' ) end [2025-02-14 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470770', 'tblTempVendorCDR_20' ) start [2025-02-14 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470770', 'tblTempVendorCDR_20' ) end [2025-02-14 02:45:18] Production.INFO: ProcessCDR(1,14470770,1,1,2) [2025-02-14 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470770', 'tblTempUsageDetail_20' ) start [2025-02-14 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470770', 'tblTempUsageDetail_20' ) end [2025-02-14 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:45:21] Production.INFO: ==4016== Releasing lock... [2025-02-14 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:46:05 [end_date_ymd] => 2025-02-14 02:46:05 [RateCDR] => 1 ) [2025-02-14 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:46:05' and `end` < '2025-02-14 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:46:19] Production.INFO: count ==372 [2025-02-14 02:46:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:46:05 - End Time 2025-02-14 02:46:05 [2025-02-14 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470775', 'tblTempUsageDetail_20' ) start [2025-02-14 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470775', 'tblTempUsageDetail_20' ) end [2025-02-14 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470775', 'tblTempVendorCDR_20' ) start [2025-02-14 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470775', 'tblTempVendorCDR_20' ) end [2025-02-14 02:46:19] Production.INFO: ProcessCDR(1,14470775,1,1,2) [2025-02-14 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470775', 'tblTempUsageDetail_20' ) start [2025-02-14 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470775', 'tblTempUsageDetail_20' ) end [2025-02-14 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:46:22] Production.INFO: ==4093== Releasing lock... [2025-02-14 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:46:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:47:05 [end_date_ymd] => 2025-02-14 02:47:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:47:05' and `end` < '2025-02-14 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-02-14 02:47:18] Production.INFO: count ==372 [2025-02-14 02:47:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:47:05 - End Time 2025-02-14 02:47:05 [2025-02-14 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470780', 'tblTempUsageDetail_20' ) start [2025-02-14 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470780', 'tblTempUsageDetail_20' ) end [2025-02-14 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470780', 'tblTempVendorCDR_20' ) start [2025-02-14 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470780', 'tblTempVendorCDR_20' ) end [2025-02-14 02:47:19] Production.INFO: ProcessCDR(1,14470780,1,1,2) [2025-02-14 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470780', 'tblTempUsageDetail_20' ) start [2025-02-14 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470780', 'tblTempUsageDetail_20' ) end [2025-02-14 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:47:22] Production.INFO: ==4169== Releasing lock... [2025-02-14 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:47:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:48:06 [end_date_ymd] => 2025-02-14 02:48:06 [RateCDR] => 1 ) [2025-02-14 02:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:48:06' and `end` < '2025-02-14 02:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:48:19] Production.INFO: count ==370 [2025-02-14 02:48:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:48:06 - End Time 2025-02-14 02:48:06 [2025-02-14 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470785', 'tblTempUsageDetail_20' ) start [2025-02-14 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470785', 'tblTempUsageDetail_20' ) end [2025-02-14 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470785', 'tblTempVendorCDR_20' ) start [2025-02-14 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470785', 'tblTempVendorCDR_20' ) end [2025-02-14 02:48:19] Production.INFO: ProcessCDR(1,14470785,1,1,2) [2025-02-14 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470785', 'tblTempUsageDetail_20' ) start [2025-02-14 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470785', 'tblTempUsageDetail_20' ) end [2025-02-14 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:48:22] Production.INFO: ==4239== Releasing lock... [2025-02-14 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:48:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 02:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:49:04 [end_date_ymd] => 2025-02-14 02:49:04 [RateCDR] => 1 ) [2025-02-14 02: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-02-13 23:49:04' and `end` < '2025-02-14 02: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-02-14 02:49:18] Production.INFO: count ==368 [2025-02-14 02:49:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:49:04 - End Time 2025-02-14 02:49:04 [2025-02-14 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470790', 'tblTempUsageDetail_20' ) start [2025-02-14 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470790', 'tblTempUsageDetail_20' ) end [2025-02-14 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470790', 'tblTempVendorCDR_20' ) start [2025-02-14 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470790', 'tblTempVendorCDR_20' ) end [2025-02-14 02:49:18] Production.INFO: ProcessCDR(1,14470790,1,1,2) [2025-02-14 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470790', 'tblTempUsageDetail_20' ) start [2025-02-14 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470790', 'tblTempUsageDetail_20' ) end [2025-02-14 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:49:21] Production.INFO: ==4313== Releasing lock... [2025-02-14 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:50:06 [end_date_ymd] => 2025-02-14 02:50:06 [RateCDR] => 1 ) [2025-02-14 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:50:06' and `end` < '2025-02-14 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:50:20] Production.INFO: count ==375 [2025-02-14 02:50:20] Production.ERROR: pbx CDR StartTime 2025-02-13 23:50:06 - End Time 2025-02-14 02:50:06 [2025-02-14 02:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470795', 'tblTempUsageDetail_20' ) start [2025-02-14 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470795', 'tblTempUsageDetail_20' ) end [2025-02-14 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470795', 'tblTempVendorCDR_20' ) start [2025-02-14 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470795', 'tblTempVendorCDR_20' ) end [2025-02-14 02:50:20] Production.INFO: ProcessCDR(1,14470795,1,1,2) [2025-02-14 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470795', 'tblTempUsageDetail_20' ) start [2025-02-14 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470795', 'tblTempUsageDetail_20' ) end [2025-02-14 02:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:50:24] Production.INFO: ==4389== Releasing lock... [2025-02-14 02:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:50:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:51:05 [end_date_ymd] => 2025-02-14 02:51:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:51:05' and `end` < '2025-02-14 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-02-14 02:51:18] Production.INFO: count ==378 [2025-02-14 02:51:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:51:05 - End Time 2025-02-14 02:51:05 [2025-02-14 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470801', 'tblTempUsageDetail_20' ) start [2025-02-14 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470801', 'tblTempUsageDetail_20' ) end [2025-02-14 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470801', 'tblTempVendorCDR_20' ) start [2025-02-14 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470801', 'tblTempVendorCDR_20' ) end [2025-02-14 02:51:18] Production.INFO: ProcessCDR(1,14470801,1,1,2) [2025-02-14 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470801', 'tblTempUsageDetail_20' ) start [2025-02-14 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470801', 'tblTempUsageDetail_20' ) end [2025-02-14 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:51:22] Production.INFO: ==4462== Releasing lock... [2025-02-14 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:51:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:52:05 [end_date_ymd] => 2025-02-14 02:52:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:52:05' and `end` < '2025-02-14 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-02-14 02:52:18] Production.INFO: count ==375 [2025-02-14 02:52:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:52:05 - End Time 2025-02-14 02:52:05 [2025-02-14 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470806', 'tblTempUsageDetail_20' ) start [2025-02-14 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470806', 'tblTempUsageDetail_20' ) end [2025-02-14 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470806', 'tblTempVendorCDR_20' ) start [2025-02-14 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470806', 'tblTempVendorCDR_20' ) end [2025-02-14 02:52:18] Production.INFO: ProcessCDR(1,14470806,1,1,2) [2025-02-14 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470806', 'tblTempUsageDetail_20' ) start [2025-02-14 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470806', 'tblTempUsageDetail_20' ) end [2025-02-14 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:52:22] Production.INFO: ==4534== Releasing lock... [2025-02-14 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:52:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:53:05 [end_date_ymd] => 2025-02-14 02:53:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:53:05' and `end` < '2025-02-14 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-02-14 02:53:19] Production.INFO: count ==374 [2025-02-14 02:53:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:53:05 - End Time 2025-02-14 02:53:05 [2025-02-14 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470811', 'tblTempUsageDetail_20' ) start [2025-02-14 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470811', 'tblTempUsageDetail_20' ) end [2025-02-14 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470811', 'tblTempVendorCDR_20' ) start [2025-02-14 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470811', 'tblTempVendorCDR_20' ) end [2025-02-14 02:53:19] Production.INFO: ProcessCDR(1,14470811,1,1,2) [2025-02-14 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470811', 'tblTempUsageDetail_20' ) start [2025-02-14 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470811', 'tblTempUsageDetail_20' ) end [2025-02-14 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:53:22] Production.INFO: ==4652== Releasing lock... [2025-02-14 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:53:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:54:06 [end_date_ymd] => 2025-02-14 02:54:06 [RateCDR] => 1 ) [2025-02-14 02: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-02-13 23:54:06' and `end` < '2025-02-14 02: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-02-14 02:54:19] Production.INFO: count ==366 [2025-02-14 02:54:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:54:06 - End Time 2025-02-14 02:54:06 [2025-02-14 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470816', 'tblTempUsageDetail_20' ) start [2025-02-14 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470816', 'tblTempUsageDetail_20' ) end [2025-02-14 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470816', 'tblTempVendorCDR_20' ) start [2025-02-14 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470816', 'tblTempVendorCDR_20' ) end [2025-02-14 02:54:19] Production.INFO: ProcessCDR(1,14470816,1,1,2) [2025-02-14 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470816', 'tblTempUsageDetail_20' ) start [2025-02-14 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470816', 'tblTempUsageDetail_20' ) end [2025-02-14 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:54:22] Production.INFO: ==4726== Releasing lock... [2025-02-14 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:54:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:55:05 [end_date_ymd] => 2025-02-14 02:55:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:55:05' and `end` < '2025-02-14 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-02-14 02:55:18] Production.INFO: count ==362 [2025-02-14 02:55:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:55:05 - End Time 2025-02-14 02:55:05 [2025-02-14 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470821', 'tblTempUsageDetail_20' ) start [2025-02-14 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470821', 'tblTempUsageDetail_20' ) end [2025-02-14 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470821', 'tblTempVendorCDR_20' ) start [2025-02-14 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470821', 'tblTempVendorCDR_20' ) end [2025-02-14 02:55:18] Production.INFO: ProcessCDR(1,14470821,1,1,2) [2025-02-14 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470821', 'tblTempUsageDetail_20' ) start [2025-02-14 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470821', 'tblTempUsageDetail_20' ) end [2025-02-14 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:55:21] Production.INFO: ==4801== Releasing lock... [2025-02-14 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:56:05 [end_date_ymd] => 2025-02-14 02:56:05 [RateCDR] => 1 ) [2025-02-14 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-02-13 23:56:05' and `end` < '2025-02-14 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-02-14 02:56:18] Production.INFO: count ==362 [2025-02-14 02:56:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:56:05 - End Time 2025-02-14 02:56:05 [2025-02-14 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470826', 'tblTempUsageDetail_20' ) start [2025-02-14 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470826', 'tblTempUsageDetail_20' ) end [2025-02-14 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470826', 'tblTempVendorCDR_20' ) start [2025-02-14 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470826', 'tblTempVendorCDR_20' ) end [2025-02-14 02:56:18] Production.INFO: ProcessCDR(1,14470826,1,1,2) [2025-02-14 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470826', 'tblTempUsageDetail_20' ) start [2025-02-14 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470826', 'tblTempUsageDetail_20' ) end [2025-02-14 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:56:21] Production.INFO: ==4874== Releasing lock... [2025-02-14 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:57:06 [end_date_ymd] => 2025-02-14 02:57:06 [RateCDR] => 1 ) [2025-02-14 02:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:57:06' and `end` < '2025-02-14 02:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:57:19] Production.INFO: count ==362 [2025-02-14 02:57:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:57:06 - End Time 2025-02-14 02:57:06 [2025-02-14 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470831', 'tblTempUsageDetail_20' ) start [2025-02-14 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470831', 'tblTempUsageDetail_20' ) end [2025-02-14 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470831', 'tblTempVendorCDR_20' ) start [2025-02-14 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470831', 'tblTempVendorCDR_20' ) end [2025-02-14 02:57:19] Production.INFO: ProcessCDR(1,14470831,1,1,2) [2025-02-14 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470831', 'tblTempUsageDetail_20' ) start [2025-02-14 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470831', 'tblTempUsageDetail_20' ) end [2025-02-14 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:57:22] Production.INFO: ==4945== Releasing lock... [2025-02-14 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:57:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:58:05 [end_date_ymd] => 2025-02-14 02:58:05 [RateCDR] => 1 ) [2025-02-14 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 23:58:05' and `end` < '2025-02-14 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 02:58:18] Production.INFO: count ==361 [2025-02-14 02:58:18] Production.ERROR: pbx CDR StartTime 2025-02-13 23:58:05 - End Time 2025-02-14 02:58:05 [2025-02-14 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470836', 'tblTempUsageDetail_20' ) start [2025-02-14 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470836', 'tblTempUsageDetail_20' ) end [2025-02-14 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470836', 'tblTempVendorCDR_20' ) start [2025-02-14 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470836', 'tblTempVendorCDR_20' ) end [2025-02-14 02:58:18] Production.INFO: ProcessCDR(1,14470836,1,1,2) [2025-02-14 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470836', 'tblTempUsageDetail_20' ) start [2025-02-14 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470836', 'tblTempUsageDetail_20' ) end [2025-02-14 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:58:21] Production.INFO: ==5016== Releasing lock... [2025-02-14 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 23:59:05 [end_date_ymd] => 2025-02-14 02:59:05 [RateCDR] => 1 ) [2025-02-14 02: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-02-13 23:59:05' and `end` < '2025-02-14 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-02-14 02:59:19] Production.INFO: count ==357 [2025-02-14 02:59:19] Production.ERROR: pbx CDR StartTime 2025-02-13 23:59:05 - End Time 2025-02-14 02:59:05 [2025-02-14 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470841', 'tblTempUsageDetail_20' ) start [2025-02-14 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470841', 'tblTempUsageDetail_20' ) end [2025-02-14 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470841', 'tblTempVendorCDR_20' ) start [2025-02-14 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470841', 'tblTempVendorCDR_20' ) end [2025-02-14 02:59:19] Production.INFO: ProcessCDR(1,14470841,1,1,2) [2025-02-14 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470841', 'tblTempUsageDetail_20' ) start [2025-02-14 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470841', 'tblTempUsageDetail_20' ) end [2025-02-14 02:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 02:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 02:59:23] Production.INFO: ==5093== Releasing lock... [2025-02-14 02:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 02:59:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:00:05 [end_date_ymd] => 2025-02-14 03:00:05 [RateCDR] => 1 ) [2025-02-14 03: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-02-14 00:00:05' and `end` < '2025-02-14 03: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-02-14 03:00:18] Production.INFO: count ==363 [2025-02-14 03:00:18] Production.ERROR: pbx CDR StartTime 2025-02-14 00:00:05 - End Time 2025-02-14 03:00:05 [2025-02-14 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470847', 'tblTempUsageDetail_20' ) start [2025-02-14 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470847', 'tblTempUsageDetail_20' ) end [2025-02-14 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470847', 'tblTempVendorCDR_20' ) start [2025-02-14 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470847', 'tblTempVendorCDR_20' ) end [2025-02-14 03:00:18] Production.INFO: ProcessCDR(1,14470847,1,1,2) [2025-02-14 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470847', 'tblTempUsageDetail_20' ) start [2025-02-14 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470847', 'tblTempUsageDetail_20' ) end [2025-02-14 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:00:22] Production.INFO: ==5166== Releasing lock... [2025-02-14 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:01:06 [end_date_ymd] => 2025-02-14 03:01:06 [RateCDR] => 1 ) [2025-02-14 03:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:01:06' and `end` < '2025-02-14 03:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:01:18] Production.INFO: count ==375 [2025-02-14 03:01:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:01:06 - End Time 2025-02-14 03:01:06 [2025-02-14 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470852', 'tblTempUsageDetail_20' ) start [2025-02-14 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470852', 'tblTempUsageDetail_20' ) end [2025-02-14 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470852', 'tblTempVendorCDR_20' ) start [2025-02-14 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470852', 'tblTempVendorCDR_20' ) end [2025-02-14 03:01:19] Production.INFO: ProcessCDR(1,14470852,1,1,2) [2025-02-14 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470852', 'tblTempUsageDetail_20' ) start [2025-02-14 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470852', 'tblTempUsageDetail_20' ) end [2025-02-14 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:01:22] Production.INFO: ==5253== Releasing lock... [2025-02-14 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:01:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:02:05 [end_date_ymd] => 2025-02-14 03:02:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:02:05' and `end` < '2025-02-14 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-02-14 03:02:19] Production.INFO: count ==379 [2025-02-14 03:02:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:02:05 - End Time 2025-02-14 03:02:05 [2025-02-14 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470857', 'tblTempUsageDetail_20' ) start [2025-02-14 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470857', 'tblTempUsageDetail_20' ) end [2025-02-14 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470857', 'tblTempVendorCDR_20' ) start [2025-02-14 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470857', 'tblTempVendorCDR_20' ) end [2025-02-14 03:02:19] Production.INFO: ProcessCDR(1,14470857,1,1,2) [2025-02-14 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470857', 'tblTempUsageDetail_20' ) start [2025-02-14 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470857', 'tblTempUsageDetail_20' ) end [2025-02-14 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:02:22] Production.INFO: ==5399== Releasing lock... [2025-02-14 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:02:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:03:05 [end_date_ymd] => 2025-02-14 03:03:05 [RateCDR] => 1 ) [2025-02-14 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:03:05' and `end` < '2025-02-14 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:03:18] Production.INFO: count ==379 [2025-02-14 03:03:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:03:05 - End Time 2025-02-14 03:03:05 [2025-02-14 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470862', 'tblTempUsageDetail_20' ) start [2025-02-14 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470862', 'tblTempUsageDetail_20' ) end [2025-02-14 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470862', 'tblTempVendorCDR_20' ) start [2025-02-14 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470862', 'tblTempVendorCDR_20' ) end [2025-02-14 03:03:19] Production.INFO: ProcessCDR(1,14470862,1,1,2) [2025-02-14 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470862', 'tblTempUsageDetail_20' ) start [2025-02-14 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470862', 'tblTempUsageDetail_20' ) end [2025-02-14 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:03:22] Production.INFO: ==5470== Releasing lock... [2025-02-14 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:03:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:04:05 [end_date_ymd] => 2025-02-14 03:04:05 [RateCDR] => 1 ) [2025-02-14 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:04:05' and `end` < '2025-02-14 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:04:19] Production.INFO: count ==376 [2025-02-14 03:04:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:04:05 - End Time 2025-02-14 03:04:05 [2025-02-14 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470867', 'tblTempUsageDetail_20' ) start [2025-02-14 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470867', 'tblTempUsageDetail_20' ) end [2025-02-14 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470867', 'tblTempVendorCDR_20' ) start [2025-02-14 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470867', 'tblTempVendorCDR_20' ) end [2025-02-14 03:04:19] Production.INFO: ProcessCDR(1,14470867,1,1,2) [2025-02-14 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470867', 'tblTempUsageDetail_20' ) start [2025-02-14 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470867', 'tblTempUsageDetail_20' ) end [2025-02-14 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:04:22] Production.INFO: ==5541== Releasing lock... [2025-02-14 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:04:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:05:05 [end_date_ymd] => 2025-02-14 03:05:05 [RateCDR] => 1 ) [2025-02-14 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:05:05' and `end` < '2025-02-14 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:05:19] Production.INFO: count ==376 [2025-02-14 03:05:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:05:05 - End Time 2025-02-14 03:05:05 [2025-02-14 03:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470872', 'tblTempUsageDetail_20' ) start [2025-02-14 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470872', 'tblTempUsageDetail_20' ) end [2025-02-14 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470872', 'tblTempVendorCDR_20' ) start [2025-02-14 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470872', 'tblTempVendorCDR_20' ) end [2025-02-14 03:05:19] Production.INFO: ProcessCDR(1,14470872,1,1,2) [2025-02-14 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470872', 'tblTempUsageDetail_20' ) start [2025-02-14 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470872', 'tblTempUsageDetail_20' ) end [2025-02-14 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:05:22] Production.INFO: ==5609== Releasing lock... [2025-02-14 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:05:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:06:05 [end_date_ymd] => 2025-02-14 03:06:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:06:05' and `end` < '2025-02-14 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-02-14 03:06:18] Production.INFO: count ==376 [2025-02-14 03:06:18] Production.ERROR: pbx CDR StartTime 2025-02-14 00:06:05 - End Time 2025-02-14 03:06:05 [2025-02-14 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470877', 'tblTempUsageDetail_20' ) start [2025-02-14 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470877', 'tblTempUsageDetail_20' ) end [2025-02-14 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470877', 'tblTempVendorCDR_20' ) start [2025-02-14 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470877', 'tblTempVendorCDR_20' ) end [2025-02-14 03:06:18] Production.INFO: ProcessCDR(1,14470877,1,1,2) [2025-02-14 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470877', 'tblTempUsageDetail_20' ) start [2025-02-14 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470877', 'tblTempUsageDetail_20' ) end [2025-02-14 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:06:21] Production.INFO: ==5757== Releasing lock... [2025-02-14 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:06:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:07:05 [end_date_ymd] => 2025-02-14 03:07:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:07:05' and `end` < '2025-02-14 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-02-14 03:07:21] Production.INFO: count ==376 [2025-02-14 03:07:21] Production.ERROR: pbx CDR StartTime 2025-02-14 00:07:05 - End Time 2025-02-14 03:07:05 [2025-02-14 03:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470882', 'tblTempUsageDetail_20' ) start [2025-02-14 03:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470882', 'tblTempUsageDetail_20' ) end [2025-02-14 03:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470882', 'tblTempVendorCDR_20' ) start [2025-02-14 03:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470882', 'tblTempVendorCDR_20' ) end [2025-02-14 03:07:21] Production.INFO: ProcessCDR(1,14470882,1,1,2) [2025-02-14 03:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470882', 'tblTempUsageDetail_20' ) start [2025-02-14 03:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470882', 'tblTempUsageDetail_20' ) end [2025-02-14 03:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:07:24] Production.INFO: ==5825== Releasing lock... [2025-02-14 03:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:07:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 03:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:08:04 [end_date_ymd] => 2025-02-14 03:08:04 [RateCDR] => 1 ) [2025-02-14 03:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:08:04' and `end` < '2025-02-14 03:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:08:17] Production.INFO: count ==376 [2025-02-14 03:08:17] Production.ERROR: pbx CDR StartTime 2025-02-14 00:08:04 - End Time 2025-02-14 03:08:04 [2025-02-14 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470887', 'tblTempUsageDetail_20' ) start [2025-02-14 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470887', 'tblTempUsageDetail_20' ) end [2025-02-14 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470887', 'tblTempVendorCDR_20' ) start [2025-02-14 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470887', 'tblTempVendorCDR_20' ) end [2025-02-14 03:08:17] Production.INFO: ProcessCDR(1,14470887,1,1,2) [2025-02-14 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470887', 'tblTempUsageDetail_20' ) start [2025-02-14 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470887', 'tblTempUsageDetail_20' ) end [2025-02-14 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:08:21] Production.INFO: ==5934== Releasing lock... [2025-02-14 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:08:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:09:05 [end_date_ymd] => 2025-02-14 03:09:05 [RateCDR] => 1 ) [2025-02-14 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:09:05' and `end` < '2025-02-14 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:09:18] Production.INFO: count ==372 [2025-02-14 03:09:18] Production.ERROR: pbx CDR StartTime 2025-02-14 00:09:05 - End Time 2025-02-14 03:09:05 [2025-02-14 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470892', 'tblTempUsageDetail_20' ) start [2025-02-14 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470892', 'tblTempUsageDetail_20' ) end [2025-02-14 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470892', 'tblTempVendorCDR_20' ) start [2025-02-14 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470892', 'tblTempVendorCDR_20' ) end [2025-02-14 03:09:18] Production.INFO: ProcessCDR(1,14470892,1,1,2) [2025-02-14 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470892', 'tblTempUsageDetail_20' ) start [2025-02-14 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470892', 'tblTempUsageDetail_20' ) end [2025-02-14 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:09:22] Production.INFO: ==6082== Releasing lock... [2025-02-14 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:09:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:10:06 [end_date_ymd] => 2025-02-14 03:10:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:10:06' and `end` < '2025-02-14 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-02-14 03:10:19] Production.INFO: count ==367 [2025-02-14 03:10:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:10:06 - End Time 2025-02-14 03:10:06 [2025-02-14 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470897', 'tblTempUsageDetail_20' ) start [2025-02-14 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470897', 'tblTempUsageDetail_20' ) end [2025-02-14 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470897', 'tblTempVendorCDR_20' ) start [2025-02-14 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470897', 'tblTempVendorCDR_20' ) end [2025-02-14 03:10:19] Production.INFO: ProcessCDR(1,14470897,1,1,2) [2025-02-14 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470897', 'tblTempUsageDetail_20' ) start [2025-02-14 03:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470897', 'tblTempUsageDetail_20' ) end [2025-02-14 03:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:10:24] Production.INFO: ==6153== Releasing lock... [2025-02-14 03:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:10:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:11:05 [end_date_ymd] => 2025-02-14 03:11:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:11:05' and `end` < '2025-02-14 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-02-14 03:11:18] Production.INFO: count ==351 [2025-02-14 03:11:18] Production.ERROR: pbx CDR StartTime 2025-02-14 00:11:05 - End Time 2025-02-14 03:11:05 [2025-02-14 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470903', 'tblTempUsageDetail_20' ) start [2025-02-14 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470903', 'tblTempUsageDetail_20' ) end [2025-02-14 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470903', 'tblTempVendorCDR_20' ) start [2025-02-14 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470903', 'tblTempVendorCDR_20' ) end [2025-02-14 03:11:18] Production.INFO: ProcessCDR(1,14470903,1,1,2) [2025-02-14 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470903', 'tblTempUsageDetail_20' ) start [2025-02-14 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470903', 'tblTempUsageDetail_20' ) end [2025-02-14 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:11:21] Production.INFO: ==6223== Releasing lock... [2025-02-14 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:12:05 [end_date_ymd] => 2025-02-14 03:12:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:12:05' and `end` < '2025-02-14 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-02-14 03:12:19] Production.INFO: count ==351 [2025-02-14 03:12:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:12:05 - End Time 2025-02-14 03:12:05 [2025-02-14 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470908', 'tblTempUsageDetail_20' ) start [2025-02-14 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470908', 'tblTempUsageDetail_20' ) end [2025-02-14 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470908', 'tblTempVendorCDR_20' ) start [2025-02-14 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470908', 'tblTempVendorCDR_20' ) end [2025-02-14 03:12:19] Production.INFO: ProcessCDR(1,14470908,1,1,2) [2025-02-14 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470908', 'tblTempUsageDetail_20' ) start [2025-02-14 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470908', 'tblTempUsageDetail_20' ) end [2025-02-14 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:12:22] Production.INFO: ==6295== Releasing lock... [2025-02-14 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:12:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:13:05 [end_date_ymd] => 2025-02-14 03:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:13:05' and `end` < '2025-02-14 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-02-14 03:13:19] Production.INFO: count ==349 [2025-02-14 03:13:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:13:05 - End Time 2025-02-14 03:13:05 [2025-02-14 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470913', 'tblTempUsageDetail_20' ) start [2025-02-14 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470913', 'tblTempUsageDetail_20' ) end [2025-02-14 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470913', 'tblTempVendorCDR_20' ) start [2025-02-14 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470913', 'tblTempVendorCDR_20' ) end [2025-02-14 03:13:19] Production.INFO: ProcessCDR(1,14470913,1,1,2) [2025-02-14 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470913', 'tblTempUsageDetail_20' ) start [2025-02-14 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470913', 'tblTempUsageDetail_20' ) end [2025-02-14 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:13:22] Production.INFO: ==6441== Releasing lock... [2025-02-14 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:13:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:14:06 [end_date_ymd] => 2025-02-14 03:14:06 [RateCDR] => 1 ) [2025-02-14 03:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:14:06' and `end` < '2025-02-14 03:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:14:20] Production.INFO: count ==349 [2025-02-14 03:14:20] Production.ERROR: pbx CDR StartTime 2025-02-14 00:14:06 - End Time 2025-02-14 03:14:06 [2025-02-14 03:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470918', 'tblTempUsageDetail_20' ) start [2025-02-14 03:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470918', 'tblTempUsageDetail_20' ) end [2025-02-14 03:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470918', 'tblTempVendorCDR_20' ) start [2025-02-14 03:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470918', 'tblTempVendorCDR_20' ) end [2025-02-14 03:14:20] Production.INFO: ProcessCDR(1,14470918,1,1,2) [2025-02-14 03:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470918', 'tblTempUsageDetail_20' ) start [2025-02-14 03:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470918', 'tblTempUsageDetail_20' ) end [2025-02-14 03:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:14:23] Production.INFO: ==6513== Releasing lock... [2025-02-14 03:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:14:23] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:15:04 [end_date_ymd] => 2025-02-14 03:15:04 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:15:04' and `end` < '2025-02-14 03: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-02-14 03:15:18] Production.INFO: count ==348 [2025-02-14 03:15:18] Production.ERROR: pbx CDR StartTime 2025-02-14 00:15:04 - End Time 2025-02-14 03:15:04 [2025-02-14 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470923', 'tblTempUsageDetail_20' ) start [2025-02-14 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470923', 'tblTempUsageDetail_20' ) end [2025-02-14 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470923', 'tblTempVendorCDR_20' ) start [2025-02-14 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470923', 'tblTempVendorCDR_20' ) end [2025-02-14 03:15:18] Production.INFO: ProcessCDR(1,14470923,1,1,2) [2025-02-14 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470923', 'tblTempUsageDetail_20' ) start [2025-02-14 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470923', 'tblTempUsageDetail_20' ) end [2025-02-14 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:15:21] Production.INFO: ==6582== Releasing lock... [2025-02-14 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:15:21] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:16:05 [end_date_ymd] => 2025-02-14 03:16:05 [RateCDR] => 1 ) [2025-02-14 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:16:05' and `end` < '2025-02-14 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:16:19] Production.INFO: count ==347 [2025-02-14 03:16:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:16:05 - End Time 2025-02-14 03:16:05 [2025-02-14 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470928', 'tblTempUsageDetail_20' ) start [2025-02-14 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470928', 'tblTempUsageDetail_20' ) end [2025-02-14 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470928', 'tblTempVendorCDR_20' ) start [2025-02-14 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470928', 'tblTempVendorCDR_20' ) end [2025-02-14 03:16:19] Production.INFO: ProcessCDR(1,14470928,1,1,2) [2025-02-14 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470928', 'tblTempUsageDetail_20' ) start [2025-02-14 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470928', 'tblTempUsageDetail_20' ) end [2025-02-14 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:16:22] Production.INFO: ==6651== Releasing lock... [2025-02-14 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:16:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:17:05 [end_date_ymd] => 2025-02-14 03:17:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:17:05' and `end` < '2025-02-14 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-02-14 03:17:19] Production.INFO: count ==347 [2025-02-14 03:17:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:17:05 - End Time 2025-02-14 03:17:05 [2025-02-14 03:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470933', 'tblTempUsageDetail_20' ) start [2025-02-14 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470933', 'tblTempUsageDetail_20' ) end [2025-02-14 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470933', 'tblTempVendorCDR_20' ) start [2025-02-14 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470933', 'tblTempVendorCDR_20' ) end [2025-02-14 03:17:19] Production.INFO: ProcessCDR(1,14470933,1,1,2) [2025-02-14 03:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470933', 'tblTempUsageDetail_20' ) start [2025-02-14 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470933', 'tblTempUsageDetail_20' ) end [2025-02-14 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:17:22] Production.INFO: ==6798== Releasing lock... [2025-02-14 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:17:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:18:05 [end_date_ymd] => 2025-02-14 03:18:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:18:05' and `end` < '2025-02-14 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-02-14 03:18:19] Production.INFO: count ==347 [2025-02-14 03:18:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:18:05 - End Time 2025-02-14 03:18:05 [2025-02-14 03:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470938', 'tblTempUsageDetail_20' ) start [2025-02-14 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470938', 'tblTempUsageDetail_20' ) end [2025-02-14 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470938', 'tblTempVendorCDR_20' ) start [2025-02-14 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470938', 'tblTempVendorCDR_20' ) end [2025-02-14 03:18:19] Production.INFO: ProcessCDR(1,14470938,1,1,2) [2025-02-14 03:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470938', 'tblTempUsageDetail_20' ) start [2025-02-14 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470938', 'tblTempUsageDetail_20' ) end [2025-02-14 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:18:22] Production.INFO: ==6866== Releasing lock... [2025-02-14 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:18:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:19:04 [end_date_ymd] => 2025-02-14 03:19:04 [RateCDR] => 1 ) [2025-02-14 03:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:19:04' and `end` < '2025-02-14 03:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:19:17] Production.INFO: count ==347 [2025-02-14 03:19:17] Production.ERROR: pbx CDR StartTime 2025-02-14 00:19:04 - End Time 2025-02-14 03:19:04 [2025-02-14 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470943', 'tblTempUsageDetail_20' ) start [2025-02-14 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470943', 'tblTempUsageDetail_20' ) end [2025-02-14 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470943', 'tblTempVendorCDR_20' ) start [2025-02-14 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470943', 'tblTempVendorCDR_20' ) end [2025-02-14 03:19:18] Production.INFO: ProcessCDR(1,14470943,1,1,2) [2025-02-14 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470943', 'tblTempUsageDetail_20' ) start [2025-02-14 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470943', 'tblTempUsageDetail_20' ) end [2025-02-14 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:19:21] Production.INFO: ==6942== Releasing lock... [2025-02-14 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:19:21] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:20:06 [end_date_ymd] => 2025-02-14 03:20:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:20:06' and `end` < '2025-02-14 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-02-14 03:20:19] Production.INFO: count ==345 [2025-02-14 03:20:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:20:06 - End Time 2025-02-14 03:20:06 [2025-02-14 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470948', 'tblTempUsageDetail_20' ) start [2025-02-14 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470948', 'tblTempUsageDetail_20' ) end [2025-02-14 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470948', 'tblTempVendorCDR_20' ) start [2025-02-14 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470948', 'tblTempVendorCDR_20' ) end [2025-02-14 03:20:19] Production.INFO: ProcessCDR(1,14470948,1,1,2) [2025-02-14 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470948', 'tblTempUsageDetail_20' ) start [2025-02-14 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470948', 'tblTempUsageDetail_20' ) end [2025-02-14 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:20:22] Production.INFO: ==7015== Releasing lock... [2025-02-14 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:20:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:21:05 [end_date_ymd] => 2025-02-14 03:21:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:21:05' and `end` < '2025-02-14 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-02-14 03:21:18] Production.INFO: count ==349 [2025-02-14 03:21:18] Production.ERROR: pbx CDR StartTime 2025-02-14 00:21:05 - End Time 2025-02-14 03:21:05 [2025-02-14 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470954', 'tblTempUsageDetail_20' ) start [2025-02-14 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470954', 'tblTempUsageDetail_20' ) end [2025-02-14 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470954', 'tblTempVendorCDR_20' ) start [2025-02-14 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470954', 'tblTempVendorCDR_20' ) end [2025-02-14 03:21:18] Production.INFO: ProcessCDR(1,14470954,1,1,2) [2025-02-14 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470954', 'tblTempUsageDetail_20' ) start [2025-02-14 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470954', 'tblTempUsageDetail_20' ) end [2025-02-14 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:21:21] Production.INFO: ==7086== Releasing lock... [2025-02-14 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:21:21] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:22:05 [end_date_ymd] => 2025-02-14 03:22:05 [RateCDR] => 1 ) [2025-02-14 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:22:05' and `end` < '2025-02-14 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:22:20] Production.INFO: count ==345 [2025-02-14 03:22:20] Production.ERROR: pbx CDR StartTime 2025-02-14 00:22:05 - End Time 2025-02-14 03:22:05 [2025-02-14 03:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470959', 'tblTempUsageDetail_20' ) start [2025-02-14 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470959', 'tblTempUsageDetail_20' ) end [2025-02-14 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470959', 'tblTempVendorCDR_20' ) start [2025-02-14 03:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470959', 'tblTempVendorCDR_20' ) end [2025-02-14 03:22:20] Production.INFO: ProcessCDR(1,14470959,1,1,2) [2025-02-14 03:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470959', 'tblTempUsageDetail_20' ) start [2025-02-14 03:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470959', 'tblTempUsageDetail_20' ) end [2025-02-14 03:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:22:23] Production.INFO: ==7155== Releasing lock... [2025-02-14 03:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:22:23] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:23:05 [end_date_ymd] => 2025-02-14 03:23:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:23:05' and `end` < '2025-02-14 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-02-14 03:23:18] Production.INFO: count ==340 [2025-02-14 03:23:18] Production.ERROR: pbx CDR StartTime 2025-02-14 00:23:05 - End Time 2025-02-14 03:23:05 [2025-02-14 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470964', 'tblTempUsageDetail_20' ) start [2025-02-14 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470964', 'tblTempUsageDetail_20' ) end [2025-02-14 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470964', 'tblTempVendorCDR_20' ) start [2025-02-14 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470964', 'tblTempVendorCDR_20' ) end [2025-02-14 03:23:18] Production.INFO: ProcessCDR(1,14470964,1,1,2) [2025-02-14 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470964', 'tblTempUsageDetail_20' ) start [2025-02-14 03:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470964', 'tblTempUsageDetail_20' ) end [2025-02-14 03:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:23:23] Production.INFO: ==7226== Releasing lock... [2025-02-14 03:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:23:23] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:24:05 [end_date_ymd] => 2025-02-14 03:24:05 [RateCDR] => 1 ) [2025-02-14 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:24:05' and `end` < '2025-02-14 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:24:19] Production.INFO: count ==340 [2025-02-14 03:24:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:24:05 - End Time 2025-02-14 03:24:05 [2025-02-14 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470969', 'tblTempUsageDetail_20' ) start [2025-02-14 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470969', 'tblTempUsageDetail_20' ) end [2025-02-14 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470969', 'tblTempVendorCDR_20' ) start [2025-02-14 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470969', 'tblTempVendorCDR_20' ) end [2025-02-14 03:24:19] Production.INFO: ProcessCDR(1,14470969,1,1,2) [2025-02-14 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470969', 'tblTempUsageDetail_20' ) start [2025-02-14 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470969', 'tblTempUsageDetail_20' ) end [2025-02-14 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:24:22] Production.INFO: ==7295== Releasing lock... [2025-02-14 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:24:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:25:04 [end_date_ymd] => 2025-02-14 03:25:04 [RateCDR] => 1 ) [2025-02-14 03: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-02-14 00:25:04' and `end` < '2025-02-14 03: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-02-14 03:25:17] Production.INFO: count ==339 [2025-02-14 03:25:17] Production.ERROR: pbx CDR StartTime 2025-02-14 00:25:04 - End Time 2025-02-14 03:25:04 [2025-02-14 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470974', 'tblTempUsageDetail_20' ) start [2025-02-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470974', 'tblTempUsageDetail_20' ) end [2025-02-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470974', 'tblTempVendorCDR_20' ) start [2025-02-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470974', 'tblTempVendorCDR_20' ) end [2025-02-14 03:25:17] Production.INFO: ProcessCDR(1,14470974,1,1,2) [2025-02-14 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470974', 'tblTempUsageDetail_20' ) start [2025-02-14 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470974', 'tblTempUsageDetail_20' ) end [2025-02-14 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:25:21] Production.INFO: ==7403== Releasing lock... [2025-02-14 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:25:21] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:26:05 [end_date_ymd] => 2025-02-14 03:26:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:26:05' and `end` < '2025-02-14 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-02-14 03:26:18] Production.INFO: count ==337 [2025-02-14 03:26:18] Production.ERROR: pbx CDR StartTime 2025-02-14 00:26:05 - End Time 2025-02-14 03:26:05 [2025-02-14 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470979', 'tblTempUsageDetail_20' ) start [2025-02-14 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470979', 'tblTempUsageDetail_20' ) end [2025-02-14 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470979', 'tblTempVendorCDR_20' ) start [2025-02-14 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470979', 'tblTempVendorCDR_20' ) end [2025-02-14 03:26:18] Production.INFO: ProcessCDR(1,14470979,1,1,2) [2025-02-14 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470979', 'tblTempUsageDetail_20' ) start [2025-02-14 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470979', 'tblTempUsageDetail_20' ) end [2025-02-14 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:26:21] Production.INFO: ==7473== Releasing lock... [2025-02-14 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:26:21] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:27:05 [end_date_ymd] => 2025-02-14 03:27:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:27:05' and `end` < '2025-02-14 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-02-14 03:27:18] Production.INFO: count ==337 [2025-02-14 03:27:18] Production.ERROR: pbx CDR StartTime 2025-02-14 00:27:05 - End Time 2025-02-14 03:27:05 [2025-02-14 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470984', 'tblTempUsageDetail_20' ) start [2025-02-14 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470984', 'tblTempUsageDetail_20' ) end [2025-02-14 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470984', 'tblTempVendorCDR_20' ) start [2025-02-14 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470984', 'tblTempVendorCDR_20' ) end [2025-02-14 03:27:18] Production.INFO: ProcessCDR(1,14470984,1,1,2) [2025-02-14 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470984', 'tblTempUsageDetail_20' ) start [2025-02-14 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470984', 'tblTempUsageDetail_20' ) end [2025-02-14 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:27:22] Production.INFO: ==7561== Releasing lock... [2025-02-14 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:27:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:28:05 [end_date_ymd] => 2025-02-14 03:28:05 [RateCDR] => 1 ) [2025-02-14 03: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-02-14 00:28:05' and `end` < '2025-02-14 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-02-14 03:28:20] Production.INFO: count ==341 [2025-02-14 03:28:20] Production.ERROR: pbx CDR StartTime 2025-02-14 00:28:05 - End Time 2025-02-14 03:28:05 [2025-02-14 03:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470989', 'tblTempUsageDetail_20' ) start [2025-02-14 03:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470989', 'tblTempUsageDetail_20' ) end [2025-02-14 03:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470989', 'tblTempVendorCDR_20' ) start [2025-02-14 03:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470989', 'tblTempVendorCDR_20' ) end [2025-02-14 03:28:20] Production.INFO: ProcessCDR(1,14470989,1,1,2) [2025-02-14 03:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470989', 'tblTempUsageDetail_20' ) start [2025-02-14 03:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470989', 'tblTempUsageDetail_20' ) end [2025-02-14 03:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:28:23] Production.INFO: ==7654== Releasing lock... [2025-02-14 03:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:28:23] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:29:06 [end_date_ymd] => 2025-02-14 03:29:06 [RateCDR] => 1 ) [2025-02-14 03:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:29:06' and `end` < '2025-02-14 03:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:29:19] Production.INFO: count ==341 [2025-02-14 03:29:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:29:06 - End Time 2025-02-14 03:29:06 [2025-02-14 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470994', 'tblTempUsageDetail_20' ) start [2025-02-14 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14470994', 'tblTempUsageDetail_20' ) end [2025-02-14 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470994', 'tblTempVendorCDR_20' ) start [2025-02-14 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14470994', 'tblTempVendorCDR_20' ) end [2025-02-14 03:29:19] Production.INFO: ProcessCDR(1,14470994,1,1,2) [2025-02-14 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14470994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14470994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14470994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14470994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470994', 'tblTempUsageDetail_20' ) start [2025-02-14 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14470994', 'tblTempUsageDetail_20' ) end [2025-02-14 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:29:22] Production.INFO: ==7723== Releasing lock... [2025-02-14 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:29:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:30:05 [end_date_ymd] => 2025-02-14 03:30:05 [RateCDR] => 1 ) [2025-02-14 03:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:30:05' and `end` < '2025-02-14 03:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:30:18] Production.INFO: count ==337 [2025-02-14 03:30:18] Production.ERROR: pbx CDR StartTime 2025-02-14 00:30:05 - End Time 2025-02-14 03:30:05 [2025-02-14 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471000', 'tblTempUsageDetail_20' ) start [2025-02-14 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471000', 'tblTempUsageDetail_20' ) end [2025-02-14 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471000', 'tblTempVendorCDR_20' ) start [2025-02-14 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471000', 'tblTempVendorCDR_20' ) end [2025-02-14 03:30:18] Production.INFO: ProcessCDR(1,14471000,1,1,2) [2025-02-14 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471000', 'tblTempUsageDetail_20' ) start [2025-02-14 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471000', 'tblTempUsageDetail_20' ) end [2025-02-14 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:30:22] Production.INFO: ==7794== Releasing lock... [2025-02-14 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:30:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:31:05 [end_date_ymd] => 2025-02-14 03:31:05 [RateCDR] => 1 ) [2025-02-14 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:31:05' and `end` < '2025-02-14 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:31:19] Production.INFO: count ==324 [2025-02-14 03:31:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:31:05 - End Time 2025-02-14 03:31:05 [2025-02-14 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471005', 'tblTempUsageDetail_20' ) start [2025-02-14 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471005', 'tblTempUsageDetail_20' ) end [2025-02-14 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471005', 'tblTempVendorCDR_20' ) start [2025-02-14 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471005', 'tblTempVendorCDR_20' ) end [2025-02-14 03:31:19] Production.INFO: ProcessCDR(1,14471005,1,1,2) [2025-02-14 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471005', 'tblTempUsageDetail_20' ) start [2025-02-14 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471005', 'tblTempUsageDetail_20' ) end [2025-02-14 03:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:31:23] Production.INFO: ==7869== Releasing lock... [2025-02-14 03:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:31:23] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:32:05 [end_date_ymd] => 2025-02-14 03:32:05 [RateCDR] => 1 ) [2025-02-14 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:32:05' and `end` < '2025-02-14 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:32:18] Production.INFO: count ==323 [2025-02-14 03:32:18] Production.ERROR: pbx CDR StartTime 2025-02-14 00:32:05 - End Time 2025-02-14 03:32:05 [2025-02-14 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471010', 'tblTempUsageDetail_20' ) start [2025-02-14 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471010', 'tblTempUsageDetail_20' ) end [2025-02-14 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471010', 'tblTempVendorCDR_20' ) start [2025-02-14 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471010', 'tblTempVendorCDR_20' ) end [2025-02-14 03:32:18] Production.INFO: ProcessCDR(1,14471010,1,1,2) [2025-02-14 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471010', 'tblTempUsageDetail_20' ) start [2025-02-14 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471010', 'tblTempUsageDetail_20' ) end [2025-02-14 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:32:22] Production.INFO: ==7939== Releasing lock... [2025-02-14 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:32:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:33:06 [end_date_ymd] => 2025-02-14 03:33:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:33:06' and `end` < '2025-02-14 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-02-14 03:33:19] Production.INFO: count ==322 [2025-02-14 03:33:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:33:06 - End Time 2025-02-14 03:33:06 [2025-02-14 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471015', 'tblTempUsageDetail_20' ) start [2025-02-14 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471015', 'tblTempUsageDetail_20' ) end [2025-02-14 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471015', 'tblTempVendorCDR_20' ) start [2025-02-14 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471015', 'tblTempVendorCDR_20' ) end [2025-02-14 03:33:19] Production.INFO: ProcessCDR(1,14471015,1,1,2) [2025-02-14 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471015', 'tblTempUsageDetail_20' ) start [2025-02-14 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471015', 'tblTempUsageDetail_20' ) end [2025-02-14 03:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:33:23] Production.INFO: ==8014== Releasing lock... [2025-02-14 03:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:33:23] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:34:05 [end_date_ymd] => 2025-02-14 03:34:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:34:05' and `end` < '2025-02-14 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-02-14 03:34:18] Production.INFO: count ==322 [2025-02-14 03:34:18] Production.ERROR: pbx CDR StartTime 2025-02-14 00:34:05 - End Time 2025-02-14 03:34:05 [2025-02-14 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471020', 'tblTempUsageDetail_20' ) start [2025-02-14 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471020', 'tblTempUsageDetail_20' ) end [2025-02-14 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471020', 'tblTempVendorCDR_20' ) start [2025-02-14 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471020', 'tblTempVendorCDR_20' ) end [2025-02-14 03:34:18] Production.INFO: ProcessCDR(1,14471020,1,1,2) [2025-02-14 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471020', 'tblTempUsageDetail_20' ) start [2025-02-14 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471020', 'tblTempUsageDetail_20' ) end [2025-02-14 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:34:22] Production.INFO: ==8088== Releasing lock... [2025-02-14 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:34:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:35:06 [end_date_ymd] => 2025-02-14 03:35:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:35:06' and `end` < '2025-02-14 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-02-14 03:35:19] Production.INFO: count ==322 [2025-02-14 03:35:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:35:06 - End Time 2025-02-14 03:35:06 [2025-02-14 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471025', 'tblTempUsageDetail_20' ) start [2025-02-14 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471025', 'tblTempUsageDetail_20' ) end [2025-02-14 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471025', 'tblTempVendorCDR_20' ) start [2025-02-14 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471025', 'tblTempVendorCDR_20' ) end [2025-02-14 03:35:19] Production.INFO: ProcessCDR(1,14471025,1,1,2) [2025-02-14 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471025', 'tblTempUsageDetail_20' ) start [2025-02-14 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471025', 'tblTempUsageDetail_20' ) end [2025-02-14 03:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:35:23] Production.INFO: ==8162== Releasing lock... [2025-02-14 03:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:35:23] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:36:06 [end_date_ymd] => 2025-02-14 03:36:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:36:06' and `end` < '2025-02-14 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-02-14 03:36:19] Production.INFO: count ==322 [2025-02-14 03:36:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:36:06 - End Time 2025-02-14 03:36:06 [2025-02-14 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471030', 'tblTempUsageDetail_20' ) start [2025-02-14 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471030', 'tblTempUsageDetail_20' ) end [2025-02-14 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471030', 'tblTempVendorCDR_20' ) start [2025-02-14 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471030', 'tblTempVendorCDR_20' ) end [2025-02-14 03:36:19] Production.INFO: ProcessCDR(1,14471030,1,1,2) [2025-02-14 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471030', 'tblTempUsageDetail_20' ) start [2025-02-14 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471030', 'tblTempUsageDetail_20' ) end [2025-02-14 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:36:23] Production.INFO: ==8239== Releasing lock... [2025-02-14 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:36:23] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:37:06 [end_date_ymd] => 2025-02-14 03:37:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:37:06' and `end` < '2025-02-14 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-02-14 03:37:19] Production.INFO: count ==322 [2025-02-14 03:37:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:37:06 - End Time 2025-02-14 03:37:06 [2025-02-14 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471035', 'tblTempUsageDetail_20' ) start [2025-02-14 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471035', 'tblTempUsageDetail_20' ) end [2025-02-14 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471035', 'tblTempVendorCDR_20' ) start [2025-02-14 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471035', 'tblTempVendorCDR_20' ) end [2025-02-14 03:37:19] Production.INFO: ProcessCDR(1,14471035,1,1,2) [2025-02-14 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471035', 'tblTempUsageDetail_20' ) start [2025-02-14 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471035', 'tblTempUsageDetail_20' ) end [2025-02-14 03:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:37:23] Production.INFO: ==8313== Releasing lock... [2025-02-14 03:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:37:23] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:38:06 [end_date_ymd] => 2025-02-14 03:38:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:38:06' and `end` < '2025-02-14 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-02-14 03:38:19] Production.INFO: count ==322 [2025-02-14 03:38:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:38:06 - End Time 2025-02-14 03:38:06 [2025-02-14 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471040', 'tblTempUsageDetail_20' ) start [2025-02-14 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471040', 'tblTempUsageDetail_20' ) end [2025-02-14 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471040', 'tblTempVendorCDR_20' ) start [2025-02-14 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471040', 'tblTempVendorCDR_20' ) end [2025-02-14 03:38:19] Production.INFO: ProcessCDR(1,14471040,1,1,2) [2025-02-14 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471040', 'tblTempUsageDetail_20' ) start [2025-02-14 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471040', 'tblTempUsageDetail_20' ) end [2025-02-14 03:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:38:23] Production.INFO: ==8389== Releasing lock... [2025-02-14 03:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:38:23] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:39:06 [end_date_ymd] => 2025-02-14 03:39:06 [RateCDR] => 1 ) [2025-02-14 03:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:39:06' and `end` < '2025-02-14 03:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:39:19] Production.INFO: count ==330 [2025-02-14 03:39:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:39:06 - End Time 2025-02-14 03:39:06 [2025-02-14 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471045', 'tblTempUsageDetail_20' ) start [2025-02-14 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471045', 'tblTempUsageDetail_20' ) end [2025-02-14 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471045', 'tblTempVendorCDR_20' ) start [2025-02-14 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471045', 'tblTempVendorCDR_20' ) end [2025-02-14 03:39:19] Production.INFO: ProcessCDR(1,14471045,1,1,2) [2025-02-14 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471045', 'tblTempUsageDetail_20' ) start [2025-02-14 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471045', 'tblTempUsageDetail_20' ) end [2025-02-14 03:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:39:23] Production.INFO: ==8462== Releasing lock... [2025-02-14 03:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:39:23] Production.INFO: 30 MB #Memory Used# [2025-02-14 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:40:06 [end_date_ymd] => 2025-02-14 03:40:06 [RateCDR] => 1 ) [2025-02-14 03: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-02-14 00:40:06' and `end` < '2025-02-14 03: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-02-14 03:40:19] Production.INFO: count ==370 [2025-02-14 03:40:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:40:06 - End Time 2025-02-14 03:40:06 [2025-02-14 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471050', 'tblTempUsageDetail_20' ) start [2025-02-14 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471050', 'tblTempUsageDetail_20' ) end [2025-02-14 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471050', 'tblTempVendorCDR_20' ) start [2025-02-14 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471050', 'tblTempVendorCDR_20' ) end [2025-02-14 03:40:19] Production.INFO: ProcessCDR(1,14471050,1,1,2) [2025-02-14 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471050', 'tblTempUsageDetail_20' ) start [2025-02-14 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471050', 'tblTempUsageDetail_20' ) end [2025-02-14 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:40:23] Production.INFO: ==8535== Releasing lock... [2025-02-14 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:40:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:41:06 [end_date_ymd] => 2025-02-14 03:41:06 [RateCDR] => 1 ) [2025-02-14 03: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-02-14 00:41:06' and `end` < '2025-02-14 03: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-02-14 03:41:19] Production.INFO: count ==452 [2025-02-14 03:41:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:41:06 - End Time 2025-02-14 03:41:06 [2025-02-14 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471056', 'tblTempUsageDetail_20' ) start [2025-02-14 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471056', 'tblTempUsageDetail_20' ) end [2025-02-14 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471056', 'tblTempVendorCDR_20' ) start [2025-02-14 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471056', 'tblTempVendorCDR_20' ) end [2025-02-14 03:41:19] Production.INFO: ProcessCDR(1,14471056,1,1,2) [2025-02-14 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471056', 'tblTempUsageDetail_20' ) start [2025-02-14 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471056', 'tblTempUsageDetail_20' ) end [2025-02-14 03:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:41:23] Production.INFO: ==8652== Releasing lock... [2025-02-14 03:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:41:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:42:05 [end_date_ymd] => 2025-02-14 03:42:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:42:05' and `end` < '2025-02-14 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:42:19] Production.INFO: count ==452 [2025-02-14 03:42:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:42:05 - End Time 2025-02-14 03:42:05 [2025-02-14 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471061', 'tblTempUsageDetail_20' ) start [2025-02-14 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471061', 'tblTempUsageDetail_20' ) end [2025-02-14 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471061', 'tblTempVendorCDR_20' ) start [2025-02-14 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471061', 'tblTempVendorCDR_20' ) end [2025-02-14 03:42:19] Production.INFO: ProcessCDR(1,14471061,1,1,2) [2025-02-14 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471061', 'tblTempUsageDetail_20' ) start [2025-02-14 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471061', 'tblTempUsageDetail_20' ) end [2025-02-14 03:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:42:23] Production.INFO: ==8723== Releasing lock... [2025-02-14 03:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:42:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:43:06 [end_date_ymd] => 2025-02-14 03:43:06 [RateCDR] => 1 ) [2025-02-14 03: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-02-14 00:43:06' and `end` < '2025-02-14 03: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-02-14 03:43:19] Production.INFO: count ==451 [2025-02-14 03:43:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:43:06 - End Time 2025-02-14 03:43:06 [2025-02-14 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471066', 'tblTempUsageDetail_20' ) start [2025-02-14 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471066', 'tblTempUsageDetail_20' ) end [2025-02-14 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471066', 'tblTempVendorCDR_20' ) start [2025-02-14 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471066', 'tblTempVendorCDR_20' ) end [2025-02-14 03:43:19] Production.INFO: ProcessCDR(1,14471066,1,1,2) [2025-02-14 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471066', 'tblTempUsageDetail_20' ) start [2025-02-14 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471066', 'tblTempUsageDetail_20' ) end [2025-02-14 03:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:43:23] Production.INFO: ==8795== Releasing lock... [2025-02-14 03:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:43:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:44:05 [end_date_ymd] => 2025-02-14 03:44:05 [RateCDR] => 1 ) [2025-02-14 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:44:05' and `end` < '2025-02-14 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:44:19] Production.INFO: count ==448 [2025-02-14 03:44:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:44:05 - End Time 2025-02-14 03:44:05 [2025-02-14 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471071', 'tblTempUsageDetail_20' ) start [2025-02-14 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471071', 'tblTempUsageDetail_20' ) end [2025-02-14 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471071', 'tblTempVendorCDR_20' ) start [2025-02-14 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471071', 'tblTempVendorCDR_20' ) end [2025-02-14 03:44:19] Production.INFO: ProcessCDR(1,14471071,1,1,2) [2025-02-14 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471071', 'tblTempUsageDetail_20' ) start [2025-02-14 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471071', 'tblTempUsageDetail_20' ) end [2025-02-14 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:44:22] Production.INFO: ==8870== Releasing lock... [2025-02-14 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:44:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-14 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:45:06 [end_date_ymd] => 2025-02-14 03:45:06 [RateCDR] => 1 ) [2025-02-14 03: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-02-14 00:45:06' and `end` < '2025-02-14 03: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-02-14 03:45:19] Production.INFO: count ==447 [2025-02-14 03:45:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:45:06 - End Time 2025-02-14 03:45:06 [2025-02-14 03:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471076', 'tblTempUsageDetail_20' ) start [2025-02-14 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471076', 'tblTempUsageDetail_20' ) end [2025-02-14 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471076', 'tblTempVendorCDR_20' ) start [2025-02-14 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471076', 'tblTempVendorCDR_20' ) end [2025-02-14 03:45:19] Production.INFO: ProcessCDR(1,14471076,1,1,2) [2025-02-14 03:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471076', 'tblTempUsageDetail_20' ) start [2025-02-14 03:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471076', 'tblTempUsageDetail_20' ) end [2025-02-14 03:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:45:23] Production.INFO: ==8944== Releasing lock... [2025-02-14 03:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:45:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-14 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:46:05 [end_date_ymd] => 2025-02-14 03:46:05 [RateCDR] => 1 ) [2025-02-14 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:46:05' and `end` < '2025-02-14 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:46:19] Production.INFO: count ==445 [2025-02-14 03:46:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:46:05 - End Time 2025-02-14 03:46:05 [2025-02-14 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471081', 'tblTempUsageDetail_20' ) start [2025-02-14 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471081', 'tblTempUsageDetail_20' ) end [2025-02-14 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471081', 'tblTempVendorCDR_20' ) start [2025-02-14 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471081', 'tblTempVendorCDR_20' ) end [2025-02-14 03:46:19] Production.INFO: ProcessCDR(1,14471081,1,1,2) [2025-02-14 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471081', 'tblTempUsageDetail_20' ) start [2025-02-14 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471081', 'tblTempUsageDetail_20' ) end [2025-02-14 03:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:46:23] Production.INFO: ==9013== Releasing lock... [2025-02-14 03:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:46:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-14 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:47:06 [end_date_ymd] => 2025-02-14 03:47:06 [RateCDR] => 1 ) [2025-02-14 03:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:47:06' and `end` < '2025-02-14 03:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:47:19] Production.INFO: count ==444 [2025-02-14 03:47:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:47:06 - End Time 2025-02-14 03:47:06 [2025-02-14 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471083', 'tblTempUsageDetail_20' ) start [2025-02-14 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471083', 'tblTempUsageDetail_20' ) end [2025-02-14 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471083', 'tblTempVendorCDR_20' ) start [2025-02-14 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471083', 'tblTempVendorCDR_20' ) end [2025-02-14 03:47:19] Production.INFO: ProcessCDR(1,14471083,1,1,2) [2025-02-14 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471083', 'tblTempUsageDetail_20' ) start [2025-02-14 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471083', 'tblTempUsageDetail_20' ) end [2025-02-14 03:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:47:23] Production.INFO: ==9086== Releasing lock... [2025-02-14 03:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:47:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-14 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:48:05 [end_date_ymd] => 2025-02-14 03:48:05 [RateCDR] => 1 ) [2025-02-14 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:48:05' and `end` < '2025-02-14 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:48:18] Production.INFO: count ==442 [2025-02-14 03:48:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:48:05 - End Time 2025-02-14 03:48:05 [2025-02-14 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471091', 'tblTempUsageDetail_20' ) start [2025-02-14 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471091', 'tblTempUsageDetail_20' ) end [2025-02-14 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471091', 'tblTempVendorCDR_20' ) start [2025-02-14 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471091', 'tblTempVendorCDR_20' ) end [2025-02-14 03:48:19] Production.INFO: ProcessCDR(1,14471091,1,1,2) [2025-02-14 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471091', 'tblTempUsageDetail_20' ) start [2025-02-14 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471091', 'tblTempUsageDetail_20' ) end [2025-02-14 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:48:22] Production.INFO: ==9159== Releasing lock... [2025-02-14 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:48:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-14 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:49:05 [end_date_ymd] => 2025-02-14 03:49:05 [RateCDR] => 1 ) [2025-02-14 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:49:05' and `end` < '2025-02-14 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:49:19] Production.INFO: count ==442 [2025-02-14 03:49:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:49:05 - End Time 2025-02-14 03:49:05 [2025-02-14 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471096', 'tblTempUsageDetail_20' ) start [2025-02-14 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471096', 'tblTempUsageDetail_20' ) end [2025-02-14 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471096', 'tblTempVendorCDR_20' ) start [2025-02-14 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471096', 'tblTempVendorCDR_20' ) end [2025-02-14 03:49:19] Production.INFO: ProcessCDR(1,14471096,1,1,2) [2025-02-14 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471096', 'tblTempUsageDetail_20' ) start [2025-02-14 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471096', 'tblTempUsageDetail_20' ) end [2025-02-14 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:49:22] Production.INFO: ==9233== Releasing lock... [2025-02-14 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:49:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-14 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:50:07 [end_date_ymd] => 2025-02-14 03:50:07 [RateCDR] => 1 ) [2025-02-14 03:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:50:07' and `end` < '2025-02-14 03:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:50:20] Production.INFO: count ==433 [2025-02-14 03:50:20] Production.ERROR: pbx CDR StartTime 2025-02-14 00:50:07 - End Time 2025-02-14 03:50:07 [2025-02-14 03:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471102', 'tblTempUsageDetail_20' ) start [2025-02-14 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471102', 'tblTempUsageDetail_20' ) end [2025-02-14 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471102', 'tblTempVendorCDR_20' ) start [2025-02-14 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471102', 'tblTempVendorCDR_20' ) end [2025-02-14 03:50:20] Production.INFO: ProcessCDR(1,14471102,1,1,2) [2025-02-14 03:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471102', 'tblTempUsageDetail_20' ) start [2025-02-14 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471102', 'tblTempUsageDetail_20' ) end [2025-02-14 03:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:50:24] Production.INFO: ==9309== Releasing lock... [2025-02-14 03:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:50:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-14 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:51:06 [end_date_ymd] => 2025-02-14 03:51:06 [RateCDR] => 1 ) [2025-02-14 03: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-02-14 00:51:06' and `end` < '2025-02-14 03: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-02-14 03:51:19] Production.INFO: count ==419 [2025-02-14 03:51:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:51:06 - End Time 2025-02-14 03:51:06 [2025-02-14 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471107', 'tblTempUsageDetail_20' ) start [2025-02-14 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471107', 'tblTempUsageDetail_20' ) end [2025-02-14 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471107', 'tblTempVendorCDR_20' ) start [2025-02-14 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471107', 'tblTempVendorCDR_20' ) end [2025-02-14 03:51:19] Production.INFO: ProcessCDR(1,14471107,1,1,2) [2025-02-14 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471107', 'tblTempUsageDetail_20' ) start [2025-02-14 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471107', 'tblTempUsageDetail_20' ) end [2025-02-14 03:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:51:23] Production.INFO: ==9383== Releasing lock... [2025-02-14 03:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:51:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-14 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:52:06 [end_date_ymd] => 2025-02-14 03:52:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:52:06' and `end` < '2025-02-14 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-02-14 03:52:20] Production.INFO: count ==419 [2025-02-14 03:52:20] Production.ERROR: pbx CDR StartTime 2025-02-14 00:52:06 - End Time 2025-02-14 03:52:06 [2025-02-14 03:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471112', 'tblTempUsageDetail_20' ) start [2025-02-14 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471112', 'tblTempUsageDetail_20' ) end [2025-02-14 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471112', 'tblTempVendorCDR_20' ) start [2025-02-14 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471112', 'tblTempVendorCDR_20' ) end [2025-02-14 03:52:20] Production.INFO: ProcessCDR(1,14471112,1,1,2) [2025-02-14 03:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471112', 'tblTempUsageDetail_20' ) start [2025-02-14 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471112', 'tblTempUsageDetail_20' ) end [2025-02-14 03:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:52:23] Production.INFO: ==9456== Releasing lock... [2025-02-14 03:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:52:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-14 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:53:05 [end_date_ymd] => 2025-02-14 03:53:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:53:05' and `end` < '2025-02-14 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-02-14 03:53:19] Production.INFO: count ==417 [2025-02-14 03:53:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:53:05 - End Time 2025-02-14 03:53:05 [2025-02-14 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471117', 'tblTempUsageDetail_20' ) start [2025-02-14 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471117', 'tblTempUsageDetail_20' ) end [2025-02-14 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471117', 'tblTempVendorCDR_20' ) start [2025-02-14 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471117', 'tblTempVendorCDR_20' ) end [2025-02-14 03:53:19] Production.INFO: ProcessCDR(1,14471117,1,1,2) [2025-02-14 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471117', 'tblTempUsageDetail_20' ) start [2025-02-14 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471117', 'tblTempUsageDetail_20' ) end [2025-02-14 03:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:53:23] Production.INFO: ==9530== Releasing lock... [2025-02-14 03:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:53:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-14 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:54:05 [end_date_ymd] => 2025-02-14 03:54:05 [RateCDR] => 1 ) [2025-02-14 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:54:05' and `end` < '2025-02-14 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:54:18] Production.INFO: count ==414 [2025-02-14 03:54:18] Production.ERROR: pbx CDR StartTime 2025-02-14 00:54:05 - End Time 2025-02-14 03:54:05 [2025-02-14 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471122', 'tblTempUsageDetail_20' ) start [2025-02-14 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471122', 'tblTempUsageDetail_20' ) end [2025-02-14 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471122', 'tblTempVendorCDR_20' ) start [2025-02-14 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471122', 'tblTempVendorCDR_20' ) end [2025-02-14 03:54:18] Production.INFO: ProcessCDR(1,14471122,1,1,2) [2025-02-14 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471122', 'tblTempUsageDetail_20' ) start [2025-02-14 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471122', 'tblTempUsageDetail_20' ) end [2025-02-14 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:54:22] Production.INFO: ==9603== Releasing lock... [2025-02-14 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:54:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-14 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:55:06 [end_date_ymd] => 2025-02-14 03:55:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:55:06' and `end` < '2025-02-14 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-02-14 03:55:19] Production.INFO: count ==414 [2025-02-14 03:55:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:55:06 - End Time 2025-02-14 03:55:06 [2025-02-14 03:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471127', 'tblTempUsageDetail_20' ) start [2025-02-14 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471127', 'tblTempUsageDetail_20' ) end [2025-02-14 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471127', 'tblTempVendorCDR_20' ) start [2025-02-14 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471127', 'tblTempVendorCDR_20' ) end [2025-02-14 03:55:19] Production.INFO: ProcessCDR(1,14471127,1,1,2) [2025-02-14 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471127', 'tblTempUsageDetail_20' ) start [2025-02-14 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471127', 'tblTempUsageDetail_20' ) end [2025-02-14 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:55:22] Production.INFO: ==9673== Releasing lock... [2025-02-14 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:55:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-14 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:56:05 [end_date_ymd] => 2025-02-14 03:56:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:56:05' and `end` < '2025-02-14 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-02-14 03:56:19] Production.INFO: count ==413 [2025-02-14 03:56:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:56:05 - End Time 2025-02-14 03:56:05 [2025-02-14 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471132', 'tblTempUsageDetail_20' ) start [2025-02-14 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471132', 'tblTempUsageDetail_20' ) end [2025-02-14 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471132', 'tblTempVendorCDR_20' ) start [2025-02-14 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471132', 'tblTempVendorCDR_20' ) end [2025-02-14 03:56:19] Production.INFO: ProcessCDR(1,14471132,1,1,2) [2025-02-14 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471132', 'tblTempUsageDetail_20' ) start [2025-02-14 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471132', 'tblTempUsageDetail_20' ) end [2025-02-14 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:56:22] Production.INFO: ==9785== Releasing lock... [2025-02-14 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:56:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-14 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:57:06 [end_date_ymd] => 2025-02-14 03:57:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:57:06' and `end` < '2025-02-14 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-02-14 03:57:19] Production.INFO: count ==409 [2025-02-14 03:57:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:57:06 - End Time 2025-02-14 03:57:06 [2025-02-14 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471137', 'tblTempUsageDetail_20' ) start [2025-02-14 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471137', 'tblTempUsageDetail_20' ) end [2025-02-14 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471137', 'tblTempVendorCDR_20' ) start [2025-02-14 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471137', 'tblTempVendorCDR_20' ) end [2025-02-14 03:57:19] Production.INFO: ProcessCDR(1,14471137,1,1,2) [2025-02-14 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471137', 'tblTempUsageDetail_20' ) start [2025-02-14 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471137', 'tblTempUsageDetail_20' ) end [2025-02-14 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:57:22] Production.INFO: ==9859== Releasing lock... [2025-02-14 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:57:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-14 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:58:05 [end_date_ymd] => 2025-02-14 03:58:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 00:58:05' and `end` < '2025-02-14 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-02-14 03:58:18] Production.INFO: count ==409 [2025-02-14 03:58:18] Production.ERROR: pbx CDR StartTime 2025-02-14 00:58:05 - End Time 2025-02-14 03:58:05 [2025-02-14 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471142', 'tblTempUsageDetail_20' ) start [2025-02-14 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471142', 'tblTempUsageDetail_20' ) end [2025-02-14 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471142', 'tblTempVendorCDR_20' ) start [2025-02-14 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471142', 'tblTempVendorCDR_20' ) end [2025-02-14 03:58:18] Production.INFO: ProcessCDR(1,14471142,1,1,2) [2025-02-14 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471142', 'tblTempUsageDetail_20' ) start [2025-02-14 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471142', 'tblTempUsageDetail_20' ) end [2025-02-14 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:58:22] Production.INFO: ==9939== Releasing lock... [2025-02-14 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:58:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-14 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 00:59:05 [end_date_ymd] => 2025-02-14 03:59:05 [RateCDR] => 1 ) [2025-02-14 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 00:59:05' and `end` < '2025-02-14 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 03:59:19] Production.INFO: count ==409 [2025-02-14 03:59:19] Production.ERROR: pbx CDR StartTime 2025-02-14 00:59:05 - End Time 2025-02-14 03:59:05 [2025-02-14 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471147', 'tblTempUsageDetail_20' ) start [2025-02-14 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471147', 'tblTempUsageDetail_20' ) end [2025-02-14 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471147', 'tblTempVendorCDR_20' ) start [2025-02-14 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471147', 'tblTempVendorCDR_20' ) end [2025-02-14 03:59:19] Production.INFO: ProcessCDR(1,14471147,1,1,2) [2025-02-14 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471147', 'tblTempUsageDetail_20' ) start [2025-02-14 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471147', 'tblTempUsageDetail_20' ) end [2025-02-14 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 03:59:22] Production.INFO: ==10010== Releasing lock... [2025-02-14 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 03:59:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-14 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:00:06 [end_date_ymd] => 2025-02-14 04:00:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:00:06' and `end` < '2025-02-14 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-02-14 04:00:19] Production.INFO: count ==403 [2025-02-14 04:00:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:00:06 - End Time 2025-02-14 04:00:06 [2025-02-14 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471153', 'tblTempUsageDetail_20' ) start [2025-02-14 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471153', 'tblTempUsageDetail_20' ) end [2025-02-14 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471153', 'tblTempVendorCDR_20' ) start [2025-02-14 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471153', 'tblTempVendorCDR_20' ) end [2025-02-14 04:00:19] Production.INFO: ProcessCDR(1,14471153,1,1,2) [2025-02-14 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471153', 'tblTempUsageDetail_20' ) start [2025-02-14 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471153', 'tblTempUsageDetail_20' ) end [2025-02-14 04:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:00:24] Production.INFO: ==10091== Releasing lock... [2025-02-14 04:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:00:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-14 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:01:06 [end_date_ymd] => 2025-02-14 04:01:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:01:06' and `end` < '2025-02-14 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-02-14 04:01:20] Production.INFO: count ==395 [2025-02-14 04:01:20] Production.ERROR: pbx CDR StartTime 2025-02-14 01:01:06 - End Time 2025-02-14 04:01:06 [2025-02-14 04:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471159', 'tblTempUsageDetail_20' ) start [2025-02-14 04:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471159', 'tblTempUsageDetail_20' ) end [2025-02-14 04:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471159', 'tblTempVendorCDR_20' ) start [2025-02-14 04:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471159', 'tblTempVendorCDR_20' ) end [2025-02-14 04:01:20] Production.INFO: ProcessCDR(1,14471159,1,1,2) [2025-02-14 04:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471159', 'tblTempUsageDetail_20' ) start [2025-02-14 04:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471159', 'tblTempUsageDetail_20' ) end [2025-02-14 04:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:01:24] Production.INFO: ==10182== Releasing lock... [2025-02-14 04:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:01:24] Production.INFO: 31.5 MB #Memory Used# [2025-02-14 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:02:05 [end_date_ymd] => 2025-02-14 04:02:05 [RateCDR] => 1 ) [2025-02-14 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 01:02:05' and `end` < '2025-02-14 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 04:02:19] Production.INFO: count ==395 [2025-02-14 04:02:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:02:05 - End Time 2025-02-14 04:02:05 [2025-02-14 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471164', 'tblTempUsageDetail_20' ) start [2025-02-14 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471164', 'tblTempUsageDetail_20' ) end [2025-02-14 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471164', 'tblTempVendorCDR_20' ) start [2025-02-14 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471164', 'tblTempVendorCDR_20' ) end [2025-02-14 04:02:19] Production.INFO: ProcessCDR(1,14471164,1,1,2) [2025-02-14 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471164', 'tblTempUsageDetail_20' ) start [2025-02-14 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471164', 'tblTempUsageDetail_20' ) end [2025-02-14 04:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:02:23] Production.INFO: ==10254== Releasing lock... [2025-02-14 04:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:02:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-14 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:03:06 [end_date_ymd] => 2025-02-14 04:03:06 [RateCDR] => 1 ) [2025-02-14 04: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-02-14 01:03:06' and `end` < '2025-02-14 04: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-02-14 04:03:20] Production.INFO: count ==395 [2025-02-14 04:03:20] Production.ERROR: pbx CDR StartTime 2025-02-14 01:03:06 - End Time 2025-02-14 04:03:06 [2025-02-14 04:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471169', 'tblTempUsageDetail_20' ) start [2025-02-14 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471169', 'tblTempUsageDetail_20' ) end [2025-02-14 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471169', 'tblTempVendorCDR_20' ) start [2025-02-14 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471169', 'tblTempVendorCDR_20' ) end [2025-02-14 04:03:20] Production.INFO: ProcessCDR(1,14471169,1,1,2) [2025-02-14 04:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471169', 'tblTempUsageDetail_20' ) start [2025-02-14 04:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471169', 'tblTempUsageDetail_20' ) end [2025-02-14 04:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:03:23] Production.INFO: ==10329== Releasing lock... [2025-02-14 04:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:03:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-14 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:04:05 [end_date_ymd] => 2025-02-14 04:04:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:04:05' and `end` < '2025-02-14 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-02-14 04:04:18] Production.INFO: count ==392 [2025-02-14 04:04:18] Production.ERROR: pbx CDR StartTime 2025-02-14 01:04:05 - End Time 2025-02-14 04:04:05 [2025-02-14 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471174', 'tblTempUsageDetail_20' ) start [2025-02-14 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471174', 'tblTempUsageDetail_20' ) end [2025-02-14 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471174', 'tblTempVendorCDR_20' ) start [2025-02-14 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471174', 'tblTempVendorCDR_20' ) end [2025-02-14 04:04:18] Production.INFO: ProcessCDR(1,14471174,1,1,2) [2025-02-14 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471174', 'tblTempUsageDetail_20' ) start [2025-02-14 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471174', 'tblTempUsageDetail_20' ) end [2025-02-14 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:04:21] Production.INFO: ==10401== Releasing lock... [2025-02-14 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:04:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-14 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:05:06 [end_date_ymd] => 2025-02-14 04:05:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:05:06' and `end` < '2025-02-14 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-02-14 04:05:19] Production.INFO: count ==395 [2025-02-14 04:05:20] Production.ERROR: pbx CDR StartTime 2025-02-14 01:05:06 - End Time 2025-02-14 04:05:06 [2025-02-14 04:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471179', 'tblTempUsageDetail_20' ) start [2025-02-14 04:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471179', 'tblTempUsageDetail_20' ) end [2025-02-14 04:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471179', 'tblTempVendorCDR_20' ) start [2025-02-14 04:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471179', 'tblTempVendorCDR_20' ) end [2025-02-14 04:05:20] Production.INFO: ProcessCDR(1,14471179,1,1,2) [2025-02-14 04:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471179', 'tblTempUsageDetail_20' ) start [2025-02-14 04:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471179', 'tblTempUsageDetail_20' ) end [2025-02-14 04:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:05:23] Production.INFO: ==10474== Releasing lock... [2025-02-14 04:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:05:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-14 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:06:05 [end_date_ymd] => 2025-02-14 04:06:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:06:05' and `end` < '2025-02-14 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-02-14 04:06:18] Production.INFO: count ==395 [2025-02-14 04:06:18] Production.ERROR: pbx CDR StartTime 2025-02-14 01:06:05 - End Time 2025-02-14 04:06:05 [2025-02-14 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471184', 'tblTempUsageDetail_20' ) start [2025-02-14 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471184', 'tblTempUsageDetail_20' ) end [2025-02-14 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471184', 'tblTempVendorCDR_20' ) start [2025-02-14 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471184', 'tblTempVendorCDR_20' ) end [2025-02-14 04:06:18] Production.INFO: ProcessCDR(1,14471184,1,1,2) [2025-02-14 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471184', 'tblTempUsageDetail_20' ) start [2025-02-14 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471184', 'tblTempUsageDetail_20' ) end [2025-02-14 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:06:21] Production.INFO: ==10544== Releasing lock... [2025-02-14 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:06:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-14 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:07:05 [end_date_ymd] => 2025-02-14 04:07:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:07:05' and `end` < '2025-02-14 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-02-14 04:07:19] Production.INFO: count ==394 [2025-02-14 04:07:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:07:05 - End Time 2025-02-14 04:07:05 [2025-02-14 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471189', 'tblTempUsageDetail_20' ) start [2025-02-14 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471189', 'tblTempUsageDetail_20' ) end [2025-02-14 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471189', 'tblTempVendorCDR_20' ) start [2025-02-14 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471189', 'tblTempVendorCDR_20' ) end [2025-02-14 04:07:19] Production.INFO: ProcessCDR(1,14471189,1,1,2) [2025-02-14 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471189', 'tblTempUsageDetail_20' ) start [2025-02-14 04:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471189', 'tblTempUsageDetail_20' ) end [2025-02-14 04:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:07:23] Production.INFO: ==10616== Releasing lock... [2025-02-14 04:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:07:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:08:05 [end_date_ymd] => 2025-02-14 04:08:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:08:05' and `end` < '2025-02-14 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-02-14 04:08:18] Production.INFO: count ==394 [2025-02-14 04:08:18] Production.ERROR: pbx CDR StartTime 2025-02-14 01:08:05 - End Time 2025-02-14 04:08:05 [2025-02-14 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471194', 'tblTempUsageDetail_20' ) start [2025-02-14 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471194', 'tblTempUsageDetail_20' ) end [2025-02-14 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471194', 'tblTempVendorCDR_20' ) start [2025-02-14 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471194', 'tblTempVendorCDR_20' ) end [2025-02-14 04:08:18] Production.INFO: ProcessCDR(1,14471194,1,1,2) [2025-02-14 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471194', 'tblTempUsageDetail_20' ) start [2025-02-14 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471194', 'tblTempUsageDetail_20' ) end [2025-02-14 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:08:21] Production.INFO: ==10687== Releasing lock... [2025-02-14 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:08:21] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:09:06 [end_date_ymd] => 2025-02-14 04:09:06 [RateCDR] => 1 ) [2025-02-14 04: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-02-14 01:09:06' and `end` < '2025-02-14 04: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-02-14 04:09:19] Production.INFO: count ==394 [2025-02-14 04:09:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:09:06 - End Time 2025-02-14 04:09:06 [2025-02-14 04:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471199', 'tblTempUsageDetail_20' ) start [2025-02-14 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471199', 'tblTempUsageDetail_20' ) end [2025-02-14 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471199', 'tblTempVendorCDR_20' ) start [2025-02-14 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471199', 'tblTempVendorCDR_20' ) end [2025-02-14 04:09:19] Production.INFO: ProcessCDR(1,14471199,1,1,2) [2025-02-14 04:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471199', 'tblTempUsageDetail_20' ) start [2025-02-14 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471199', 'tblTempUsageDetail_20' ) end [2025-02-14 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:09:22] Production.INFO: ==10762== Releasing lock... [2025-02-14 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:09:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:10:06 [end_date_ymd] => 2025-02-14 04:10:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:10:06' and `end` < '2025-02-14 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-02-14 04:10:19] Production.INFO: count ==394 [2025-02-14 04:10:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:10:06 - End Time 2025-02-14 04:10:06 [2025-02-14 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471204', 'tblTempUsageDetail_20' ) start [2025-02-14 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471204', 'tblTempUsageDetail_20' ) end [2025-02-14 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471204', 'tblTempVendorCDR_20' ) start [2025-02-14 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471204', 'tblTempVendorCDR_20' ) end [2025-02-14 04:10:19] Production.INFO: ProcessCDR(1,14471204,1,1,2) [2025-02-14 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471204', 'tblTempUsageDetail_20' ) start [2025-02-14 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471204', 'tblTempUsageDetail_20' ) end [2025-02-14 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:10:22] Production.INFO: ==10835== Releasing lock... [2025-02-14 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:10:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:11:05 [end_date_ymd] => 2025-02-14 04:11:05 [RateCDR] => 1 ) [2025-02-14 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 01:11:05' and `end` < '2025-02-14 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 04:11:19] Production.INFO: count ==394 [2025-02-14 04:11:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:11:05 - End Time 2025-02-14 04:11:05 [2025-02-14 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471210', 'tblTempUsageDetail_20' ) start [2025-02-14 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471210', 'tblTempUsageDetail_20' ) end [2025-02-14 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471210', 'tblTempVendorCDR_20' ) start [2025-02-14 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471210', 'tblTempVendorCDR_20' ) end [2025-02-14 04:11:19] Production.INFO: ProcessCDR(1,14471210,1,1,2) [2025-02-14 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471210', 'tblTempUsageDetail_20' ) start [2025-02-14 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471210', 'tblTempUsageDetail_20' ) end [2025-02-14 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:11:22] Production.INFO: ==10948== Releasing lock... [2025-02-14 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:11:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:12:05 [end_date_ymd] => 2025-02-14 04:12:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:12:05' and `end` < '2025-02-14 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-02-14 04:12:18] Production.INFO: count ==390 [2025-02-14 04:12:18] Production.ERROR: pbx CDR StartTime 2025-02-14 01:12:05 - End Time 2025-02-14 04:12:05 [2025-02-14 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471215', 'tblTempUsageDetail_20' ) start [2025-02-14 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471215', 'tblTempUsageDetail_20' ) end [2025-02-14 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471215', 'tblTempVendorCDR_20' ) start [2025-02-14 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471215', 'tblTempVendorCDR_20' ) end [2025-02-14 04:12:18] Production.INFO: ProcessCDR(1,14471215,1,1,2) [2025-02-14 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471215', 'tblTempUsageDetail_20' ) start [2025-02-14 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471215', 'tblTempUsageDetail_20' ) end [2025-02-14 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:12:21] Production.INFO: ==11018== Releasing lock... [2025-02-14 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:12:21] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:13:05 [end_date_ymd] => 2025-02-14 04:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:13:05' and `end` < '2025-02-14 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-02-14 04:13:20] Production.INFO: count ==390 [2025-02-14 04:13:20] Production.ERROR: pbx CDR StartTime 2025-02-14 01:13:05 - End Time 2025-02-14 04:13:05 [2025-02-14 04:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471220', 'tblTempUsageDetail_20' ) start [2025-02-14 04:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471220', 'tblTempUsageDetail_20' ) end [2025-02-14 04:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471220', 'tblTempVendorCDR_20' ) start [2025-02-14 04:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471220', 'tblTempVendorCDR_20' ) end [2025-02-14 04:13:20] Production.INFO: ProcessCDR(1,14471220,1,1,2) [2025-02-14 04:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471220', 'tblTempUsageDetail_20' ) start [2025-02-14 04:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471220', 'tblTempUsageDetail_20' ) end [2025-02-14 04:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:13:23] Production.INFO: ==11090== Releasing lock... [2025-02-14 04:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:13:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:14:05 [end_date_ymd] => 2025-02-14 04:14:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:14:05' and `end` < '2025-02-14 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-02-14 04:14:20] Production.INFO: count ==390 [2025-02-14 04:14:20] Production.ERROR: pbx CDR StartTime 2025-02-14 01:14:05 - End Time 2025-02-14 04:14:05 [2025-02-14 04:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471225', 'tblTempUsageDetail_20' ) start [2025-02-14 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471225', 'tblTempUsageDetail_20' ) end [2025-02-14 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471225', 'tblTempVendorCDR_20' ) start [2025-02-14 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471225', 'tblTempVendorCDR_20' ) end [2025-02-14 04:14:20] Production.INFO: ProcessCDR(1,14471225,1,1,2) [2025-02-14 04:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471225', 'tblTempUsageDetail_20' ) start [2025-02-14 04:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471225', 'tblTempUsageDetail_20' ) end [2025-02-14 04:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:14:23] Production.INFO: ==11161== Releasing lock... [2025-02-14 04:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:14:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:15:05 [end_date_ymd] => 2025-02-14 04:15:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:15:05' and `end` < '2025-02-14 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-02-14 04:15:18] Production.INFO: count ==389 [2025-02-14 04:15:18] Production.ERROR: pbx CDR StartTime 2025-02-14 01:15:05 - End Time 2025-02-14 04:15:05 [2025-02-14 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471230', 'tblTempUsageDetail_20' ) start [2025-02-14 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471230', 'tblTempUsageDetail_20' ) end [2025-02-14 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471230', 'tblTempVendorCDR_20' ) start [2025-02-14 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471230', 'tblTempVendorCDR_20' ) end [2025-02-14 04:15:18] Production.INFO: ProcessCDR(1,14471230,1,1,2) [2025-02-14 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471230', 'tblTempUsageDetail_20' ) start [2025-02-14 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471230', 'tblTempUsageDetail_20' ) end [2025-02-14 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:15:22] Production.INFO: ==11232== Releasing lock... [2025-02-14 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:15:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:16:05 [end_date_ymd] => 2025-02-14 04:16:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:16:05' and `end` < '2025-02-14 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-02-14 04:16:19] Production.INFO: count ==388 [2025-02-14 04:16:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:16:05 - End Time 2025-02-14 04:16:05 [2025-02-14 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471235', 'tblTempUsageDetail_20' ) start [2025-02-14 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471235', 'tblTempUsageDetail_20' ) end [2025-02-14 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471235', 'tblTempVendorCDR_20' ) start [2025-02-14 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471235', 'tblTempVendorCDR_20' ) end [2025-02-14 04:16:19] Production.INFO: ProcessCDR(1,14471235,1,1,2) [2025-02-14 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471235', 'tblTempUsageDetail_20' ) start [2025-02-14 04:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471235', 'tblTempUsageDetail_20' ) end [2025-02-14 04:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:16:23] Production.INFO: ==11303== Releasing lock... [2025-02-14 04:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:16:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:17:05 [end_date_ymd] => 2025-02-14 04:17:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:17:05' and `end` < '2025-02-14 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-02-14 04:17:18] Production.INFO: count ==388 [2025-02-14 04:17:18] Production.ERROR: pbx CDR StartTime 2025-02-14 01:17:05 - End Time 2025-02-14 04:17:05 [2025-02-14 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471240', 'tblTempUsageDetail_20' ) start [2025-02-14 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471240', 'tblTempUsageDetail_20' ) end [2025-02-14 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471240', 'tblTempVendorCDR_20' ) start [2025-02-14 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471240', 'tblTempVendorCDR_20' ) end [2025-02-14 04:17:18] Production.INFO: ProcessCDR(1,14471240,1,1,2) [2025-02-14 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471240', 'tblTempUsageDetail_20' ) start [2025-02-14 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471240', 'tblTempUsageDetail_20' ) end [2025-02-14 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:17:22] Production.INFO: ==11381== Releasing lock... [2025-02-14 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:17:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:18:05 [end_date_ymd] => 2025-02-14 04:18:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:18:05' and `end` < '2025-02-14 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-02-14 04:18:19] Production.INFO: count ==388 [2025-02-14 04:18:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:18:05 - End Time 2025-02-14 04:18:05 [2025-02-14 04:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471245', 'tblTempUsageDetail_20' ) start [2025-02-14 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471245', 'tblTempUsageDetail_20' ) end [2025-02-14 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471245', 'tblTempVendorCDR_20' ) start [2025-02-14 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471245', 'tblTempVendorCDR_20' ) end [2025-02-14 04:18:19] Production.INFO: ProcessCDR(1,14471245,1,1,2) [2025-02-14 04:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471245', 'tblTempUsageDetail_20' ) start [2025-02-14 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471245', 'tblTempUsageDetail_20' ) end [2025-02-14 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:18:22] Production.INFO: ==11462== Releasing lock... [2025-02-14 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:18:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:19:05 [end_date_ymd] => 2025-02-14 04:19:05 [RateCDR] => 1 ) [2025-02-14 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 01:19:05' and `end` < '2025-02-14 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 04:19:18] Production.INFO: count ==388 [2025-02-14 04:19:18] Production.ERROR: pbx CDR StartTime 2025-02-14 01:19:05 - End Time 2025-02-14 04:19:05 [2025-02-14 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471250', 'tblTempUsageDetail_20' ) start [2025-02-14 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471250', 'tblTempUsageDetail_20' ) end [2025-02-14 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471250', 'tblTempVendorCDR_20' ) start [2025-02-14 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471250', 'tblTempVendorCDR_20' ) end [2025-02-14 04:19:18] Production.INFO: ProcessCDR(1,14471250,1,1,2) [2025-02-14 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471250', 'tblTempUsageDetail_20' ) start [2025-02-14 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471250', 'tblTempUsageDetail_20' ) end [2025-02-14 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:19:22] Production.INFO: ==11535== Releasing lock... [2025-02-14 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:19:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:20:06 [end_date_ymd] => 2025-02-14 04:20:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:20:06' and `end` < '2025-02-14 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-02-14 04:20:20] Production.INFO: count ==382 [2025-02-14 04:20:20] Production.ERROR: pbx CDR StartTime 2025-02-14 01:20:06 - End Time 2025-02-14 04:20:06 [2025-02-14 04:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471256', 'tblTempUsageDetail_20' ) start [2025-02-14 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471256', 'tblTempUsageDetail_20' ) end [2025-02-14 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471256', 'tblTempVendorCDR_20' ) start [2025-02-14 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471256', 'tblTempVendorCDR_20' ) end [2025-02-14 04:20:20] Production.INFO: ProcessCDR(1,14471256,1,1,2) [2025-02-14 04:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471256', 'tblTempUsageDetail_20' ) start [2025-02-14 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471256', 'tblTempUsageDetail_20' ) end [2025-02-14 04:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:20:23] Production.INFO: ==11607== Releasing lock... [2025-02-14 04:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:20:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:21:05 [end_date_ymd] => 2025-02-14 04:21:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:21:05' and `end` < '2025-02-14 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-02-14 04:21:19] Production.INFO: count ==370 [2025-02-14 04:21:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:21:05 - End Time 2025-02-14 04:21:05 [2025-02-14 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471261', 'tblTempUsageDetail_20' ) start [2025-02-14 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471261', 'tblTempUsageDetail_20' ) end [2025-02-14 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471261', 'tblTempVendorCDR_20' ) start [2025-02-14 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471261', 'tblTempVendorCDR_20' ) end [2025-02-14 04:21:19] Production.INFO: ProcessCDR(1,14471261,1,1,2) [2025-02-14 04:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471261', 'tblTempUsageDetail_20' ) start [2025-02-14 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471261', 'tblTempUsageDetail_20' ) end [2025-02-14 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:21:22] Production.INFO: ==11681== Releasing lock... [2025-02-14 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:21:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:22:05 [end_date_ymd] => 2025-02-14 04:22:05 [RateCDR] => 1 ) [2025-02-14 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 01:22:05' and `end` < '2025-02-14 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 04:22:19] Production.INFO: count ==370 [2025-02-14 04:22:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:22:05 - End Time 2025-02-14 04:22:05 [2025-02-14 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471266', 'tblTempUsageDetail_20' ) start [2025-02-14 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471266', 'tblTempUsageDetail_20' ) end [2025-02-14 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471266', 'tblTempVendorCDR_20' ) start [2025-02-14 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471266', 'tblTempVendorCDR_20' ) end [2025-02-14 04:22:19] Production.INFO: ProcessCDR(1,14471266,1,1,2) [2025-02-14 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471266', 'tblTempUsageDetail_20' ) start [2025-02-14 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471266', 'tblTempUsageDetail_20' ) end [2025-02-14 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:22:22] Production.INFO: ==11750== Releasing lock... [2025-02-14 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:22:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:23:05 [end_date_ymd] => 2025-02-14 04:23:05 [RateCDR] => 1 ) [2025-02-14 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 01:23:05' and `end` < '2025-02-14 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 04:23:18] Production.INFO: count ==369 [2025-02-14 04:23:18] Production.ERROR: pbx CDR StartTime 2025-02-14 01:23:05 - End Time 2025-02-14 04:23:05 [2025-02-14 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471271', 'tblTempUsageDetail_20' ) start [2025-02-14 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471271', 'tblTempUsageDetail_20' ) end [2025-02-14 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471271', 'tblTempVendorCDR_20' ) start [2025-02-14 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471271', 'tblTempVendorCDR_20' ) end [2025-02-14 04:23:18] Production.INFO: ProcessCDR(1,14471271,1,1,2) [2025-02-14 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471271', 'tblTempUsageDetail_20' ) start [2025-02-14 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471271', 'tblTempUsageDetail_20' ) end [2025-02-14 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:23:22] Production.INFO: ==11824== Releasing lock... [2025-02-14 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:23:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:24:05 [end_date_ymd] => 2025-02-14 04:24:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:24:05' and `end` < '2025-02-14 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-02-14 04:24:18] Production.INFO: count ==369 [2025-02-14 04:24:18] Production.ERROR: pbx CDR StartTime 2025-02-14 01:24:05 - End Time 2025-02-14 04:24:05 [2025-02-14 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471276', 'tblTempUsageDetail_20' ) start [2025-02-14 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471276', 'tblTempUsageDetail_20' ) end [2025-02-14 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471276', 'tblTempVendorCDR_20' ) start [2025-02-14 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471276', 'tblTempVendorCDR_20' ) end [2025-02-14 04:24:18] Production.INFO: ProcessCDR(1,14471276,1,1,2) [2025-02-14 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471276', 'tblTempUsageDetail_20' ) start [2025-02-14 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471276', 'tblTempUsageDetail_20' ) end [2025-02-14 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:24:21] Production.INFO: ==11894== Releasing lock... [2025-02-14 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:24:21] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:25:05 [end_date_ymd] => 2025-02-14 04:25:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:25:05' and `end` < '2025-02-14 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-02-14 04:25:19] Production.INFO: count ==368 [2025-02-14 04:25:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:25:05 - End Time 2025-02-14 04:25:05 [2025-02-14 04:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471281', 'tblTempUsageDetail_20' ) start [2025-02-14 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471281', 'tblTempUsageDetail_20' ) end [2025-02-14 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471281', 'tblTempVendorCDR_20' ) start [2025-02-14 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471281', 'tblTempVendorCDR_20' ) end [2025-02-14 04:25:19] Production.INFO: ProcessCDR(1,14471281,1,1,2) [2025-02-14 04:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471281', 'tblTempUsageDetail_20' ) start [2025-02-14 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471281', 'tblTempUsageDetail_20' ) end [2025-02-14 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:25:22] Production.INFO: ==11967== Releasing lock... [2025-02-14 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:25:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:26:05 [end_date_ymd] => 2025-02-14 04:26:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:26:05' and `end` < '2025-02-14 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-02-14 04:26:19] Production.INFO: count ==368 [2025-02-14 04:26:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:26:05 - End Time 2025-02-14 04:26:05 [2025-02-14 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471286', 'tblTempUsageDetail_20' ) start [2025-02-14 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471286', 'tblTempUsageDetail_20' ) end [2025-02-14 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471286', 'tblTempVendorCDR_20' ) start [2025-02-14 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471286', 'tblTempVendorCDR_20' ) end [2025-02-14 04:26:19] Production.INFO: ProcessCDR(1,14471286,1,1,2) [2025-02-14 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471286', 'tblTempUsageDetail_20' ) start [2025-02-14 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471286', 'tblTempUsageDetail_20' ) end [2025-02-14 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:26:22] Production.INFO: ==12038== Releasing lock... [2025-02-14 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:26:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:27:05 [end_date_ymd] => 2025-02-14 04:27:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:27:05' and `end` < '2025-02-14 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-02-14 04:27:18] Production.INFO: count ==368 [2025-02-14 04:27:18] Production.ERROR: pbx CDR StartTime 2025-02-14 01:27:05 - End Time 2025-02-14 04:27:05 [2025-02-14 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471291', 'tblTempUsageDetail_20' ) start [2025-02-14 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471291', 'tblTempUsageDetail_20' ) end [2025-02-14 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471291', 'tblTempVendorCDR_20' ) start [2025-02-14 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471291', 'tblTempVendorCDR_20' ) end [2025-02-14 04:27:18] Production.INFO: ProcessCDR(1,14471291,1,1,2) [2025-02-14 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471291', 'tblTempUsageDetail_20' ) start [2025-02-14 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471291', 'tblTempUsageDetail_20' ) end [2025-02-14 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:27:22] Production.INFO: ==12147== Releasing lock... [2025-02-14 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:27:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:28:05 [end_date_ymd] => 2025-02-14 04:28:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:28:05' and `end` < '2025-02-14 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-02-14 04:28:19] Production.INFO: count ==368 [2025-02-14 04:28:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:28:05 - End Time 2025-02-14 04:28:05 [2025-02-14 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471296', 'tblTempUsageDetail_20' ) start [2025-02-14 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471296', 'tblTempUsageDetail_20' ) end [2025-02-14 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471296', 'tblTempVendorCDR_20' ) start [2025-02-14 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471296', 'tblTempVendorCDR_20' ) end [2025-02-14 04:28:19] Production.INFO: ProcessCDR(1,14471296,1,1,2) [2025-02-14 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471296', 'tblTempUsageDetail_20' ) start [2025-02-14 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471296', 'tblTempUsageDetail_20' ) end [2025-02-14 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:28:22] Production.INFO: ==12221== Releasing lock... [2025-02-14 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:28:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:29:05 [end_date_ymd] => 2025-02-14 04:29:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:29:05' and `end` < '2025-02-14 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-02-14 04:29:18] Production.INFO: count ==372 [2025-02-14 04:29:18] Production.ERROR: pbx CDR StartTime 2025-02-14 01:29:05 - End Time 2025-02-14 04:29:05 [2025-02-14 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471301', 'tblTempUsageDetail_20' ) start [2025-02-14 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471301', 'tblTempUsageDetail_20' ) end [2025-02-14 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471301', 'tblTempVendorCDR_20' ) start [2025-02-14 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471301', 'tblTempVendorCDR_20' ) end [2025-02-14 04:29:18] Production.INFO: ProcessCDR(1,14471301,1,1,2) [2025-02-14 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471301', 'tblTempUsageDetail_20' ) start [2025-02-14 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471301', 'tblTempUsageDetail_20' ) end [2025-02-14 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:29:21] Production.INFO: ==12292== Releasing lock... [2025-02-14 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:29:21] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:30:06 [end_date_ymd] => 2025-02-14 04:30:06 [RateCDR] => 1 ) [2025-02-14 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 01:30:06' and `end` < '2025-02-14 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 04:30:19] Production.INFO: count ==376 [2025-02-14 04:30:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:30:06 - End Time 2025-02-14 04:30:06 [2025-02-14 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471307', 'tblTempUsageDetail_20' ) start [2025-02-14 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471307', 'tblTempUsageDetail_20' ) end [2025-02-14 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471307', 'tblTempVendorCDR_20' ) start [2025-02-14 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471307', 'tblTempVendorCDR_20' ) end [2025-02-14 04:30:19] Production.INFO: ProcessCDR(1,14471307,1,1,2) [2025-02-14 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471307', 'tblTempUsageDetail_20' ) start [2025-02-14 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471307', 'tblTempUsageDetail_20' ) end [2025-02-14 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:30:23] Production.INFO: ==12364== Releasing lock... [2025-02-14 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:30:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:31:05 [end_date_ymd] => 2025-02-14 04:31:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:31:05' and `end` < '2025-02-14 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-02-14 04:31:19] Production.INFO: count ==377 [2025-02-14 04:31:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:31:05 - End Time 2025-02-14 04:31:05 [2025-02-14 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471313', 'tblTempUsageDetail_20' ) start [2025-02-14 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471313', 'tblTempUsageDetail_20' ) end [2025-02-14 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471313', 'tblTempVendorCDR_20' ) start [2025-02-14 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471313', 'tblTempVendorCDR_20' ) end [2025-02-14 04:31:19] Production.INFO: ProcessCDR(1,14471313,1,1,2) [2025-02-14 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471313', 'tblTempUsageDetail_20' ) start [2025-02-14 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471313', 'tblTempUsageDetail_20' ) end [2025-02-14 04:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:31:23] Production.INFO: ==12438== Releasing lock... [2025-02-14 04:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:31:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:32:06 [end_date_ymd] => 2025-02-14 04:32:06 [RateCDR] => 1 ) [2025-02-14 04: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-02-14 01:32:06' and `end` < '2025-02-14 04: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-02-14 04:32:19] Production.INFO: count ==377 [2025-02-14 04:32:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:32:06 - End Time 2025-02-14 04:32:06 [2025-02-14 04:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471318', 'tblTempUsageDetail_20' ) start [2025-02-14 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471318', 'tblTempUsageDetail_20' ) end [2025-02-14 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471318', 'tblTempVendorCDR_20' ) start [2025-02-14 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471318', 'tblTempVendorCDR_20' ) end [2025-02-14 04:32:19] Production.INFO: ProcessCDR(1,14471318,1,1,2) [2025-02-14 04:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471318', 'tblTempUsageDetail_20' ) start [2025-02-14 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471318', 'tblTempUsageDetail_20' ) end [2025-02-14 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:32:22] Production.INFO: ==12640== Releasing lock... [2025-02-14 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:32:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:33:05 [end_date_ymd] => 2025-02-14 04:33:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:33:05' and `end` < '2025-02-14 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-02-14 04:33:19] Production.INFO: count ==377 [2025-02-14 04:33:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:33:05 - End Time 2025-02-14 04:33:05 [2025-02-14 04:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471323', 'tblTempUsageDetail_20' ) start [2025-02-14 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471323', 'tblTempUsageDetail_20' ) end [2025-02-14 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471323', 'tblTempVendorCDR_20' ) start [2025-02-14 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471323', 'tblTempVendorCDR_20' ) end [2025-02-14 04:33:19] Production.INFO: ProcessCDR(1,14471323,1,1,2) [2025-02-14 04:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471323', 'tblTempUsageDetail_20' ) start [2025-02-14 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471323', 'tblTempUsageDetail_20' ) end [2025-02-14 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:33:22] Production.INFO: ==12710== Releasing lock... [2025-02-14 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:33:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:34:06 [end_date_ymd] => 2025-02-14 04:34:06 [RateCDR] => 1 ) [2025-02-14 04:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 01:34:06' and `end` < '2025-02-14 04:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 04:34:19] Production.INFO: count ==377 [2025-02-14 04:34:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:34:06 - End Time 2025-02-14 04:34:06 [2025-02-14 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471328', 'tblTempUsageDetail_20' ) start [2025-02-14 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471328', 'tblTempUsageDetail_20' ) end [2025-02-14 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471328', 'tblTempVendorCDR_20' ) start [2025-02-14 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471328', 'tblTempVendorCDR_20' ) end [2025-02-14 04:34:19] Production.INFO: ProcessCDR(1,14471328,1,1,2) [2025-02-14 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471328', 'tblTempUsageDetail_20' ) start [2025-02-14 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471328', 'tblTempUsageDetail_20' ) end [2025-02-14 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:34:22] Production.INFO: ==12782== Releasing lock... [2025-02-14 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:34:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:35:05 [end_date_ymd] => 2025-02-14 04:35:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:35:05' and `end` < '2025-02-14 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-02-14 04:35:19] Production.INFO: count ==377 [2025-02-14 04:35:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:35:05 - End Time 2025-02-14 04:35:05 [2025-02-14 04:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471333', 'tblTempUsageDetail_20' ) start [2025-02-14 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471333', 'tblTempUsageDetail_20' ) end [2025-02-14 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471333', 'tblTempVendorCDR_20' ) start [2025-02-14 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471333', 'tblTempVendorCDR_20' ) end [2025-02-14 04:35:19] Production.INFO: ProcessCDR(1,14471333,1,1,2) [2025-02-14 04:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471333', 'tblTempUsageDetail_20' ) start [2025-02-14 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471333', 'tblTempUsageDetail_20' ) end [2025-02-14 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:35:22] Production.INFO: ==12852== Releasing lock... [2025-02-14 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:35:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:36:05 [end_date_ymd] => 2025-02-14 04:36:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:36:05' and `end` < '2025-02-14 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-02-14 04:36:19] Production.INFO: count ==377 [2025-02-14 04:36:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:36:05 - End Time 2025-02-14 04:36:05 [2025-02-14 04:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471338', 'tblTempUsageDetail_20' ) start [2025-02-14 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471338', 'tblTempUsageDetail_20' ) end [2025-02-14 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471338', 'tblTempVendorCDR_20' ) start [2025-02-14 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471338', 'tblTempVendorCDR_20' ) end [2025-02-14 04:36:19] Production.INFO: ProcessCDR(1,14471338,1,1,2) [2025-02-14 04:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471338', 'tblTempUsageDetail_20' ) start [2025-02-14 04:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471338', 'tblTempUsageDetail_20' ) end [2025-02-14 04:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:36:23] Production.INFO: ==12930== Releasing lock... [2025-02-14 04:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:36:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:37:05 [end_date_ymd] => 2025-02-14 04:37:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:37:05' and `end` < '2025-02-14 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-02-14 04:37:18] Production.INFO: count ==377 [2025-02-14 04:37:18] Production.ERROR: pbx CDR StartTime 2025-02-14 01:37:05 - End Time 2025-02-14 04:37:05 [2025-02-14 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471343', 'tblTempUsageDetail_20' ) start [2025-02-14 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471343', 'tblTempUsageDetail_20' ) end [2025-02-14 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471343', 'tblTempVendorCDR_20' ) start [2025-02-14 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471343', 'tblTempVendorCDR_20' ) end [2025-02-14 04:37:18] Production.INFO: ProcessCDR(1,14471343,1,1,2) [2025-02-14 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471343', 'tblTempUsageDetail_20' ) start [2025-02-14 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471343', 'tblTempUsageDetail_20' ) end [2025-02-14 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:37:21] Production.INFO: ==13000== Releasing lock... [2025-02-14 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:37:21] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:38:05 [end_date_ymd] => 2025-02-14 04:38:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:38:05' and `end` < '2025-02-14 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-02-14 04:38:18] Production.INFO: count ==377 [2025-02-14 04:38:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:38:05 - End Time 2025-02-14 04:38:05 [2025-02-14 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471348', 'tblTempUsageDetail_20' ) start [2025-02-14 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471348', 'tblTempUsageDetail_20' ) end [2025-02-14 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471348', 'tblTempVendorCDR_20' ) start [2025-02-14 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471348', 'tblTempVendorCDR_20' ) end [2025-02-14 04:38:19] Production.INFO: ProcessCDR(1,14471348,1,1,2) [2025-02-14 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471348', 'tblTempUsageDetail_20' ) start [2025-02-14 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471348', 'tblTempUsageDetail_20' ) end [2025-02-14 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:38:22] Production.INFO: ==13075== Releasing lock... [2025-02-14 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:38:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:39:05 [end_date_ymd] => 2025-02-14 04:39:05 [RateCDR] => 1 ) [2025-02-14 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 01:39:05' and `end` < '2025-02-14 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 04:39:18] Production.INFO: count ==377 [2025-02-14 04:39:18] Production.ERROR: pbx CDR StartTime 2025-02-14 01:39:05 - End Time 2025-02-14 04:39:05 [2025-02-14 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471353', 'tblTempUsageDetail_20' ) start [2025-02-14 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471353', 'tblTempUsageDetail_20' ) end [2025-02-14 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471353', 'tblTempVendorCDR_20' ) start [2025-02-14 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471353', 'tblTempVendorCDR_20' ) end [2025-02-14 04:39:18] Production.INFO: ProcessCDR(1,14471353,1,1,2) [2025-02-14 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471353', 'tblTempUsageDetail_20' ) start [2025-02-14 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471353', 'tblTempUsageDetail_20' ) end [2025-02-14 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:39:21] Production.INFO: ==13144== Releasing lock... [2025-02-14 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:39:21] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:40:06 [end_date_ymd] => 2025-02-14 04:40:06 [RateCDR] => 1 ) [2025-02-14 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 01:40:06' and `end` < '2025-02-14 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 04:40:19] Production.INFO: count ==371 [2025-02-14 04:40:20] Production.ERROR: pbx CDR StartTime 2025-02-14 01:40:06 - End Time 2025-02-14 04:40:06 [2025-02-14 04:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471358', 'tblTempUsageDetail_20' ) start [2025-02-14 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471358', 'tblTempUsageDetail_20' ) end [2025-02-14 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471358', 'tblTempVendorCDR_20' ) start [2025-02-14 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471358', 'tblTempVendorCDR_20' ) end [2025-02-14 04:40:20] Production.INFO: ProcessCDR(1,14471358,1,1,2) [2025-02-14 04:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471358', 'tblTempUsageDetail_20' ) start [2025-02-14 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471358', 'tblTempUsageDetail_20' ) end [2025-02-14 04:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:40:23] Production.INFO: ==13222== Releasing lock... [2025-02-14 04:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:40:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:41:05 [end_date_ymd] => 2025-02-14 04:41:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:41:05' and `end` < '2025-02-14 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-02-14 04:41:18] Production.INFO: count ==369 [2025-02-14 04:41:18] Production.ERROR: pbx CDR StartTime 2025-02-14 01:41:05 - End Time 2025-02-14 04:41:05 [2025-02-14 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471364', 'tblTempUsageDetail_20' ) start [2025-02-14 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471364', 'tblTempUsageDetail_20' ) end [2025-02-14 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471364', 'tblTempVendorCDR_20' ) start [2025-02-14 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471364', 'tblTempVendorCDR_20' ) end [2025-02-14 04:41:18] Production.INFO: ProcessCDR(1,14471364,1,1,2) [2025-02-14 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471364', 'tblTempUsageDetail_20' ) start [2025-02-14 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471364', 'tblTempUsageDetail_20' ) end [2025-02-14 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:41:21] Production.INFO: ==13299== Releasing lock... [2025-02-14 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:41:21] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:42:05 [end_date_ymd] => 2025-02-14 04:42:05 [RateCDR] => 1 ) [2025-02-14 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 01:42:05' and `end` < '2025-02-14 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 04:42:18] Production.INFO: count ==369 [2025-02-14 04:42:18] Production.ERROR: pbx CDR StartTime 2025-02-14 01:42:05 - End Time 2025-02-14 04:42:05 [2025-02-14 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471369', 'tblTempUsageDetail_20' ) start [2025-02-14 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471369', 'tblTempUsageDetail_20' ) end [2025-02-14 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471369', 'tblTempVendorCDR_20' ) start [2025-02-14 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471369', 'tblTempVendorCDR_20' ) end [2025-02-14 04:42:18] Production.INFO: ProcessCDR(1,14471369,1,1,2) [2025-02-14 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471369', 'tblTempUsageDetail_20' ) start [2025-02-14 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471369', 'tblTempUsageDetail_20' ) end [2025-02-14 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:42:21] Production.INFO: ==13413== Releasing lock... [2025-02-14 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:42:21] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:43:05 [end_date_ymd] => 2025-02-14 04:43:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:43:05' and `end` < '2025-02-14 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-02-14 04:43:19] Production.INFO: count ==366 [2025-02-14 04:43:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:43:05 - End Time 2025-02-14 04:43:05 [2025-02-14 04:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471374', 'tblTempUsageDetail_20' ) start [2025-02-14 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471374', 'tblTempUsageDetail_20' ) end [2025-02-14 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471374', 'tblTempVendorCDR_20' ) start [2025-02-14 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471374', 'tblTempVendorCDR_20' ) end [2025-02-14 04:43:19] Production.INFO: ProcessCDR(1,14471374,1,1,2) [2025-02-14 04:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471374', 'tblTempUsageDetail_20' ) start [2025-02-14 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471374', 'tblTempUsageDetail_20' ) end [2025-02-14 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:43:22] Production.INFO: ==13486== Releasing lock... [2025-02-14 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:43:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:44:05 [end_date_ymd] => 2025-02-14 04:44:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:44:05' and `end` < '2025-02-14 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-02-14 04:44:19] Production.INFO: count ==366 [2025-02-14 04:44:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:44:05 - End Time 2025-02-14 04:44:05 [2025-02-14 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471379', 'tblTempUsageDetail_20' ) start [2025-02-14 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471379', 'tblTempUsageDetail_20' ) end [2025-02-14 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471379', 'tblTempVendorCDR_20' ) start [2025-02-14 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471379', 'tblTempVendorCDR_20' ) end [2025-02-14 04:44:19] Production.INFO: ProcessCDR(1,14471379,1,1,2) [2025-02-14 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471379', 'tblTempUsageDetail_20' ) start [2025-02-14 04:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471379', 'tblTempUsageDetail_20' ) end [2025-02-14 04:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:44:23] Production.INFO: ==13566== Releasing lock... [2025-02-14 04:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:44:23] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:45:05 [end_date_ymd] => 2025-02-14 04:45:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:45:05' and `end` < '2025-02-14 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-02-14 04:45:18] Production.INFO: count ==362 [2025-02-14 04:45:18] Production.ERROR: pbx CDR StartTime 2025-02-14 01:45:05 - End Time 2025-02-14 04:45:05 [2025-02-14 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471384', 'tblTempUsageDetail_20' ) start [2025-02-14 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471384', 'tblTempUsageDetail_20' ) end [2025-02-14 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471384', 'tblTempVendorCDR_20' ) start [2025-02-14 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471384', 'tblTempVendorCDR_20' ) end [2025-02-14 04:45:18] Production.INFO: ProcessCDR(1,14471384,1,1,2) [2025-02-14 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471384', 'tblTempUsageDetail_20' ) start [2025-02-14 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471384', 'tblTempUsageDetail_20' ) end [2025-02-14 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:45:21] Production.INFO: ==13644== Releasing lock... [2025-02-14 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:45:21] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:46:06 [end_date_ymd] => 2025-02-14 04:46:06 [RateCDR] => 1 ) [2025-02-14 04:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 01:46:06' and `end` < '2025-02-14 04:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 04:46:39] Production.INFO: count ==361 [2025-02-14 04:46:39] Production.ERROR: pbx CDR StartTime 2025-02-14 01:46:06 - End Time 2025-02-14 04:46:06 [2025-02-14 04:46:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:46:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471389', 'tblTempUsageDetail_20' ) start [2025-02-14 04:46:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471389', 'tblTempUsageDetail_20' ) end [2025-02-14 04:46:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471389', 'tblTempVendorCDR_20' ) start [2025-02-14 04:46:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471389', 'tblTempVendorCDR_20' ) end [2025-02-14 04:46:39] Production.INFO: ProcessCDR(1,14471389,1,1,2) [2025-02-14 04:46:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:46:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:46:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:46:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:46:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471389', 'tblTempUsageDetail_20' ) start [2025-02-14 04:46:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471389', 'tblTempUsageDetail_20' ) end [2025-02-14 04:46:43] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:46:43] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:46:43] Production.INFO: ==13723== Releasing lock... [2025-02-14 04:46:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:46:43] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:47:05 [end_date_ymd] => 2025-02-14 04:47:05 [RateCDR] => 1 ) [2025-02-14 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 01:47:05' and `end` < '2025-02-14 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 04:47:23] Production.INFO: count ==360 [2025-02-14 04:47:23] Production.ERROR: pbx CDR StartTime 2025-02-14 01:47:05 - End Time 2025-02-14 04:47:05 [2025-02-14 04:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471394', 'tblTempUsageDetail_20' ) start [2025-02-14 04:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471394', 'tblTempUsageDetail_20' ) end [2025-02-14 04:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471394', 'tblTempVendorCDR_20' ) start [2025-02-14 04:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471394', 'tblTempVendorCDR_20' ) end [2025-02-14 04:47:23] Production.INFO: ProcessCDR(1,14471394,1,1,2) [2025-02-14 04:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471394', 'tblTempUsageDetail_20' ) start [2025-02-14 04:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471394', 'tblTempUsageDetail_20' ) end [2025-02-14 04:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:47:26] Production.INFO: ==13803== Releasing lock... [2025-02-14 04:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:47:26] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:48:05 [end_date_ymd] => 2025-02-14 04:48:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:48:05' and `end` < '2025-02-14 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-02-14 04:48:19] Production.INFO: count ==360 [2025-02-14 04:48:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:48:05 - End Time 2025-02-14 04:48:05 [2025-02-14 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471399', 'tblTempUsageDetail_20' ) start [2025-02-14 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471399', 'tblTempUsageDetail_20' ) end [2025-02-14 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471399', 'tblTempVendorCDR_20' ) start [2025-02-14 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471399', 'tblTempVendorCDR_20' ) end [2025-02-14 04:48:19] Production.INFO: ProcessCDR(1,14471399,1,1,2) [2025-02-14 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471399', 'tblTempUsageDetail_20' ) start [2025-02-14 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471399', 'tblTempUsageDetail_20' ) end [2025-02-14 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:48:22] Production.INFO: ==13879== Releasing lock... [2025-02-14 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:48:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:49:05 [end_date_ymd] => 2025-02-14 04:49:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:49:05' and `end` < '2025-02-14 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-02-14 04:49:21] Production.INFO: count ==360 [2025-02-14 04:49:21] Production.ERROR: pbx CDR StartTime 2025-02-14 01:49:05 - End Time 2025-02-14 04:49:05 [2025-02-14 04:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471404', 'tblTempUsageDetail_20' ) start [2025-02-14 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471404', 'tblTempUsageDetail_20' ) end [2025-02-14 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471404', 'tblTempVendorCDR_20' ) start [2025-02-14 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471404', 'tblTempVendorCDR_20' ) end [2025-02-14 04:49:21] Production.INFO: ProcessCDR(1,14471404,1,1,2) [2025-02-14 04:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471404', 'tblTempUsageDetail_20' ) start [2025-02-14 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471404', 'tblTempUsageDetail_20' ) end [2025-02-14 04:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:49:24] Production.INFO: ==13958== Releasing lock... [2025-02-14 04:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:49:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:50:06 [end_date_ymd] => 2025-02-14 04:50:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:50:06' and `end` < '2025-02-14 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-02-14 04:50:21] Production.INFO: count ==354 [2025-02-14 04:50:21] Production.ERROR: pbx CDR StartTime 2025-02-14 01:50:06 - End Time 2025-02-14 04:50:06 [2025-02-14 04:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471410', 'tblTempUsageDetail_20' ) start [2025-02-14 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471410', 'tblTempUsageDetail_20' ) end [2025-02-14 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471410', 'tblTempVendorCDR_20' ) start [2025-02-14 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471410', 'tblTempVendorCDR_20' ) end [2025-02-14 04:50:21] Production.INFO: ProcessCDR(1,14471410,1,1,2) [2025-02-14 04:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471410', 'tblTempUsageDetail_20' ) start [2025-02-14 04:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471410', 'tblTempUsageDetail_20' ) end [2025-02-14 04:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:50:25] Production.INFO: ==14040== Releasing lock... [2025-02-14 04:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:50:25] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 04:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:51:06 [end_date_ymd] => 2025-02-14 04:51:06 [RateCDR] => 1 ) [2025-02-14 04: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-02-14 01:51:06' and `end` < '2025-02-14 04: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-02-14 04:51:20] Production.INFO: count ==348 [2025-02-14 04:51:20] Production.ERROR: pbx CDR StartTime 2025-02-14 01:51:06 - End Time 2025-02-14 04:51:06 [2025-02-14 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471415', 'tblTempUsageDetail_20' ) start [2025-02-14 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471415', 'tblTempUsageDetail_20' ) end [2025-02-14 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471415', 'tblTempVendorCDR_20' ) start [2025-02-14 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471415', 'tblTempVendorCDR_20' ) end [2025-02-14 04:51:20] Production.INFO: ProcessCDR(1,14471415,1,1,2) [2025-02-14 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471415', 'tblTempUsageDetail_20' ) start [2025-02-14 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471415', 'tblTempUsageDetail_20' ) end [2025-02-14 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:51:23] Production.INFO: ==14124== Releasing lock... [2025-02-14 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:51:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:52:05 [end_date_ymd] => 2025-02-14 04:52:05 [RateCDR] => 1 ) [2025-02-14 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 01:52:05' and `end` < '2025-02-14 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 04:52:21] Production.INFO: count ==348 [2025-02-14 04:52:21] Production.ERROR: pbx CDR StartTime 2025-02-14 01:52:05 - End Time 2025-02-14 04:52:05 [2025-02-14 04:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471420', 'tblTempUsageDetail_20' ) start [2025-02-14 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471420', 'tblTempUsageDetail_20' ) end [2025-02-14 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471420', 'tblTempVendorCDR_20' ) start [2025-02-14 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471420', 'tblTempVendorCDR_20' ) end [2025-02-14 04:52:21] Production.INFO: ProcessCDR(1,14471420,1,1,2) [2025-02-14 04:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471420', 'tblTempUsageDetail_20' ) start [2025-02-14 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471420', 'tblTempUsageDetail_20' ) end [2025-02-14 04:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:52:24] Production.INFO: ==14204== Releasing lock... [2025-02-14 04:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:52:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:53:05 [end_date_ymd] => 2025-02-14 04:53:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:53:05' and `end` < '2025-02-14 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-02-14 04:53:20] Production.INFO: count ==348 [2025-02-14 04:53:20] Production.ERROR: pbx CDR StartTime 2025-02-14 01:53:05 - End Time 2025-02-14 04:53:05 [2025-02-14 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471425', 'tblTempUsageDetail_20' ) start [2025-02-14 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471425', 'tblTempUsageDetail_20' ) end [2025-02-14 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471425', 'tblTempVendorCDR_20' ) start [2025-02-14 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471425', 'tblTempVendorCDR_20' ) end [2025-02-14 04:53:20] Production.INFO: ProcessCDR(1,14471425,1,1,2) [2025-02-14 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471425', 'tblTempUsageDetail_20' ) start [2025-02-14 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471425', 'tblTempUsageDetail_20' ) end [2025-02-14 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:53:23] Production.INFO: ==14286== Releasing lock... [2025-02-14 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:53:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:54:05 [end_date_ymd] => 2025-02-14 04:54:05 [RateCDR] => 1 ) [2025-02-14 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 01:54:05' and `end` < '2025-02-14 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 04:54:19] Production.INFO: count ==348 [2025-02-14 04:54:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:54:05 - End Time 2025-02-14 04:54:05 [2025-02-14 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471430', 'tblTempUsageDetail_20' ) start [2025-02-14 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471430', 'tblTempUsageDetail_20' ) end [2025-02-14 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471430', 'tblTempVendorCDR_20' ) start [2025-02-14 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471430', 'tblTempVendorCDR_20' ) end [2025-02-14 04:54:19] Production.INFO: ProcessCDR(1,14471430,1,1,2) [2025-02-14 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471430', 'tblTempUsageDetail_20' ) start [2025-02-14 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471430', 'tblTempUsageDetail_20' ) end [2025-02-14 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:54:22] Production.INFO: ==14363== Releasing lock... [2025-02-14 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:54:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:55:05 [end_date_ymd] => 2025-02-14 04:55:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:55:05' and `end` < '2025-02-14 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-02-14 04:55:19] Production.INFO: count ==345 [2025-02-14 04:55:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:55:05 - End Time 2025-02-14 04:55:05 [2025-02-14 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471435', 'tblTempUsageDetail_20' ) start [2025-02-14 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471435', 'tblTempUsageDetail_20' ) end [2025-02-14 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471435', 'tblTempVendorCDR_20' ) start [2025-02-14 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471435', 'tblTempVendorCDR_20' ) end [2025-02-14 04:55:19] Production.INFO: ProcessCDR(1,14471435,1,1,2) [2025-02-14 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471435', 'tblTempUsageDetail_20' ) start [2025-02-14 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471435', 'tblTempUsageDetail_20' ) end [2025-02-14 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:55:23] Production.INFO: ==14445== Releasing lock... [2025-02-14 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:55:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:56:05 [end_date_ymd] => 2025-02-14 04:56:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:56:05' and `end` < '2025-02-14 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-02-14 04:56:20] Production.INFO: count ==345 [2025-02-14 04:56:20] Production.ERROR: pbx CDR StartTime 2025-02-14 01:56:05 - End Time 2025-02-14 04:56:05 [2025-02-14 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471440', 'tblTempUsageDetail_20' ) start [2025-02-14 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471440', 'tblTempUsageDetail_20' ) end [2025-02-14 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471440', 'tblTempVendorCDR_20' ) start [2025-02-14 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471440', 'tblTempVendorCDR_20' ) end [2025-02-14 04:56:20] Production.INFO: ProcessCDR(1,14471440,1,1,2) [2025-02-14 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471440', 'tblTempUsageDetail_20' ) start [2025-02-14 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471440', 'tblTempUsageDetail_20' ) end [2025-02-14 04:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:56:24] Production.INFO: ==14531== Releasing lock... [2025-02-14 04:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:56:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 04:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:57:06 [end_date_ymd] => 2025-02-14 04:57:06 [RateCDR] => 1 ) [2025-02-14 04:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 01:57:06' and `end` < '2025-02-14 04:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 04:57:21] Production.INFO: count ==345 [2025-02-14 04:57:21] Production.ERROR: pbx CDR StartTime 2025-02-14 01:57:06 - End Time 2025-02-14 04:57:06 [2025-02-14 04:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471445', 'tblTempUsageDetail_20' ) start [2025-02-14 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471445', 'tblTempUsageDetail_20' ) end [2025-02-14 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471445', 'tblTempVendorCDR_20' ) start [2025-02-14 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471445', 'tblTempVendorCDR_20' ) end [2025-02-14 04:57:21] Production.INFO: ProcessCDR(1,14471445,1,1,2) [2025-02-14 04:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471445', 'tblTempUsageDetail_20' ) start [2025-02-14 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471445', 'tblTempUsageDetail_20' ) end [2025-02-14 04:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:57:24] Production.INFO: ==14617== Releasing lock... [2025-02-14 04:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:57:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:58:05 [end_date_ymd] => 2025-02-14 04:58:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:58:05' and `end` < '2025-02-14 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-02-14 04:58:19] Production.INFO: count ==344 [2025-02-14 04:58:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:58:05 - End Time 2025-02-14 04:58:05 [2025-02-14 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471450', 'tblTempUsageDetail_20' ) start [2025-02-14 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471450', 'tblTempUsageDetail_20' ) end [2025-02-14 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471450', 'tblTempVendorCDR_20' ) start [2025-02-14 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471450', 'tblTempVendorCDR_20' ) end [2025-02-14 04:58:19] Production.INFO: ProcessCDR(1,14471450,1,1,2) [2025-02-14 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471450', 'tblTempUsageDetail_20' ) start [2025-02-14 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471450', 'tblTempUsageDetail_20' ) end [2025-02-14 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:58:22] Production.INFO: ==14737== Releasing lock... [2025-02-14 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:58:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 01:59:05 [end_date_ymd] => 2025-02-14 04:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 01:59:05' and `end` < '2025-02-14 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-02-14 04:59:19] Production.INFO: count ==344 [2025-02-14 04:59:19] Production.ERROR: pbx CDR StartTime 2025-02-14 01:59:05 - End Time 2025-02-14 04:59:05 [2025-02-14 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471455', 'tblTempUsageDetail_20' ) start [2025-02-14 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471455', 'tblTempUsageDetail_20' ) end [2025-02-14 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471455', 'tblTempVendorCDR_20' ) start [2025-02-14 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471455', 'tblTempVendorCDR_20' ) end [2025-02-14 04:59:19] Production.INFO: ProcessCDR(1,14471455,1,1,2) [2025-02-14 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471455', 'tblTempUsageDetail_20' ) start [2025-02-14 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471455', 'tblTempUsageDetail_20' ) end [2025-02-14 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 04:59:22] Production.INFO: ==14817== Releasing lock... [2025-02-14 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 04:59:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:00:05 [end_date_ymd] => 2025-02-14 05:00:05 [RateCDR] => 1 ) [2025-02-14 05: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-02-14 02:00:05' and `end` < '2025-02-14 05: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-02-14 05:00:21] Production.INFO: count ==338 [2025-02-14 05:00:21] Production.ERROR: pbx CDR StartTime 2025-02-14 02:00:05 - End Time 2025-02-14 05:00:05 [2025-02-14 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471460', 'tblTempUsageDetail_20' ) start [2025-02-14 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471460', 'tblTempUsageDetail_20' ) end [2025-02-14 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471460', 'tblTempVendorCDR_20' ) start [2025-02-14 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471460', 'tblTempVendorCDR_20' ) end [2025-02-14 05:00:21] Production.INFO: ProcessCDR(1,14471460,1,1,2) [2025-02-14 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471460', 'tblTempUsageDetail_20' ) start [2025-02-14 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471460', 'tblTempUsageDetail_20' ) end [2025-02-14 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:00:24] Production.INFO: ==14909== Releasing lock... [2025-02-14 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:00:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:01:05 [end_date_ymd] => 2025-02-14 05:01:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:01:05' and `end` < '2025-02-14 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-02-14 05:01:19] Production.INFO: count ==336 [2025-02-14 05:01:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:01:05 - End Time 2025-02-14 05:01:05 [2025-02-14 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471466', 'tblTempUsageDetail_20' ) start [2025-02-14 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471466', 'tblTempUsageDetail_20' ) end [2025-02-14 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471466', 'tblTempVendorCDR_20' ) start [2025-02-14 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471466', 'tblTempVendorCDR_20' ) end [2025-02-14 05:01:19] Production.INFO: ProcessCDR(1,14471466,1,1,2) [2025-02-14 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471466', 'tblTempUsageDetail_20' ) start [2025-02-14 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471466', 'tblTempUsageDetail_20' ) end [2025-02-14 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:01:22] Production.INFO: ==15006== Releasing lock... [2025-02-14 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:01:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:02:05 [end_date_ymd] => 2025-02-14 05:02:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:02:05' and `end` < '2025-02-14 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-02-14 05:02:20] Production.INFO: count ==336 [2025-02-14 05:02:20] Production.ERROR: pbx CDR StartTime 2025-02-14 02:02:05 - End Time 2025-02-14 05:02:05 [2025-02-14 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471471', 'tblTempUsageDetail_20' ) start [2025-02-14 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471471', 'tblTempUsageDetail_20' ) end [2025-02-14 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471471', 'tblTempVendorCDR_20' ) start [2025-02-14 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471471', 'tblTempVendorCDR_20' ) end [2025-02-14 05:02:20] Production.INFO: ProcessCDR(1,14471471,1,1,2) [2025-02-14 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471471', 'tblTempUsageDetail_20' ) start [2025-02-14 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471471', 'tblTempUsageDetail_20' ) end [2025-02-14 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:02:23] Production.INFO: ==15092== Releasing lock... [2025-02-14 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:02:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:03:06 [end_date_ymd] => 2025-02-14 05:03:06 [RateCDR] => 1 ) [2025-02-14 05:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 02:03:06' and `end` < '2025-02-14 05:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:03:21] Production.INFO: count ==336 [2025-02-14 05:03:21] Production.ERROR: pbx CDR StartTime 2025-02-14 02:03:06 - End Time 2025-02-14 05:03:06 [2025-02-14 05:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471476', 'tblTempUsageDetail_20' ) start [2025-02-14 05:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471476', 'tblTempUsageDetail_20' ) end [2025-02-14 05:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471476', 'tblTempVendorCDR_20' ) start [2025-02-14 05:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471476', 'tblTempVendorCDR_20' ) end [2025-02-14 05:03:21] Production.INFO: ProcessCDR(1,14471476,1,1,2) [2025-02-14 05:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471476', 'tblTempUsageDetail_20' ) start [2025-02-14 05:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471476', 'tblTempUsageDetail_20' ) end [2025-02-14 05:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:03:24] Production.INFO: ==15174== Releasing lock... [2025-02-14 05:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:03:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:04:05 [end_date_ymd] => 2025-02-14 05:04:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:04:05' and `end` < '2025-02-14 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-02-14 05:04:18] Production.INFO: count ==332 [2025-02-14 05:04:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:04:05 - End Time 2025-02-14 05:04:05 [2025-02-14 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471481', 'tblTempUsageDetail_20' ) start [2025-02-14 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471481', 'tblTempUsageDetail_20' ) end [2025-02-14 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471481', 'tblTempVendorCDR_20' ) start [2025-02-14 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471481', 'tblTempVendorCDR_20' ) end [2025-02-14 05:04:18] Production.INFO: ProcessCDR(1,14471481,1,1,2) [2025-02-14 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471481', 'tblTempUsageDetail_20' ) start [2025-02-14 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471481', 'tblTempUsageDetail_20' ) end [2025-02-14 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:04:22] Production.INFO: ==15258== Releasing lock... [2025-02-14 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:04:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:05:05 [end_date_ymd] => 2025-02-14 05:05:05 [RateCDR] => 1 ) [2025-02-14 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 02:05:05' and `end` < '2025-02-14 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:05:18] Production.INFO: count ==332 [2025-02-14 05:05:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:05:05 - End Time 2025-02-14 05:05:05 [2025-02-14 05:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471486', 'tblTempUsageDetail_20' ) start [2025-02-14 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471486', 'tblTempUsageDetail_20' ) end [2025-02-14 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471486', 'tblTempVendorCDR_20' ) start [2025-02-14 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471486', 'tblTempVendorCDR_20' ) end [2025-02-14 05:05:19] Production.INFO: ProcessCDR(1,14471486,1,1,2) [2025-02-14 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471486', 'tblTempUsageDetail_20' ) start [2025-02-14 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471486', 'tblTempUsageDetail_20' ) end [2025-02-14 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:05:22] Production.INFO: ==15346== Releasing lock... [2025-02-14 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:05:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:06:05 [end_date_ymd] => 2025-02-14 05:06:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:06:05' and `end` < '2025-02-14 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-02-14 05:06:21] Production.INFO: count ==332 [2025-02-14 05:06:21] Production.ERROR: pbx CDR StartTime 2025-02-14 02:06:05 - End Time 2025-02-14 05:06:05 [2025-02-14 05:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471491', 'tblTempUsageDetail_20' ) start [2025-02-14 05:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471491', 'tblTempUsageDetail_20' ) end [2025-02-14 05:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471491', 'tblTempVendorCDR_20' ) start [2025-02-14 05:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471491', 'tblTempVendorCDR_20' ) end [2025-02-14 05:06:21] Production.INFO: ProcessCDR(1,14471491,1,1,2) [2025-02-14 05:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471491', 'tblTempUsageDetail_20' ) start [2025-02-14 05:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471491', 'tblTempUsageDetail_20' ) end [2025-02-14 05:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:06:25] Production.INFO: ==15430== Releasing lock... [2025-02-14 05:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:06:25] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:07:05 [end_date_ymd] => 2025-02-14 05:07:05 [RateCDR] => 1 ) [2025-02-14 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 02:07:05' and `end` < '2025-02-14 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:07:18] Production.INFO: count ==333 [2025-02-14 05:07:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:07:05 - End Time 2025-02-14 05:07:05 [2025-02-14 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471496', 'tblTempUsageDetail_20' ) start [2025-02-14 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471496', 'tblTempUsageDetail_20' ) end [2025-02-14 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471496', 'tblTempVendorCDR_20' ) start [2025-02-14 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471496', 'tblTempVendorCDR_20' ) end [2025-02-14 05:07:19] Production.INFO: ProcessCDR(1,14471496,1,1,2) [2025-02-14 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471496', 'tblTempUsageDetail_20' ) start [2025-02-14 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471496', 'tblTempUsageDetail_20' ) end [2025-02-14 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:07:22] Production.INFO: ==15510== Releasing lock... [2025-02-14 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:07:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:08:05 [end_date_ymd] => 2025-02-14 05:08:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:08:05' and `end` < '2025-02-14 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-02-14 05:08:20] Production.INFO: count ==336 [2025-02-14 05:08:20] Production.ERROR: pbx CDR StartTime 2025-02-14 02:08:05 - End Time 2025-02-14 05:08:05 [2025-02-14 05:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471501', 'tblTempUsageDetail_20' ) start [2025-02-14 05:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471501', 'tblTempUsageDetail_20' ) end [2025-02-14 05:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471501', 'tblTempVendorCDR_20' ) start [2025-02-14 05:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471501', 'tblTempVendorCDR_20' ) end [2025-02-14 05:08:20] Production.INFO: ProcessCDR(1,14471501,1,1,2) [2025-02-14 05:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471501', 'tblTempUsageDetail_20' ) start [2025-02-14 05:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471501', 'tblTempUsageDetail_20' ) end [2025-02-14 05:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:08:23] Production.INFO: ==15595== Releasing lock... [2025-02-14 05:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:08:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:09:05 [end_date_ymd] => 2025-02-14 05:09:05 [RateCDR] => 1 ) [2025-02-14 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 02:09:05' and `end` < '2025-02-14 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:09:18] Production.INFO: count ==336 [2025-02-14 05:09:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:09:05 - End Time 2025-02-14 05:09:05 [2025-02-14 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471506', 'tblTempUsageDetail_20' ) start [2025-02-14 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471506', 'tblTempUsageDetail_20' ) end [2025-02-14 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471506', 'tblTempVendorCDR_20' ) start [2025-02-14 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471506', 'tblTempVendorCDR_20' ) end [2025-02-14 05:09:18] Production.INFO: ProcessCDR(1,14471506,1,1,2) [2025-02-14 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471506', 'tblTempUsageDetail_20' ) start [2025-02-14 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471506', 'tblTempUsageDetail_20' ) end [2025-02-14 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:09:21] Production.INFO: ==15674== Releasing lock... [2025-02-14 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:09:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:10:05 [end_date_ymd] => 2025-02-14 05:10:05 [RateCDR] => 1 ) [2025-02-14 05:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 02:10:05' and `end` < '2025-02-14 05:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:10:18] Production.INFO: count ==336 [2025-02-14 05:10:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:10:05 - End Time 2025-02-14 05:10:05 [2025-02-14 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471512', 'tblTempUsageDetail_20' ) start [2025-02-14 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471512', 'tblTempUsageDetail_20' ) end [2025-02-14 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471512', 'tblTempVendorCDR_20' ) start [2025-02-14 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471512', 'tblTempVendorCDR_20' ) end [2025-02-14 05:10:19] Production.INFO: ProcessCDR(1,14471512,1,1,2) [2025-02-14 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471512', 'tblTempUsageDetail_20' ) start [2025-02-14 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471512', 'tblTempUsageDetail_20' ) end [2025-02-14 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:10:22] Production.INFO: ==15762== Releasing lock... [2025-02-14 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:11:05 [end_date_ymd] => 2025-02-14 05:11:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:11:05' and `end` < '2025-02-14 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-02-14 05:11:19] Production.INFO: count ==332 [2025-02-14 05:11:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:11:05 - End Time 2025-02-14 05:11:05 [2025-02-14 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471517', 'tblTempUsageDetail_20' ) start [2025-02-14 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471517', 'tblTempUsageDetail_20' ) end [2025-02-14 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471517', 'tblTempVendorCDR_20' ) start [2025-02-14 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471517', 'tblTempVendorCDR_20' ) end [2025-02-14 05:11:19] Production.INFO: ProcessCDR(1,14471517,1,1,2) [2025-02-14 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471517', 'tblTempUsageDetail_20' ) start [2025-02-14 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471517', 'tblTempUsageDetail_20' ) end [2025-02-14 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:11:22] Production.INFO: ==15850== Releasing lock... [2025-02-14 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:11:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 05:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:12:04 [end_date_ymd] => 2025-02-14 05:12:04 [RateCDR] => 1 ) [2025-02-14 05: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-02-14 02:12:04' and `end` < '2025-02-14 05: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-02-14 05:12:19] Production.INFO: count ==332 [2025-02-14 05:12:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:12:04 - End Time 2025-02-14 05:12:04 [2025-02-14 05:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471522', 'tblTempUsageDetail_20' ) start [2025-02-14 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471522', 'tblTempUsageDetail_20' ) end [2025-02-14 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471522', 'tblTempVendorCDR_20' ) start [2025-02-14 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471522', 'tblTempVendorCDR_20' ) end [2025-02-14 05:12:19] Production.INFO: ProcessCDR(1,14471522,1,1,2) [2025-02-14 05:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471522', 'tblTempUsageDetail_20' ) start [2025-02-14 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471522', 'tblTempUsageDetail_20' ) end [2025-02-14 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:12:22] Production.INFO: ==15932== Releasing lock... [2025-02-14 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:12:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:13:05 [end_date_ymd] => 2025-02-14 05:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:13:05' and `end` < '2025-02-14 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-02-14 05:13:18] Production.INFO: count ==328 [2025-02-14 05:13:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:13:05 - End Time 2025-02-14 05:13:05 [2025-02-14 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471527', 'tblTempUsageDetail_20' ) start [2025-02-14 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471527', 'tblTempUsageDetail_20' ) end [2025-02-14 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471527', 'tblTempVendorCDR_20' ) start [2025-02-14 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471527', 'tblTempVendorCDR_20' ) end [2025-02-14 05:13:19] Production.INFO: ProcessCDR(1,14471527,1,1,2) [2025-02-14 05:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471527', 'tblTempUsageDetail_20' ) start [2025-02-14 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471527', 'tblTempUsageDetail_20' ) end [2025-02-14 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:13:22] Production.INFO: ==16054== Releasing lock... [2025-02-14 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:13:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:14:05 [end_date_ymd] => 2025-02-14 05:14:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:14:05' and `end` < '2025-02-14 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-02-14 05:14:18] Production.INFO: count ==328 [2025-02-14 05:14:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:14:05 - End Time 2025-02-14 05:14:05 [2025-02-14 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471532', 'tblTempUsageDetail_20' ) start [2025-02-14 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471532', 'tblTempUsageDetail_20' ) end [2025-02-14 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471532', 'tblTempVendorCDR_20' ) start [2025-02-14 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471532', 'tblTempVendorCDR_20' ) end [2025-02-14 05:14:18] Production.INFO: ProcessCDR(1,14471532,1,1,2) [2025-02-14 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471532', 'tblTempUsageDetail_20' ) start [2025-02-14 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471532', 'tblTempUsageDetail_20' ) end [2025-02-14 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:14:22] Production.INFO: ==16142== Releasing lock... [2025-02-14 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:14:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:15:05 [end_date_ymd] => 2025-02-14 05:15:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:15:05' and `end` < '2025-02-14 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-02-14 05:15:19] Production.INFO: count ==328 [2025-02-14 05:15:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:15:05 - End Time 2025-02-14 05:15:05 [2025-02-14 05:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471537', 'tblTempUsageDetail_20' ) start [2025-02-14 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471537', 'tblTempUsageDetail_20' ) end [2025-02-14 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471537', 'tblTempVendorCDR_20' ) start [2025-02-14 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471537', 'tblTempVendorCDR_20' ) end [2025-02-14 05:15:19] Production.INFO: ProcessCDR(1,14471537,1,1,2) [2025-02-14 05:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471537', 'tblTempUsageDetail_20' ) start [2025-02-14 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471537', 'tblTempUsageDetail_20' ) end [2025-02-14 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:15:22] Production.INFO: ==16230== Releasing lock... [2025-02-14 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:15:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:16:05 [end_date_ymd] => 2025-02-14 05:16:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:16:05' and `end` < '2025-02-14 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-02-14 05:16:19] Production.INFO: count ==328 [2025-02-14 05:16:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:16:05 - End Time 2025-02-14 05:16:05 [2025-02-14 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471542', 'tblTempUsageDetail_20' ) start [2025-02-14 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471542', 'tblTempUsageDetail_20' ) end [2025-02-14 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471542', 'tblTempVendorCDR_20' ) start [2025-02-14 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471542', 'tblTempVendorCDR_20' ) end [2025-02-14 05:16:19] Production.INFO: ProcessCDR(1,14471542,1,1,2) [2025-02-14 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471542', 'tblTempUsageDetail_20' ) start [2025-02-14 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471542', 'tblTempUsageDetail_20' ) end [2025-02-14 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:16:22] Production.INFO: ==16315== Releasing lock... [2025-02-14 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:16:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:17:05 [end_date_ymd] => 2025-02-14 05:17:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:17:05' and `end` < '2025-02-14 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-02-14 05:17:18] Production.INFO: count ==329 [2025-02-14 05:17:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:17:05 - End Time 2025-02-14 05:17:05 [2025-02-14 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471547', 'tblTempUsageDetail_20' ) start [2025-02-14 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471547', 'tblTempUsageDetail_20' ) end [2025-02-14 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471547', 'tblTempVendorCDR_20' ) start [2025-02-14 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471547', 'tblTempVendorCDR_20' ) end [2025-02-14 05:17:18] Production.INFO: ProcessCDR(1,14471547,1,1,2) [2025-02-14 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471547', 'tblTempUsageDetail_20' ) start [2025-02-14 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471547', 'tblTempUsageDetail_20' ) end [2025-02-14 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:17:22] Production.INFO: ==16394== Releasing lock... [2025-02-14 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:17:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 05:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:18:06 [end_date_ymd] => 2025-02-14 05:18:06 [RateCDR] => 1 ) [2025-02-14 05:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 02:18:06' and `end` < '2025-02-14 05:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:18:20] Production.INFO: count ==332 [2025-02-14 05:18:20] Production.ERROR: pbx CDR StartTime 2025-02-14 02:18:06 - End Time 2025-02-14 05:18:06 [2025-02-14 05:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471552', 'tblTempUsageDetail_20' ) start [2025-02-14 05:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471552', 'tblTempUsageDetail_20' ) end [2025-02-14 05:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471552', 'tblTempVendorCDR_20' ) start [2025-02-14 05:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471552', 'tblTempVendorCDR_20' ) end [2025-02-14 05:18:20] Production.INFO: ProcessCDR(1,14471552,1,1,2) [2025-02-14 05:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471552', 'tblTempUsageDetail_20' ) start [2025-02-14 05:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471552', 'tblTempUsageDetail_20' ) end [2025-02-14 05:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:18:24] Production.INFO: ==16476== Releasing lock... [2025-02-14 05:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:18:24] Production.INFO: 31 MB #Memory Used# [2025-02-14 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:19:05 [end_date_ymd] => 2025-02-14 05:19:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:19:05' and `end` < '2025-02-14 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-02-14 05:19:18] Production.INFO: count ==332 [2025-02-14 05:19:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:19:05 - End Time 2025-02-14 05:19:05 [2025-02-14 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471557', 'tblTempUsageDetail_20' ) start [2025-02-14 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471557', 'tblTempUsageDetail_20' ) end [2025-02-14 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471557', 'tblTempVendorCDR_20' ) start [2025-02-14 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471557', 'tblTempVendorCDR_20' ) end [2025-02-14 05:19:19] Production.INFO: ProcessCDR(1,14471557,1,1,2) [2025-02-14 05:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471557', 'tblTempUsageDetail_20' ) start [2025-02-14 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471557', 'tblTempUsageDetail_20' ) end [2025-02-14 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:19:22] Production.INFO: ==16557== Releasing lock... [2025-02-14 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:19:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:20:06 [end_date_ymd] => 2025-02-14 05:20:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:20:06' and `end` < '2025-02-14 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-02-14 05:20:19] Production.INFO: count ==328 [2025-02-14 05:20:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:20:06 - End Time 2025-02-14 05:20:06 [2025-02-14 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471563', 'tblTempUsageDetail_20' ) start [2025-02-14 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471563', 'tblTempUsageDetail_20' ) end [2025-02-14 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471563', 'tblTempVendorCDR_20' ) start [2025-02-14 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471563', 'tblTempVendorCDR_20' ) end [2025-02-14 05:20:19] Production.INFO: ProcessCDR(1,14471563,1,1,2) [2025-02-14 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471563', 'tblTempUsageDetail_20' ) start [2025-02-14 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471563', 'tblTempUsageDetail_20' ) end [2025-02-14 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:20:23] Production.INFO: ==16638== Releasing lock... [2025-02-14 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:20:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:21:05 [end_date_ymd] => 2025-02-14 05:21:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:21:05' and `end` < '2025-02-14 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-02-14 05:21:18] Production.INFO: count ==322 [2025-02-14 05:21:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:21:05 - End Time 2025-02-14 05:21:05 [2025-02-14 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471568', 'tblTempUsageDetail_20' ) start [2025-02-14 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471568', 'tblTempUsageDetail_20' ) end [2025-02-14 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471568', 'tblTempVendorCDR_20' ) start [2025-02-14 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471568', 'tblTempVendorCDR_20' ) end [2025-02-14 05:21:18] Production.INFO: ProcessCDR(1,14471568,1,1,2) [2025-02-14 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471568', 'tblTempUsageDetail_20' ) start [2025-02-14 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471568', 'tblTempUsageDetail_20' ) end [2025-02-14 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:21:22] Production.INFO: ==16723== Releasing lock... [2025-02-14 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:21:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:22:06 [end_date_ymd] => 2025-02-14 05:22:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:22:06' and `end` < '2025-02-14 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-02-14 05:22:19] Production.INFO: count ==318 [2025-02-14 05:22:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:22:06 - End Time 2025-02-14 05:22:06 [2025-02-14 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471573', 'tblTempUsageDetail_20' ) start [2025-02-14 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471573', 'tblTempUsageDetail_20' ) end [2025-02-14 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471573', 'tblTempVendorCDR_20' ) start [2025-02-14 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471573', 'tblTempVendorCDR_20' ) end [2025-02-14 05:22:19] Production.INFO: ProcessCDR(1,14471573,1,1,2) [2025-02-14 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471573', 'tblTempUsageDetail_20' ) start [2025-02-14 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471573', 'tblTempUsageDetail_20' ) end [2025-02-14 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:22:22] Production.INFO: ==16808== Releasing lock... [2025-02-14 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:22:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:23:05 [end_date_ymd] => 2025-02-14 05:23:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:23:05' and `end` < '2025-02-14 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-02-14 05:23:18] Production.INFO: count ==318 [2025-02-14 05:23:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:23:05 - End Time 2025-02-14 05:23:05 [2025-02-14 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471578', 'tblTempUsageDetail_20' ) start [2025-02-14 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471578', 'tblTempUsageDetail_20' ) end [2025-02-14 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471578', 'tblTempVendorCDR_20' ) start [2025-02-14 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471578', 'tblTempVendorCDR_20' ) end [2025-02-14 05:23:18] Production.INFO: ProcessCDR(1,14471578,1,1,2) [2025-02-14 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471578', 'tblTempUsageDetail_20' ) start [2025-02-14 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471578', 'tblTempUsageDetail_20' ) end [2025-02-14 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:23:21] Production.INFO: ==16885== Releasing lock... [2025-02-14 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:23:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:24:05 [end_date_ymd] => 2025-02-14 05:24:05 [RateCDR] => 1 ) [2025-02-14 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 02:24:05' and `end` < '2025-02-14 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:24:18] Production.INFO: count ==318 [2025-02-14 05:24:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:24:05 - End Time 2025-02-14 05:24:05 [2025-02-14 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471583', 'tblTempUsageDetail_20' ) start [2025-02-14 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471583', 'tblTempUsageDetail_20' ) end [2025-02-14 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471583', 'tblTempVendorCDR_20' ) start [2025-02-14 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471583', 'tblTempVendorCDR_20' ) end [2025-02-14 05:24:18] Production.INFO: ProcessCDR(1,14471583,1,1,2) [2025-02-14 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471583', 'tblTempUsageDetail_20' ) start [2025-02-14 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471583', 'tblTempUsageDetail_20' ) end [2025-02-14 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:24:21] Production.INFO: ==16964== Releasing lock... [2025-02-14 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:25:06 [end_date_ymd] => 2025-02-14 05:25:06 [RateCDR] => 1 ) [2025-02-14 05:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 02:25:06' and `end` < '2025-02-14 05:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:25:19] Production.INFO: count ==317 [2025-02-14 05:25:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:25:06 - End Time 2025-02-14 05:25:06 [2025-02-14 05:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471588', 'tblTempUsageDetail_20' ) start [2025-02-14 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471588', 'tblTempUsageDetail_20' ) end [2025-02-14 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471588', 'tblTempVendorCDR_20' ) start [2025-02-14 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471588', 'tblTempVendorCDR_20' ) end [2025-02-14 05:25:19] Production.INFO: ProcessCDR(1,14471588,1,1,2) [2025-02-14 05:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471588', 'tblTempUsageDetail_20' ) start [2025-02-14 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471588', 'tblTempUsageDetail_20' ) end [2025-02-14 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:25:22] Production.INFO: ==17039== Releasing lock... [2025-02-14 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:25:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 05:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:26:06 [end_date_ymd] => 2025-02-14 05:26:06 [RateCDR] => 1 ) [2025-02-14 05:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 02:26:06' and `end` < '2025-02-14 05:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:26:20] Production.INFO: count ==316 [2025-02-14 05:26:20] Production.ERROR: pbx CDR StartTime 2025-02-14 02:26:06 - End Time 2025-02-14 05:26:06 [2025-02-14 05:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471593', 'tblTempUsageDetail_20' ) start [2025-02-14 05:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471593', 'tblTempUsageDetail_20' ) end [2025-02-14 05:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471593', 'tblTempVendorCDR_20' ) start [2025-02-14 05:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471593', 'tblTempVendorCDR_20' ) end [2025-02-14 05:26:20] Production.INFO: ProcessCDR(1,14471593,1,1,2) [2025-02-14 05:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471593', 'tblTempUsageDetail_20' ) start [2025-02-14 05:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471593', 'tblTempUsageDetail_20' ) end [2025-02-14 05:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:26:24] Production.INFO: ==17117== Releasing lock... [2025-02-14 05:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:26:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 05:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:27:06 [end_date_ymd] => 2025-02-14 05:27:06 [RateCDR] => 1 ) [2025-02-14 05:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 02:27:06' and `end` < '2025-02-14 05:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:27:20] Production.INFO: count ==316 [2025-02-14 05:27:20] Production.ERROR: pbx CDR StartTime 2025-02-14 02:27:06 - End Time 2025-02-14 05:27:06 [2025-02-14 05:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471598', 'tblTempUsageDetail_20' ) start [2025-02-14 05:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471598', 'tblTempUsageDetail_20' ) end [2025-02-14 05:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471598', 'tblTempVendorCDR_20' ) start [2025-02-14 05:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471598', 'tblTempVendorCDR_20' ) end [2025-02-14 05:27:20] Production.INFO: ProcessCDR(1,14471598,1,1,2) [2025-02-14 05:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471598', 'tblTempUsageDetail_20' ) start [2025-02-14 05:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471598', 'tblTempUsageDetail_20' ) end [2025-02-14 05:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:27:23] Production.INFO: ==17195== Releasing lock... [2025-02-14 05:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:27:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:28:06 [end_date_ymd] => 2025-02-14 05:28:06 [RateCDR] => 1 ) [2025-02-14 05:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 02:28:06' and `end` < '2025-02-14 05:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:28:20] Production.INFO: count ==316 [2025-02-14 05:28:20] Production.ERROR: pbx CDR StartTime 2025-02-14 02:28:06 - End Time 2025-02-14 05:28:06 [2025-02-14 05:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471603', 'tblTempUsageDetail_20' ) start [2025-02-14 05:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471603', 'tblTempUsageDetail_20' ) end [2025-02-14 05:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471603', 'tblTempVendorCDR_20' ) start [2025-02-14 05:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471603', 'tblTempVendorCDR_20' ) end [2025-02-14 05:28:20] Production.INFO: ProcessCDR(1,14471603,1,1,2) [2025-02-14 05:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471603', 'tblTempUsageDetail_20' ) start [2025-02-14 05:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471603', 'tblTempUsageDetail_20' ) end [2025-02-14 05:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:28:23] Production.INFO: ==17269== Releasing lock... [2025-02-14 05:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:28:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:29:05 [end_date_ymd] => 2025-02-14 05:29:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:29:05' and `end` < '2025-02-14 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-02-14 05:29:18] Production.INFO: count ==316 [2025-02-14 05:29:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:29:05 - End Time 2025-02-14 05:29:05 [2025-02-14 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471608', 'tblTempUsageDetail_20' ) start [2025-02-14 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471608', 'tblTempUsageDetail_20' ) end [2025-02-14 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471608', 'tblTempVendorCDR_20' ) start [2025-02-14 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471608', 'tblTempVendorCDR_20' ) end [2025-02-14 05:29:18] Production.INFO: ProcessCDR(1,14471608,1,1,2) [2025-02-14 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471608', 'tblTempUsageDetail_20' ) start [2025-02-14 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471608', 'tblTempUsageDetail_20' ) end [2025-02-14 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:29:21] Production.INFO: ==17384== Releasing lock... [2025-02-14 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:29:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:30:06 [end_date_ymd] => 2025-02-14 05:30:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:30:06' and `end` < '2025-02-14 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-02-14 05:30:20] Production.INFO: count ==310 [2025-02-14 05:30:20] Production.ERROR: pbx CDR StartTime 2025-02-14 02:30:06 - End Time 2025-02-14 05:30:06 [2025-02-14 05:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471614', 'tblTempUsageDetail_20' ) start [2025-02-14 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471614', 'tblTempUsageDetail_20' ) end [2025-02-14 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471614', 'tblTempVendorCDR_20' ) start [2025-02-14 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471614', 'tblTempVendorCDR_20' ) end [2025-02-14 05:30:20] Production.INFO: ProcessCDR(1,14471614,1,1,2) [2025-02-14 05:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471614', 'tblTempUsageDetail_20' ) start [2025-02-14 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471614', 'tblTempUsageDetail_20' ) end [2025-02-14 05:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:30:23] Production.INFO: ==17460== Releasing lock... [2025-02-14 05:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:30:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:31:05 [end_date_ymd] => 2025-02-14 05:31:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:31:05' and `end` < '2025-02-14 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-02-14 05:31:18] Production.INFO: count ==298 [2025-02-14 05:31:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:31:05 - End Time 2025-02-14 05:31:05 [2025-02-14 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471619', 'tblTempUsageDetail_20' ) start [2025-02-14 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471619', 'tblTempUsageDetail_20' ) end [2025-02-14 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471619', 'tblTempVendorCDR_20' ) start [2025-02-14 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471619', 'tblTempVendorCDR_20' ) end [2025-02-14 05:31:18] Production.INFO: ProcessCDR(1,14471619,1,1,2) [2025-02-14 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471619', 'tblTempUsageDetail_20' ) start [2025-02-14 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471619', 'tblTempUsageDetail_20' ) end [2025-02-14 05:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:31:22] Production.INFO: ==17535== Releasing lock... [2025-02-14 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:31:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:32:05 [end_date_ymd] => 2025-02-14 05:32:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:32:05' and `end` < '2025-02-14 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-02-14 05:32:18] Production.INFO: count ==297 [2025-02-14 05:32:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:32:05 - End Time 2025-02-14 05:32:05 [2025-02-14 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471624', 'tblTempUsageDetail_20' ) start [2025-02-14 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471624', 'tblTempUsageDetail_20' ) end [2025-02-14 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471624', 'tblTempVendorCDR_20' ) start [2025-02-14 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471624', 'tblTempVendorCDR_20' ) end [2025-02-14 05:32:19] Production.INFO: ProcessCDR(1,14471624,1,1,2) [2025-02-14 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471624', 'tblTempUsageDetail_20' ) start [2025-02-14 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471624', 'tblTempUsageDetail_20' ) end [2025-02-14 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:32:22] Production.INFO: ==17607== Releasing lock... [2025-02-14 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:32:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 05:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:33:05 [end_date_ymd] => 2025-02-14 05:33:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:33:05' and `end` < '2025-02-14 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:33:19] Production.INFO: count ==296 [2025-02-14 05:33:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:33:05 - End Time 2025-02-14 05:33:05 [2025-02-14 05:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471629', 'tblTempUsageDetail_20' ) start [2025-02-14 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471629', 'tblTempUsageDetail_20' ) end [2025-02-14 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471629', 'tblTempVendorCDR_20' ) start [2025-02-14 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471629', 'tblTempVendorCDR_20' ) end [2025-02-14 05:33:19] Production.INFO: ProcessCDR(1,14471629,1,1,2) [2025-02-14 05:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471629', 'tblTempUsageDetail_20' ) start [2025-02-14 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471629', 'tblTempUsageDetail_20' ) end [2025-02-14 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:33:22] Production.INFO: ==17678== Releasing lock... [2025-02-14 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:33:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:34:05 [end_date_ymd] => 2025-02-14 05:34:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:34:05' and `end` < '2025-02-14 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-02-14 05:34:19] Production.INFO: count ==292 [2025-02-14 05:34:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:34:05 - End Time 2025-02-14 05:34:05 [2025-02-14 05:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471634', 'tblTempUsageDetail_20' ) start [2025-02-14 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471634', 'tblTempUsageDetail_20' ) end [2025-02-14 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471634', 'tblTempVendorCDR_20' ) start [2025-02-14 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471634', 'tblTempVendorCDR_20' ) end [2025-02-14 05:34:19] Production.INFO: ProcessCDR(1,14471634,1,1,2) [2025-02-14 05:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471634', 'tblTempUsageDetail_20' ) start [2025-02-14 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471634', 'tblTempUsageDetail_20' ) end [2025-02-14 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:34:22] Production.INFO: ==17756== Releasing lock... [2025-02-14 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:34:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 05:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:35:06 [end_date_ymd] => 2025-02-14 05:35:06 [RateCDR] => 1 ) [2025-02-14 05: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-02-14 02:35:06' and `end` < '2025-02-14 05: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-02-14 05:35:19] Production.INFO: count ==292 [2025-02-14 05:35:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:35:06 - End Time 2025-02-14 05:35:06 [2025-02-14 05:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471639', 'tblTempUsageDetail_20' ) start [2025-02-14 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471639', 'tblTempUsageDetail_20' ) end [2025-02-14 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471639', 'tblTempVendorCDR_20' ) start [2025-02-14 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471639', 'tblTempVendorCDR_20' ) end [2025-02-14 05:35:19] Production.INFO: ProcessCDR(1,14471639,1,1,2) [2025-02-14 05:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471639', 'tblTempUsageDetail_20' ) start [2025-02-14 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471639', 'tblTempUsageDetail_20' ) end [2025-02-14 05:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:35:22] Production.INFO: ==17829== Releasing lock... [2025-02-14 05:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:35:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:36:05 [end_date_ymd] => 2025-02-14 05:36:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:36:05' and `end` < '2025-02-14 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-02-14 05:36:17] Production.INFO: count ==292 [2025-02-14 05:36:17] Production.ERROR: pbx CDR StartTime 2025-02-14 02:36:05 - End Time 2025-02-14 05:36:05 [2025-02-14 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471644', 'tblTempUsageDetail_20' ) start [2025-02-14 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471644', 'tblTempUsageDetail_20' ) end [2025-02-14 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471644', 'tblTempVendorCDR_20' ) start [2025-02-14 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471644', 'tblTempVendorCDR_20' ) end [2025-02-14 05:36:17] Production.INFO: ProcessCDR(1,14471644,1,1,2) [2025-02-14 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471644', 'tblTempUsageDetail_20' ) start [2025-02-14 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471644', 'tblTempUsageDetail_20' ) end [2025-02-14 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:36:21] Production.INFO: ==17899== Releasing lock... [2025-02-14 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:36:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:37:05 [end_date_ymd] => 2025-02-14 05:37:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:37:05' and `end` < '2025-02-14 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-02-14 05:37:19] Production.INFO: count ==292 [2025-02-14 05:37:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:37:05 - End Time 2025-02-14 05:37:05 [2025-02-14 05:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471649', 'tblTempUsageDetail_20' ) start [2025-02-14 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471649', 'tblTempUsageDetail_20' ) end [2025-02-14 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471649', 'tblTempVendorCDR_20' ) start [2025-02-14 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471649', 'tblTempVendorCDR_20' ) end [2025-02-14 05:37:19] Production.INFO: ProcessCDR(1,14471649,1,1,2) [2025-02-14 05:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471649', 'tblTempUsageDetail_20' ) start [2025-02-14 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471649', 'tblTempUsageDetail_20' ) end [2025-02-14 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:37:22] Production.INFO: ==17970== Releasing lock... [2025-02-14 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:37:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:38:05 [end_date_ymd] => 2025-02-14 05:38:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:38:05' and `end` < '2025-02-14 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-02-14 05:38:19] Production.INFO: count ==292 [2025-02-14 05:38:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:38:05 - End Time 2025-02-14 05:38:05 [2025-02-14 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471654', 'tblTempUsageDetail_20' ) start [2025-02-14 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471654', 'tblTempUsageDetail_20' ) end [2025-02-14 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471654', 'tblTempVendorCDR_20' ) start [2025-02-14 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471654', 'tblTempVendorCDR_20' ) end [2025-02-14 05:38:19] Production.INFO: ProcessCDR(1,14471654,1,1,2) [2025-02-14 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471654', 'tblTempUsageDetail_20' ) start [2025-02-14 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471654', 'tblTempUsageDetail_20' ) end [2025-02-14 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:38:22] Production.INFO: ==18044== Releasing lock... [2025-02-14 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:38:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:39:05 [end_date_ymd] => 2025-02-14 05:39:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:39:05' and `end` < '2025-02-14 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-02-14 05:39:18] Production.INFO: count ==293 [2025-02-14 05:39:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:39:05 - End Time 2025-02-14 05:39:05 [2025-02-14 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471659', 'tblTempUsageDetail_20' ) start [2025-02-14 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471659', 'tblTempUsageDetail_20' ) end [2025-02-14 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471659', 'tblTempVendorCDR_20' ) start [2025-02-14 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471659', 'tblTempVendorCDR_20' ) end [2025-02-14 05:39:18] Production.INFO: ProcessCDR(1,14471659,1,1,2) [2025-02-14 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471659', 'tblTempUsageDetail_20' ) start [2025-02-14 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471659', 'tblTempUsageDetail_20' ) end [2025-02-14 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:39:22] Production.INFO: ==18113== Releasing lock... [2025-02-14 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:39:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:40:06 [end_date_ymd] => 2025-02-14 05:40:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:40:06' and `end` < '2025-02-14 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-02-14 05:40:19] Production.INFO: count ==290 [2025-02-14 05:40:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:40:06 - End Time 2025-02-14 05:40:06 [2025-02-14 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471664', 'tblTempUsageDetail_20' ) start [2025-02-14 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471664', 'tblTempUsageDetail_20' ) end [2025-02-14 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471664', 'tblTempVendorCDR_20' ) start [2025-02-14 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471664', 'tblTempVendorCDR_20' ) end [2025-02-14 05:40:19] Production.INFO: ProcessCDR(1,14471664,1,1,2) [2025-02-14 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471664', 'tblTempUsageDetail_20' ) start [2025-02-14 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471664', 'tblTempUsageDetail_20' ) end [2025-02-14 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:40:22] Production.INFO: ==18189== Releasing lock... [2025-02-14 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:41:05 [end_date_ymd] => 2025-02-14 05:41:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:41:05' and `end` < '2025-02-14 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-02-14 05:41:19] Production.INFO: count ==297 [2025-02-14 05:41:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:41:05 - End Time 2025-02-14 05:41:05 [2025-02-14 05:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471670', 'tblTempUsageDetail_20' ) start [2025-02-14 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471670', 'tblTempUsageDetail_20' ) end [2025-02-14 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471670', 'tblTempVendorCDR_20' ) start [2025-02-14 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471670', 'tblTempVendorCDR_20' ) end [2025-02-14 05:41:19] Production.INFO: ProcessCDR(1,14471670,1,1,2) [2025-02-14 05:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471670', 'tblTempUsageDetail_20' ) start [2025-02-14 05:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471670', 'tblTempUsageDetail_20' ) end [2025-02-14 05:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:41:23] Production.INFO: ==18265== Releasing lock... [2025-02-14 05:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:41:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:42:05 [end_date_ymd] => 2025-02-14 05:42:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:42:05' and `end` < '2025-02-14 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-02-14 05:42:18] Production.INFO: count ==297 [2025-02-14 05:42:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:42:05 - End Time 2025-02-14 05:42:05 [2025-02-14 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471675', 'tblTempUsageDetail_20' ) start [2025-02-14 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471675', 'tblTempUsageDetail_20' ) end [2025-02-14 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471675', 'tblTempVendorCDR_20' ) start [2025-02-14 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471675', 'tblTempVendorCDR_20' ) end [2025-02-14 05:42:18] Production.INFO: ProcessCDR(1,14471675,1,1,2) [2025-02-14 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471675', 'tblTempUsageDetail_20' ) start [2025-02-14 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471675', 'tblTempUsageDetail_20' ) end [2025-02-14 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:42:21] Production.INFO: ==18361== Releasing lock... [2025-02-14 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:43:05 [end_date_ymd] => 2025-02-14 05:43:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:43:05' and `end` < '2025-02-14 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-02-14 05:43:18] Production.INFO: count ==299 [2025-02-14 05:43:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:43:05 - End Time 2025-02-14 05:43:05 [2025-02-14 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471680', 'tblTempUsageDetail_20' ) start [2025-02-14 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471680', 'tblTempUsageDetail_20' ) end [2025-02-14 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471680', 'tblTempVendorCDR_20' ) start [2025-02-14 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471680', 'tblTempVendorCDR_20' ) end [2025-02-14 05:43:18] Production.INFO: ProcessCDR(1,14471680,1,1,2) [2025-02-14 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471680', 'tblTempUsageDetail_20' ) start [2025-02-14 05:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471680', 'tblTempUsageDetail_20' ) end [2025-02-14 05:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:43:23] Production.INFO: ==18441== Releasing lock... [2025-02-14 05:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:43:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:44:05 [end_date_ymd] => 2025-02-14 05:44:05 [RateCDR] => 1 ) [2025-02-14 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 02:44:05' and `end` < '2025-02-14 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:44:18] Production.INFO: count ==300 [2025-02-14 05:44:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:44:05 - End Time 2025-02-14 05:44:05 [2025-02-14 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471685', 'tblTempUsageDetail_20' ) start [2025-02-14 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471685', 'tblTempUsageDetail_20' ) end [2025-02-14 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471685', 'tblTempVendorCDR_20' ) start [2025-02-14 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471685', 'tblTempVendorCDR_20' ) end [2025-02-14 05:44:18] Production.INFO: ProcessCDR(1,14471685,1,1,2) [2025-02-14 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471685', 'tblTempUsageDetail_20' ) start [2025-02-14 05:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471685', 'tblTempUsageDetail_20' ) end [2025-02-14 05:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:44:23] Production.INFO: ==18563== Releasing lock... [2025-02-14 05:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:44:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:45:05 [end_date_ymd] => 2025-02-14 05:45:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:45:05' and `end` < '2025-02-14 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-02-14 05:45:19] Production.INFO: count ==300 [2025-02-14 05:45:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:45:05 - End Time 2025-02-14 05:45:05 [2025-02-14 05:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471690', 'tblTempUsageDetail_20' ) start [2025-02-14 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471690', 'tblTempUsageDetail_20' ) end [2025-02-14 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471690', 'tblTempVendorCDR_20' ) start [2025-02-14 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471690', 'tblTempVendorCDR_20' ) end [2025-02-14 05:45:19] Production.INFO: ProcessCDR(1,14471690,1,1,2) [2025-02-14 05:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471690', 'tblTempUsageDetail_20' ) start [2025-02-14 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471690', 'tblTempUsageDetail_20' ) end [2025-02-14 05:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:45:22] Production.INFO: ==18653== Releasing lock... [2025-02-14 05:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:45:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:46:05 [end_date_ymd] => 2025-02-14 05:46:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:46:05' and `end` < '2025-02-14 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-02-14 05:46:18] Production.INFO: count ==300 [2025-02-14 05:46:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:46:05 - End Time 2025-02-14 05:46:05 [2025-02-14 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471695', 'tblTempUsageDetail_20' ) start [2025-02-14 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471695', 'tblTempUsageDetail_20' ) end [2025-02-14 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471695', 'tblTempVendorCDR_20' ) start [2025-02-14 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471695', 'tblTempVendorCDR_20' ) end [2025-02-14 05:46:18] Production.INFO: ProcessCDR(1,14471695,1,1,2) [2025-02-14 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471695', 'tblTempUsageDetail_20' ) start [2025-02-14 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471695', 'tblTempUsageDetail_20' ) end [2025-02-14 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:46:21] Production.INFO: ==18738== Releasing lock... [2025-02-14 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:46:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:47:05 [end_date_ymd] => 2025-02-14 05:47:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:47:05' and `end` < '2025-02-14 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-02-14 05:47:19] Production.INFO: count ==300 [2025-02-14 05:47:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:47:05 - End Time 2025-02-14 05:47:05 [2025-02-14 05:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471700', 'tblTempUsageDetail_20' ) start [2025-02-14 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471700', 'tblTempUsageDetail_20' ) end [2025-02-14 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471700', 'tblTempVendorCDR_20' ) start [2025-02-14 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471700', 'tblTempVendorCDR_20' ) end [2025-02-14 05:47:19] Production.INFO: ProcessCDR(1,14471700,1,1,2) [2025-02-14 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471700', 'tblTempUsageDetail_20' ) start [2025-02-14 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471700', 'tblTempUsageDetail_20' ) end [2025-02-14 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:47:22] Production.INFO: ==18828== Releasing lock... [2025-02-14 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:47:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:48:05 [end_date_ymd] => 2025-02-14 05:48:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:48:05' and `end` < '2025-02-14 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-02-14 05:48:19] Production.INFO: count ==300 [2025-02-14 05:48:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:48:05 - End Time 2025-02-14 05:48:05 [2025-02-14 05:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471705', 'tblTempUsageDetail_20' ) start [2025-02-14 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471705', 'tblTempUsageDetail_20' ) end [2025-02-14 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471705', 'tblTempVendorCDR_20' ) start [2025-02-14 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471705', 'tblTempVendorCDR_20' ) end [2025-02-14 05:48:19] Production.INFO: ProcessCDR(1,14471705,1,1,2) [2025-02-14 05:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471705', 'tblTempUsageDetail_20' ) start [2025-02-14 05:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471705', 'tblTempUsageDetail_20' ) end [2025-02-14 05:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:48:23] Production.INFO: ==18912== Releasing lock... [2025-02-14 05:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:48:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:49:05 [end_date_ymd] => 2025-02-14 05:49:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:49:05' and `end` < '2025-02-14 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-02-14 05:49:18] Production.INFO: count ==300 [2025-02-14 05:49:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:49:05 - End Time 2025-02-14 05:49:05 [2025-02-14 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471710', 'tblTempUsageDetail_20' ) start [2025-02-14 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471710', 'tblTempUsageDetail_20' ) end [2025-02-14 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471710', 'tblTempVendorCDR_20' ) start [2025-02-14 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471710', 'tblTempVendorCDR_20' ) end [2025-02-14 05:49:18] Production.INFO: ProcessCDR(1,14471710,1,1,2) [2025-02-14 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471710', 'tblTempUsageDetail_20' ) start [2025-02-14 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471710', 'tblTempUsageDetail_20' ) end [2025-02-14 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:49:21] Production.INFO: ==18982== Releasing lock... [2025-02-14 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:50:06 [end_date_ymd] => 2025-02-14 05:50:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:50:06' and `end` < '2025-02-14 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-02-14 05:50:19] Production.INFO: count ==296 [2025-02-14 05:50:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:50:06 - End Time 2025-02-14 05:50:06 [2025-02-14 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471716', 'tblTempUsageDetail_20' ) start [2025-02-14 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471716', 'tblTempUsageDetail_20' ) end [2025-02-14 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471716', 'tblTempVendorCDR_20' ) start [2025-02-14 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471716', 'tblTempVendorCDR_20' ) end [2025-02-14 05:50:19] Production.INFO: ProcessCDR(1,14471716,1,1,2) [2025-02-14 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471716', 'tblTempUsageDetail_20' ) start [2025-02-14 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471716', 'tblTempUsageDetail_20' ) end [2025-02-14 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:50:22] Production.INFO: ==19059== Releasing lock... [2025-02-14 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:50:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:51:04 [end_date_ymd] => 2025-02-14 05:51:04 [RateCDR] => 1 ) [2025-02-14 05:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 02:51:04' and `end` < '2025-02-14 05:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:51:19] Production.INFO: count ==292 [2025-02-14 05:51:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:51:04 - End Time 2025-02-14 05:51:04 [2025-02-14 05:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471721', 'tblTempUsageDetail_20' ) start [2025-02-14 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471721', 'tblTempUsageDetail_20' ) end [2025-02-14 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471721', 'tblTempVendorCDR_20' ) start [2025-02-14 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471721', 'tblTempVendorCDR_20' ) end [2025-02-14 05:51:19] Production.INFO: ProcessCDR(1,14471721,1,1,2) [2025-02-14 05:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471721', 'tblTempUsageDetail_20' ) start [2025-02-14 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471721', 'tblTempUsageDetail_20' ) end [2025-02-14 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:51:22] Production.INFO: ==19142== Releasing lock... [2025-02-14 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:51:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:52:05 [end_date_ymd] => 2025-02-14 05:52:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:52:05' and `end` < '2025-02-14 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-02-14 05:52:18] Production.INFO: count ==294 [2025-02-14 05:52:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:52:05 - End Time 2025-02-14 05:52:05 [2025-02-14 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471726', 'tblTempUsageDetail_20' ) start [2025-02-14 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471726', 'tblTempUsageDetail_20' ) end [2025-02-14 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471726', 'tblTempVendorCDR_20' ) start [2025-02-14 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471726', 'tblTempVendorCDR_20' ) end [2025-02-14 05:52:18] Production.INFO: ProcessCDR(1,14471726,1,1,2) [2025-02-14 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471726', 'tblTempUsageDetail_20' ) start [2025-02-14 05:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471726', 'tblTempUsageDetail_20' ) end [2025-02-14 05:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:52:23] Production.INFO: ==19214== Releasing lock... [2025-02-14 05:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:52:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:53:05 [end_date_ymd] => 2025-02-14 05:53:05 [RateCDR] => 1 ) [2025-02-14 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 02:53:05' and `end` < '2025-02-14 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:53:19] Production.INFO: count ==297 [2025-02-14 05:53:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:53:05 - End Time 2025-02-14 05:53:05 [2025-02-14 05:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471731', 'tblTempUsageDetail_20' ) start [2025-02-14 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471731', 'tblTempUsageDetail_20' ) end [2025-02-14 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471731', 'tblTempVendorCDR_20' ) start [2025-02-14 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471731', 'tblTempVendorCDR_20' ) end [2025-02-14 05:53:19] Production.INFO: ProcessCDR(1,14471731,1,1,2) [2025-02-14 05:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471731', 'tblTempUsageDetail_20' ) start [2025-02-14 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471731', 'tblTempUsageDetail_20' ) end [2025-02-14 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:53:23] Production.INFO: ==19291== Releasing lock... [2025-02-14 05:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:53:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:54:05 [end_date_ymd] => 2025-02-14 05:54:05 [RateCDR] => 1 ) [2025-02-14 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 02:54:05' and `end` < '2025-02-14 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:54:19] Production.INFO: count ==297 [2025-02-14 05:54:20] Production.ERROR: pbx CDR StartTime 2025-02-14 02:54:05 - End Time 2025-02-14 05:54:05 [2025-02-14 05:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471736', 'tblTempUsageDetail_20' ) start [2025-02-14 05:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471736', 'tblTempUsageDetail_20' ) end [2025-02-14 05:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471736', 'tblTempVendorCDR_20' ) start [2025-02-14 05:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471736', 'tblTempVendorCDR_20' ) end [2025-02-14 05:54:20] Production.INFO: ProcessCDR(1,14471736,1,1,2) [2025-02-14 05:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471736', 'tblTempUsageDetail_20' ) start [2025-02-14 05:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471736', 'tblTempUsageDetail_20' ) end [2025-02-14 05:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:54:23] Production.INFO: ==19378== Releasing lock... [2025-02-14 05:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:54:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:55:05 [end_date_ymd] => 2025-02-14 05:55:05 [RateCDR] => 1 ) [2025-02-14 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 02:55:05' and `end` < '2025-02-14 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:55:18] Production.INFO: count ==297 [2025-02-14 05:55:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:55:05 - End Time 2025-02-14 05:55:05 [2025-02-14 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471741', 'tblTempUsageDetail_20' ) start [2025-02-14 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471741', 'tblTempUsageDetail_20' ) end [2025-02-14 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471741', 'tblTempVendorCDR_20' ) start [2025-02-14 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471741', 'tblTempVendorCDR_20' ) end [2025-02-14 05:55:18] Production.INFO: ProcessCDR(1,14471741,1,1,2) [2025-02-14 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471741', 'tblTempUsageDetail_20' ) start [2025-02-14 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471741', 'tblTempUsageDetail_20' ) end [2025-02-14 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:55:21] Production.INFO: ==19457== Releasing lock... [2025-02-14 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:55:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:56:05 [end_date_ymd] => 2025-02-14 05:56:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:56:05' and `end` < '2025-02-14 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-02-14 05:56:18] Production.INFO: count ==297 [2025-02-14 05:56:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:56:05 - End Time 2025-02-14 05:56:05 [2025-02-14 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471746', 'tblTempUsageDetail_20' ) start [2025-02-14 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471746', 'tblTempUsageDetail_20' ) end [2025-02-14 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471746', 'tblTempVendorCDR_20' ) start [2025-02-14 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471746', 'tblTempVendorCDR_20' ) end [2025-02-14 05:56:18] Production.INFO: ProcessCDR(1,14471746,1,1,2) [2025-02-14 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471746', 'tblTempUsageDetail_20' ) start [2025-02-14 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471746', 'tblTempUsageDetail_20' ) end [2025-02-14 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:56:21] Production.INFO: ==19539== Releasing lock... [2025-02-14 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:56:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:57:05 [end_date_ymd] => 2025-02-14 05:57:05 [RateCDR] => 1 ) [2025-02-14 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 02:57:05' and `end` < '2025-02-14 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 05:57:19] Production.INFO: count ==297 [2025-02-14 05:57:19] Production.ERROR: pbx CDR StartTime 2025-02-14 02:57:05 - End Time 2025-02-14 05:57:05 [2025-02-14 05:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471751', 'tblTempUsageDetail_20' ) start [2025-02-14 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471751', 'tblTempUsageDetail_20' ) end [2025-02-14 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471751', 'tblTempVendorCDR_20' ) start [2025-02-14 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471751', 'tblTempVendorCDR_20' ) end [2025-02-14 05:57:19] Production.INFO: ProcessCDR(1,14471751,1,1,2) [2025-02-14 05:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471751', 'tblTempUsageDetail_20' ) start [2025-02-14 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471751', 'tblTempUsageDetail_20' ) end [2025-02-14 05:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:57:22] Production.INFO: ==19625== Releasing lock... [2025-02-14 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:57:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:58:04 [end_date_ymd] => 2025-02-14 05:58:04 [RateCDR] => 1 ) [2025-02-14 05: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-02-14 02:58:04' and `end` < '2025-02-14 05: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-02-14 05:58:18] Production.INFO: count ==297 [2025-02-14 05:58:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:58:04 - End Time 2025-02-14 05:58:04 [2025-02-14 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471756', 'tblTempUsageDetail_20' ) start [2025-02-14 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471756', 'tblTempUsageDetail_20' ) end [2025-02-14 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471756', 'tblTempVendorCDR_20' ) start [2025-02-14 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471756', 'tblTempVendorCDR_20' ) end [2025-02-14 05:58:18] Production.INFO: ProcessCDR(1,14471756,1,1,2) [2025-02-14 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471756', 'tblTempUsageDetail_20' ) start [2025-02-14 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471756', 'tblTempUsageDetail_20' ) end [2025-02-14 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:58:21] Production.INFO: ==19711== Releasing lock... [2025-02-14 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:58:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 02:59:05 [end_date_ymd] => 2025-02-14 05:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 02:59:05' and `end` < '2025-02-14 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-02-14 05:59:18] Production.INFO: count ==298 [2025-02-14 05:59:18] Production.ERROR: pbx CDR StartTime 2025-02-14 02:59:05 - End Time 2025-02-14 05:59:05 [2025-02-14 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471761', 'tblTempUsageDetail_20' ) start [2025-02-14 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471761', 'tblTempUsageDetail_20' ) end [2025-02-14 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471761', 'tblTempVendorCDR_20' ) start [2025-02-14 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471761', 'tblTempVendorCDR_20' ) end [2025-02-14 05:59:18] Production.INFO: ProcessCDR(1,14471761,1,1,2) [2025-02-14 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471761', 'tblTempUsageDetail_20' ) start [2025-02-14 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471761', 'tblTempUsageDetail_20' ) end [2025-02-14 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 05:59:22] Production.INFO: ==19838== Releasing lock... [2025-02-14 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 05:59:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:00:06 [end_date_ymd] => 2025-02-14 06:00:06 [RateCDR] => 1 ) [2025-02-14 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 03:00:06' and `end` < '2025-02-14 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 06:00:20] Production.INFO: count ==299 [2025-02-14 06:00:20] Production.ERROR: pbx CDR StartTime 2025-02-14 03:00:06 - End Time 2025-02-14 06:00:06 [2025-02-14 06:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471767', 'tblTempUsageDetail_20' ) start [2025-02-14 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471767', 'tblTempUsageDetail_20' ) end [2025-02-14 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471767', 'tblTempVendorCDR_20' ) start [2025-02-14 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471767', 'tblTempVendorCDR_20' ) end [2025-02-14 06:00:20] Production.INFO: ProcessCDR(1,14471767,1,1,2) [2025-02-14 06:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471767', 'tblTempUsageDetail_20' ) start [2025-02-14 06:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471767', 'tblTempUsageDetail_20' ) end [2025-02-14 06:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:00:24] Production.INFO: ==19932== Releasing lock... [2025-02-14 06:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:00:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:01:05 [end_date_ymd] => 2025-02-14 06:01:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:01:05' and `end` < '2025-02-14 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-02-14 06:01:19] Production.INFO: count ==294 [2025-02-14 06:01:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:01:05 - End Time 2025-02-14 06:01:05 [2025-02-14 06:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471772', 'tblTempUsageDetail_20' ) start [2025-02-14 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471772', 'tblTempUsageDetail_20' ) end [2025-02-14 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471772', 'tblTempVendorCDR_20' ) start [2025-02-14 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471772', 'tblTempVendorCDR_20' ) end [2025-02-14 06:01:19] Production.INFO: ProcessCDR(1,14471772,1,1,2) [2025-02-14 06:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471772', 'tblTempUsageDetail_20' ) start [2025-02-14 06:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471772', 'tblTempUsageDetail_20' ) end [2025-02-14 06:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:01:24] Production.INFO: ==20039== Releasing lock... [2025-02-14 06:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:01:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:02:05 [end_date_ymd] => 2025-02-14 06:02:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:02:05' and `end` < '2025-02-14 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-02-14 06:02:18] Production.INFO: count ==290 [2025-02-14 06:02:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:02:05 - End Time 2025-02-14 06:02:05 [2025-02-14 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471777', 'tblTempUsageDetail_20' ) start [2025-02-14 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471777', 'tblTempUsageDetail_20' ) end [2025-02-14 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471777', 'tblTempVendorCDR_20' ) start [2025-02-14 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471777', 'tblTempVendorCDR_20' ) end [2025-02-14 06:02:18] Production.INFO: ProcessCDR(1,14471777,1,1,2) [2025-02-14 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471777', 'tblTempUsageDetail_20' ) start [2025-02-14 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471777', 'tblTempUsageDetail_20' ) end [2025-02-14 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:02:22] Production.INFO: ==20126== Releasing lock... [2025-02-14 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:02:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:03:05 [end_date_ymd] => 2025-02-14 06:03:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:03:05' and `end` < '2025-02-14 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-02-14 06:03:19] Production.INFO: count ==290 [2025-02-14 06:03:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:03:05 - End Time 2025-02-14 06:03:05 [2025-02-14 06:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471782', 'tblTempUsageDetail_20' ) start [2025-02-14 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471782', 'tblTempUsageDetail_20' ) end [2025-02-14 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471782', 'tblTempVendorCDR_20' ) start [2025-02-14 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471782', 'tblTempVendorCDR_20' ) end [2025-02-14 06:03:19] Production.INFO: ProcessCDR(1,14471782,1,1,2) [2025-02-14 06:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471782', 'tblTempUsageDetail_20' ) start [2025-02-14 06:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471782', 'tblTempUsageDetail_20' ) end [2025-02-14 06:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:03:23] Production.INFO: ==20217== Releasing lock... [2025-02-14 06:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:03:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:04:05 [end_date_ymd] => 2025-02-14 06:04:05 [RateCDR] => 1 ) [2025-02-14 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 03:04:05' and `end` < '2025-02-14 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 06:04:19] Production.INFO: count ==290 [2025-02-14 06:04:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:04:05 - End Time 2025-02-14 06:04:05 [2025-02-14 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471787', 'tblTempUsageDetail_20' ) start [2025-02-14 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471787', 'tblTempUsageDetail_20' ) end [2025-02-14 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471787', 'tblTempVendorCDR_20' ) start [2025-02-14 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471787', 'tblTempVendorCDR_20' ) end [2025-02-14 06:04:19] Production.INFO: ProcessCDR(1,14471787,1,1,2) [2025-02-14 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471787', 'tblTempUsageDetail_20' ) start [2025-02-14 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471787', 'tblTempUsageDetail_20' ) end [2025-02-14 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:04:22] Production.INFO: ==20313== Releasing lock... [2025-02-14 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:04:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:05:05 [end_date_ymd] => 2025-02-14 06:05:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:05:05' and `end` < '2025-02-14 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-02-14 06:05:18] Production.INFO: count ==290 [2025-02-14 06:05:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:05:05 - End Time 2025-02-14 06:05:05 [2025-02-14 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471792', 'tblTempUsageDetail_20' ) start [2025-02-14 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471792', 'tblTempUsageDetail_20' ) end [2025-02-14 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471792', 'tblTempVendorCDR_20' ) start [2025-02-14 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471792', 'tblTempVendorCDR_20' ) end [2025-02-14 06:05:18] Production.INFO: ProcessCDR(1,14471792,1,1,2) [2025-02-14 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471792', 'tblTempUsageDetail_20' ) start [2025-02-14 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471792', 'tblTempUsageDetail_20' ) end [2025-02-14 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:05:21] Production.INFO: ==20402== Releasing lock... [2025-02-14 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:05:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:06:05 [end_date_ymd] => 2025-02-14 06:06:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:06:05' and `end` < '2025-02-14 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-02-14 06:06:18] Production.INFO: count ==290 [2025-02-14 06:06:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:06:05 - End Time 2025-02-14 06:06:05 [2025-02-14 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471797', 'tblTempUsageDetail_20' ) start [2025-02-14 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471797', 'tblTempUsageDetail_20' ) end [2025-02-14 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471797', 'tblTempVendorCDR_20' ) start [2025-02-14 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471797', 'tblTempVendorCDR_20' ) end [2025-02-14 06:06:18] Production.INFO: ProcessCDR(1,14471797,1,1,2) [2025-02-14 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471797', 'tblTempUsageDetail_20' ) start [2025-02-14 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471797', 'tblTempUsageDetail_20' ) end [2025-02-14 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:06:21] Production.INFO: ==20491== Releasing lock... [2025-02-14 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:06:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:07:06 [end_date_ymd] => 2025-02-14 06:07:06 [RateCDR] => 1 ) [2025-02-14 06:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 03:07:06' and `end` < '2025-02-14 06:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 06:07:19] Production.INFO: count ==290 [2025-02-14 06:07:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:07:06 - End Time 2025-02-14 06:07:06 [2025-02-14 06:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471802', 'tblTempUsageDetail_20' ) start [2025-02-14 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471802', 'tblTempUsageDetail_20' ) end [2025-02-14 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471802', 'tblTempVendorCDR_20' ) start [2025-02-14 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471802', 'tblTempVendorCDR_20' ) end [2025-02-14 06:07:19] Production.INFO: ProcessCDR(1,14471802,1,1,2) [2025-02-14 06:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471802', 'tblTempUsageDetail_20' ) start [2025-02-14 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471802', 'tblTempUsageDetail_20' ) end [2025-02-14 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:07:22] Production.INFO: ==20583== Releasing lock... [2025-02-14 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:07:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:08:05 [end_date_ymd] => 2025-02-14 06:08:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:08:05' and `end` < '2025-02-14 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-02-14 06:08:19] Production.INFO: count ==290 [2025-02-14 06:08:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:08:05 - End Time 2025-02-14 06:08:05 [2025-02-14 06:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471807', 'tblTempUsageDetail_20' ) start [2025-02-14 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471807', 'tblTempUsageDetail_20' ) end [2025-02-14 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471807', 'tblTempVendorCDR_20' ) start [2025-02-14 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471807', 'tblTempVendorCDR_20' ) end [2025-02-14 06:08:19] Production.INFO: ProcessCDR(1,14471807,1,1,2) [2025-02-14 06:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471807', 'tblTempUsageDetail_20' ) start [2025-02-14 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471807', 'tblTempUsageDetail_20' ) end [2025-02-14 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:08:22] Production.INFO: ==20673== Releasing lock... [2025-02-14 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:08:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:09:05 [end_date_ymd] => 2025-02-14 06:09:05 [RateCDR] => 1 ) [2025-02-14 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 03:09:05' and `end` < '2025-02-14 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 06:09:18] Production.INFO: count ==290 [2025-02-14 06:09:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:09:05 - End Time 2025-02-14 06:09:05 [2025-02-14 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471812', 'tblTempUsageDetail_20' ) start [2025-02-14 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471812', 'tblTempUsageDetail_20' ) end [2025-02-14 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471812', 'tblTempVendorCDR_20' ) start [2025-02-14 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471812', 'tblTempVendorCDR_20' ) end [2025-02-14 06:09:18] Production.INFO: ProcessCDR(1,14471812,1,1,2) [2025-02-14 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471812', 'tblTempUsageDetail_20' ) start [2025-02-14 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471812', 'tblTempUsageDetail_20' ) end [2025-02-14 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:09:21] Production.INFO: ==20764== Releasing lock... [2025-02-14 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:09:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:10:06 [end_date_ymd] => 2025-02-14 06:10:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:10:06' and `end` < '2025-02-14 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-02-14 06:10:19] Production.INFO: count ==287 [2025-02-14 06:10:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:10:06 - End Time 2025-02-14 06:10:06 [2025-02-14 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471817', 'tblTempUsageDetail_20' ) start [2025-02-14 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471817', 'tblTempUsageDetail_20' ) end [2025-02-14 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471817', 'tblTempVendorCDR_20' ) start [2025-02-14 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471817', 'tblTempVendorCDR_20' ) end [2025-02-14 06:10:19] Production.INFO: ProcessCDR(1,14471817,1,1,2) [2025-02-14 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471817', 'tblTempUsageDetail_20' ) start [2025-02-14 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471817', 'tblTempUsageDetail_20' ) end [2025-02-14 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:10:22] Production.INFO: ==20853== Releasing lock... [2025-02-14 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:11:05 [end_date_ymd] => 2025-02-14 06:11:05 [RateCDR] => 1 ) [2025-02-14 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 03:11:05' and `end` < '2025-02-14 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 06:11:18] Production.INFO: count ==287 [2025-02-14 06:11:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:11:05 - End Time 2025-02-14 06:11:05 [2025-02-14 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471823', 'tblTempUsageDetail_20' ) start [2025-02-14 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471823', 'tblTempUsageDetail_20' ) end [2025-02-14 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471823', 'tblTempVendorCDR_20' ) start [2025-02-14 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471823', 'tblTempVendorCDR_20' ) end [2025-02-14 06:11:18] Production.INFO: ProcessCDR(1,14471823,1,1,2) [2025-02-14 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471823', 'tblTempUsageDetail_20' ) start [2025-02-14 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471823', 'tblTempUsageDetail_20' ) end [2025-02-14 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:11:21] Production.INFO: ==20949== Releasing lock... [2025-02-14 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:11:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:12:05 [end_date_ymd] => 2025-02-14 06:12:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:12:05' and `end` < '2025-02-14 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-02-14 06:12:18] Production.INFO: count ==287 [2025-02-14 06:12:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:12:05 - End Time 2025-02-14 06:12:05 [2025-02-14 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471828', 'tblTempUsageDetail_20' ) start [2025-02-14 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471828', 'tblTempUsageDetail_20' ) end [2025-02-14 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471828', 'tblTempVendorCDR_20' ) start [2025-02-14 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471828', 'tblTempVendorCDR_20' ) end [2025-02-14 06:12:18] Production.INFO: ProcessCDR(1,14471828,1,1,2) [2025-02-14 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471828', 'tblTempUsageDetail_20' ) start [2025-02-14 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471828', 'tblTempUsageDetail_20' ) end [2025-02-14 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:12:21] Production.INFO: ==21040== Releasing lock... [2025-02-14 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:13:05 [end_date_ymd] => 2025-02-14 06:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:13:05' and `end` < '2025-02-14 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-02-14 06:13:18] Production.INFO: count ==287 [2025-02-14 06:13:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:13:05 - End Time 2025-02-14 06:13:05 [2025-02-14 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471833', 'tblTempUsageDetail_20' ) start [2025-02-14 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471833', 'tblTempUsageDetail_20' ) end [2025-02-14 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471833', 'tblTempVendorCDR_20' ) start [2025-02-14 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471833', 'tblTempVendorCDR_20' ) end [2025-02-14 06:13:18] Production.INFO: ProcessCDR(1,14471833,1,1,2) [2025-02-14 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471833', 'tblTempUsageDetail_20' ) start [2025-02-14 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471833', 'tblTempUsageDetail_20' ) end [2025-02-14 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:13:21] Production.INFO: ==21138== Releasing lock... [2025-02-14 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:13:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:14:05 [end_date_ymd] => 2025-02-14 06:14:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:14:05' and `end` < '2025-02-14 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-02-14 06:14:18] Production.INFO: count ==287 [2025-02-14 06:14:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:14:05 - End Time 2025-02-14 06:14:05 [2025-02-14 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471838', 'tblTempUsageDetail_20' ) start [2025-02-14 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471838', 'tblTempUsageDetail_20' ) end [2025-02-14 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471838', 'tblTempVendorCDR_20' ) start [2025-02-14 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471838', 'tblTempVendorCDR_20' ) end [2025-02-14 06:14:18] Production.INFO: ProcessCDR(1,14471838,1,1,2) [2025-02-14 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471838', 'tblTempUsageDetail_20' ) start [2025-02-14 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471838', 'tblTempUsageDetail_20' ) end [2025-02-14 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:14:22] Production.INFO: ==21226== Releasing lock... [2025-02-14 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:14:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:15:05 [end_date_ymd] => 2025-02-14 06:15:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:15:05' and `end` < '2025-02-14 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-02-14 06:15:18] Production.INFO: count ==287 [2025-02-14 06:15:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:15:05 - End Time 2025-02-14 06:15:05 [2025-02-14 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471843', 'tblTempUsageDetail_20' ) start [2025-02-14 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471843', 'tblTempUsageDetail_20' ) end [2025-02-14 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471843', 'tblTempVendorCDR_20' ) start [2025-02-14 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471843', 'tblTempVendorCDR_20' ) end [2025-02-14 06:15:18] Production.INFO: ProcessCDR(1,14471843,1,1,2) [2025-02-14 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471843', 'tblTempUsageDetail_20' ) start [2025-02-14 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471843', 'tblTempUsageDetail_20' ) end [2025-02-14 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:15:21] Production.INFO: ==21359== Releasing lock... [2025-02-14 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:15:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:16:05 [end_date_ymd] => 2025-02-14 06:16:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:16:05' and `end` < '2025-02-14 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-02-14 06:16:18] Production.INFO: count ==287 [2025-02-14 06:16:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:16:05 - End Time 2025-02-14 06:16:05 [2025-02-14 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471848', 'tblTempUsageDetail_20' ) start [2025-02-14 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471848', 'tblTempUsageDetail_20' ) end [2025-02-14 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471848', 'tblTempVendorCDR_20' ) start [2025-02-14 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471848', 'tblTempVendorCDR_20' ) end [2025-02-14 06:16:18] Production.INFO: ProcessCDR(1,14471848,1,1,2) [2025-02-14 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471848', 'tblTempUsageDetail_20' ) start [2025-02-14 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471848', 'tblTempUsageDetail_20' ) end [2025-02-14 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:16:21] Production.INFO: ==21443== Releasing lock... [2025-02-14 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:16:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:17:05 [end_date_ymd] => 2025-02-14 06:17:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:17:05' and `end` < '2025-02-14 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-02-14 06:17:19] Production.INFO: count ==287 [2025-02-14 06:17:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:17:05 - End Time 2025-02-14 06:17:05 [2025-02-14 06:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471853', 'tblTempUsageDetail_20' ) start [2025-02-14 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471853', 'tblTempUsageDetail_20' ) end [2025-02-14 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471853', 'tblTempVendorCDR_20' ) start [2025-02-14 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471853', 'tblTempVendorCDR_20' ) end [2025-02-14 06:17:19] Production.INFO: ProcessCDR(1,14471853,1,1,2) [2025-02-14 06:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471853', 'tblTempUsageDetail_20' ) start [2025-02-14 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471853', 'tblTempUsageDetail_20' ) end [2025-02-14 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:17:22] Production.INFO: ==21539== Releasing lock... [2025-02-14 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:17:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:18:05 [end_date_ymd] => 2025-02-14 06:18:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:18:05' and `end` < '2025-02-14 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-02-14 06:18:18] Production.INFO: count ==287 [2025-02-14 06:18:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:18:05 - End Time 2025-02-14 06:18:05 [2025-02-14 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471858', 'tblTempUsageDetail_20' ) start [2025-02-14 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471858', 'tblTempUsageDetail_20' ) end [2025-02-14 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471858', 'tblTempVendorCDR_20' ) start [2025-02-14 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471858', 'tblTempVendorCDR_20' ) end [2025-02-14 06:18:18] Production.INFO: ProcessCDR(1,14471858,1,1,2) [2025-02-14 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471858', 'tblTempUsageDetail_20' ) start [2025-02-14 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471858', 'tblTempUsageDetail_20' ) end [2025-02-14 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:18:22] Production.INFO: ==21637== Releasing lock... [2025-02-14 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:18:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:19:05 [end_date_ymd] => 2025-02-14 06:19:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:19:05' and `end` < '2025-02-14 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-02-14 06:19:18] Production.INFO: count ==287 [2025-02-14 06:19:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:19:05 - End Time 2025-02-14 06:19:05 [2025-02-14 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471863', 'tblTempUsageDetail_20' ) start [2025-02-14 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471863', 'tblTempUsageDetail_20' ) end [2025-02-14 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471863', 'tblTempVendorCDR_20' ) start [2025-02-14 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471863', 'tblTempVendorCDR_20' ) end [2025-02-14 06:19:18] Production.INFO: ProcessCDR(1,14471863,1,1,2) [2025-02-14 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471863', 'tblTempUsageDetail_20' ) start [2025-02-14 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471863', 'tblTempUsageDetail_20' ) end [2025-02-14 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:19:21] Production.INFO: ==21721== Releasing lock... [2025-02-14 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:20:06 [end_date_ymd] => 2025-02-14 06:20:06 [RateCDR] => 1 ) [2025-02-14 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 03:20:06' and `end` < '2025-02-14 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 06:20:20] Production.INFO: count ==289 [2025-02-14 06:20:20] Production.ERROR: pbx CDR StartTime 2025-02-14 03:20:06 - End Time 2025-02-14 06:20:06 [2025-02-14 06:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471869', 'tblTempUsageDetail_20' ) start [2025-02-14 06:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471869', 'tblTempUsageDetail_20' ) end [2025-02-14 06:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471869', 'tblTempVendorCDR_20' ) start [2025-02-14 06:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471869', 'tblTempVendorCDR_20' ) end [2025-02-14 06:20:20] Production.INFO: ProcessCDR(1,14471869,1,1,2) [2025-02-14 06:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471869', 'tblTempUsageDetail_20' ) start [2025-02-14 06:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471869', 'tblTempUsageDetail_20' ) end [2025-02-14 06:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:20:23] Production.INFO: ==21817== Releasing lock... [2025-02-14 06:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:20:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:21:05 [end_date_ymd] => 2025-02-14 06:21:05 [RateCDR] => 1 ) [2025-02-14 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 03:21:05' and `end` < '2025-02-14 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 06:21:18] Production.INFO: count ==285 [2025-02-14 06:21:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:21:05 - End Time 2025-02-14 06:21:05 [2025-02-14 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471874', 'tblTempUsageDetail_20' ) start [2025-02-14 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471874', 'tblTempUsageDetail_20' ) end [2025-02-14 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471874', 'tblTempVendorCDR_20' ) start [2025-02-14 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471874', 'tblTempVendorCDR_20' ) end [2025-02-14 06:21:18] Production.INFO: ProcessCDR(1,14471874,1,1,2) [2025-02-14 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471874', 'tblTempUsageDetail_20' ) start [2025-02-14 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471874', 'tblTempUsageDetail_20' ) end [2025-02-14 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:21:21] Production.INFO: ==21905== Releasing lock... [2025-02-14 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:22:06 [end_date_ymd] => 2025-02-14 06:22:06 [RateCDR] => 1 ) [2025-02-14 06:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 03:22:06' and `end` < '2025-02-14 06:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 06:22:19] Production.INFO: count ==285 [2025-02-14 06:22:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:22:06 - End Time 2025-02-14 06:22:06 [2025-02-14 06:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471879', 'tblTempUsageDetail_20' ) start [2025-02-14 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471879', 'tblTempUsageDetail_20' ) end [2025-02-14 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471879', 'tblTempVendorCDR_20' ) start [2025-02-14 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471879', 'tblTempVendorCDR_20' ) end [2025-02-14 06:22:19] Production.INFO: ProcessCDR(1,14471879,1,1,2) [2025-02-14 06:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471879', 'tblTempUsageDetail_20' ) start [2025-02-14 06:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471879', 'tblTempUsageDetail_20' ) end [2025-02-14 06:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:22:23] Production.INFO: ==21996== Releasing lock... [2025-02-14 06:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:22:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:23:05 [end_date_ymd] => 2025-02-14 06:23:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:23:05' and `end` < '2025-02-14 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-02-14 06:23:19] Production.INFO: count ==284 [2025-02-14 06:23:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:23:05 - End Time 2025-02-14 06:23:05 [2025-02-14 06:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471884', 'tblTempUsageDetail_20' ) start [2025-02-14 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471884', 'tblTempUsageDetail_20' ) end [2025-02-14 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471884', 'tblTempVendorCDR_20' ) start [2025-02-14 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471884', 'tblTempVendorCDR_20' ) end [2025-02-14 06:23:19] Production.INFO: ProcessCDR(1,14471884,1,1,2) [2025-02-14 06:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471884', 'tblTempUsageDetail_20' ) start [2025-02-14 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471884', 'tblTempUsageDetail_20' ) end [2025-02-14 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:23:22] Production.INFO: ==22090== Releasing lock... [2025-02-14 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:23:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:24:05 [end_date_ymd] => 2025-02-14 06:24:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:24:05' and `end` < '2025-02-14 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-02-14 06:24:18] Production.INFO: count ==284 [2025-02-14 06:24:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:24:05 - End Time 2025-02-14 06:24:05 [2025-02-14 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471889', 'tblTempUsageDetail_20' ) start [2025-02-14 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471889', 'tblTempUsageDetail_20' ) end [2025-02-14 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471889', 'tblTempVendorCDR_20' ) start [2025-02-14 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471889', 'tblTempVendorCDR_20' ) end [2025-02-14 06:24:18] Production.INFO: ProcessCDR(1,14471889,1,1,2) [2025-02-14 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471889', 'tblTempUsageDetail_20' ) start [2025-02-14 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471889', 'tblTempUsageDetail_20' ) end [2025-02-14 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:24:21] Production.INFO: ==22176== Releasing lock... [2025-02-14 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:25:05 [end_date_ymd] => 2025-02-14 06:25:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:25:05' and `end` < '2025-02-14 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-02-14 06:25:18] Production.INFO: count ==284 [2025-02-14 06:25:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:25:05 - End Time 2025-02-14 06:25:05 [2025-02-14 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471894', 'tblTempUsageDetail_20' ) start [2025-02-14 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471894', 'tblTempUsageDetail_20' ) end [2025-02-14 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471894', 'tblTempVendorCDR_20' ) start [2025-02-14 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471894', 'tblTempVendorCDR_20' ) end [2025-02-14 06:25:18] Production.INFO: ProcessCDR(1,14471894,1,1,2) [2025-02-14 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471894', 'tblTempUsageDetail_20' ) start [2025-02-14 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471894', 'tblTempUsageDetail_20' ) end [2025-02-14 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:25:21] Production.INFO: ==22267== Releasing lock... [2025-02-14 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:26:05 [end_date_ymd] => 2025-02-14 06:26:05 [RateCDR] => 1 ) [2025-02-14 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 03:26:05' and `end` < '2025-02-14 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 06:26:19] Production.INFO: count ==284 [2025-02-14 06:26:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:26:05 - End Time 2025-02-14 06:26:05 [2025-02-14 06:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471899', 'tblTempUsageDetail_20' ) start [2025-02-14 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471899', 'tblTempUsageDetail_20' ) end [2025-02-14 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471899', 'tblTempVendorCDR_20' ) start [2025-02-14 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471899', 'tblTempVendorCDR_20' ) end [2025-02-14 06:26:19] Production.INFO: ProcessCDR(1,14471899,1,1,2) [2025-02-14 06:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471899', 'tblTempUsageDetail_20' ) start [2025-02-14 06:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471899', 'tblTempUsageDetail_20' ) end [2025-02-14 06:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:26:23] Production.INFO: ==22354== Releasing lock... [2025-02-14 06:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:26:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:27:05 [end_date_ymd] => 2025-02-14 06:27:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:27:05' and `end` < '2025-02-14 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-02-14 06:27:19] Production.INFO: count ==284 [2025-02-14 06:27:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:27:05 - End Time 2025-02-14 06:27:05 [2025-02-14 06:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471904', 'tblTempUsageDetail_20' ) start [2025-02-14 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471904', 'tblTempUsageDetail_20' ) end [2025-02-14 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471904', 'tblTempVendorCDR_20' ) start [2025-02-14 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471904', 'tblTempVendorCDR_20' ) end [2025-02-14 06:27:19] Production.INFO: ProcessCDR(1,14471904,1,1,2) [2025-02-14 06:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471904', 'tblTempUsageDetail_20' ) start [2025-02-14 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471904', 'tblTempUsageDetail_20' ) end [2025-02-14 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:27:22] Production.INFO: ==22441== Releasing lock... [2025-02-14 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:27:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:28:05 [end_date_ymd] => 2025-02-14 06:28:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:28:05' and `end` < '2025-02-14 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-02-14 06:28:19] Production.INFO: count ==280 [2025-02-14 06:28:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:28:05 - End Time 2025-02-14 06:28:05 [2025-02-14 06:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471909', 'tblTempUsageDetail_20' ) start [2025-02-14 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471909', 'tblTempUsageDetail_20' ) end [2025-02-14 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471909', 'tblTempVendorCDR_20' ) start [2025-02-14 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471909', 'tblTempVendorCDR_20' ) end [2025-02-14 06:28:19] Production.INFO: ProcessCDR(1,14471909,1,1,2) [2025-02-14 06:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471909', 'tblTempUsageDetail_20' ) start [2025-02-14 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471909', 'tblTempUsageDetail_20' ) end [2025-02-14 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:28:22] Production.INFO: ==22527== Releasing lock... [2025-02-14 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:28:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:29:05 [end_date_ymd] => 2025-02-14 06:29:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:29:05' and `end` < '2025-02-14 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-02-14 06:29:18] Production.INFO: count ==280 [2025-02-14 06:29:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:29:05 - End Time 2025-02-14 06:29:05 [2025-02-14 06:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471914', 'tblTempUsageDetail_20' ) start [2025-02-14 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471914', 'tblTempUsageDetail_20' ) end [2025-02-14 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471914', 'tblTempVendorCDR_20' ) start [2025-02-14 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471914', 'tblTempVendorCDR_20' ) end [2025-02-14 06:29:19] Production.INFO: ProcessCDR(1,14471914,1,1,2) [2025-02-14 06:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471914', 'tblTempUsageDetail_20' ) start [2025-02-14 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471914', 'tblTempUsageDetail_20' ) end [2025-02-14 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:29:22] Production.INFO: ==22613== Releasing lock... [2025-02-14 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:29:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:30:06 [end_date_ymd] => 2025-02-14 06:30:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:30:06' and `end` < '2025-02-14 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-02-14 06:30:20] Production.INFO: count ==280 [2025-02-14 06:30:20] Production.ERROR: pbx CDR StartTime 2025-02-14 03:30:06 - End Time 2025-02-14 06:30:06 [2025-02-14 06:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471919', 'tblTempUsageDetail_20' ) start [2025-02-14 06:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471919', 'tblTempUsageDetail_20' ) end [2025-02-14 06:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471919', 'tblTempVendorCDR_20' ) start [2025-02-14 06:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471919', 'tblTempVendorCDR_20' ) end [2025-02-14 06:30:20] Production.INFO: ProcessCDR(1,14471919,1,1,2) [2025-02-14 06:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471919', 'tblTempUsageDetail_20' ) start [2025-02-14 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471919', 'tblTempUsageDetail_20' ) end [2025-02-14 06:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:30:23] Production.INFO: ==22745== Releasing lock... [2025-02-14 06:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:30:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:31:05 [end_date_ymd] => 2025-02-14 06:31:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:31:05' and `end` < '2025-02-14 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-02-14 06:31:18] Production.INFO: count ==281 [2025-02-14 06:31:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:31:05 - End Time 2025-02-14 06:31:05 [2025-02-14 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471925', 'tblTempUsageDetail_20' ) start [2025-02-14 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471925', 'tblTempUsageDetail_20' ) end [2025-02-14 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471925', 'tblTempVendorCDR_20' ) start [2025-02-14 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471925', 'tblTempVendorCDR_20' ) end [2025-02-14 06:31:18] Production.INFO: ProcessCDR(1,14471925,1,1,2) [2025-02-14 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471925', 'tblTempUsageDetail_20' ) start [2025-02-14 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471925', 'tblTempUsageDetail_20' ) end [2025-02-14 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:31:21] Production.INFO: ==22828== Releasing lock... [2025-02-14 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:31:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:32:05 [end_date_ymd] => 2025-02-14 06:32:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:32:05' and `end` < '2025-02-14 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-02-14 06:32:18] Production.INFO: count ==281 [2025-02-14 06:32:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:32:05 - End Time 2025-02-14 06:32:05 [2025-02-14 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471930', 'tblTempUsageDetail_20' ) start [2025-02-14 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471930', 'tblTempUsageDetail_20' ) end [2025-02-14 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471930', 'tblTempVendorCDR_20' ) start [2025-02-14 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471930', 'tblTempVendorCDR_20' ) end [2025-02-14 06:32:18] Production.INFO: ProcessCDR(1,14471930,1,1,2) [2025-02-14 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471930', 'tblTempUsageDetail_20' ) start [2025-02-14 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471930', 'tblTempUsageDetail_20' ) end [2025-02-14 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:32:21] Production.INFO: ==22921== Releasing lock... [2025-02-14 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:33:05 [end_date_ymd] => 2025-02-14 06:33:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:33:05' and `end` < '2025-02-14 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-02-14 06:33:19] Production.INFO: count ==281 [2025-02-14 06:33:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:33:05 - End Time 2025-02-14 06:33:05 [2025-02-14 06:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471935', 'tblTempUsageDetail_20' ) start [2025-02-14 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471935', 'tblTempUsageDetail_20' ) end [2025-02-14 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471935', 'tblTempVendorCDR_20' ) start [2025-02-14 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471935', 'tblTempVendorCDR_20' ) end [2025-02-14 06:33:19] Production.INFO: ProcessCDR(1,14471935,1,1,2) [2025-02-14 06:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471935', 'tblTempUsageDetail_20' ) start [2025-02-14 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471935', 'tblTempUsageDetail_20' ) end [2025-02-14 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:33:22] Production.INFO: ==23007== Releasing lock... [2025-02-14 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:33:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:34:05 [end_date_ymd] => 2025-02-14 06:34:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:34:05' and `end` < '2025-02-14 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-02-14 06:34:18] Production.INFO: count ==281 [2025-02-14 06:34:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:34:05 - End Time 2025-02-14 06:34:05 [2025-02-14 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471940', 'tblTempUsageDetail_20' ) start [2025-02-14 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471940', 'tblTempUsageDetail_20' ) end [2025-02-14 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471940', 'tblTempVendorCDR_20' ) start [2025-02-14 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471940', 'tblTempVendorCDR_20' ) end [2025-02-14 06:34:18] Production.INFO: ProcessCDR(1,14471940,1,1,2) [2025-02-14 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471940', 'tblTempUsageDetail_20' ) start [2025-02-14 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471940', 'tblTempUsageDetail_20' ) end [2025-02-14 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:34:22] Production.INFO: ==23090== Releasing lock... [2025-02-14 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:34:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:35:05 [end_date_ymd] => 2025-02-14 06:35:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:35:05' and `end` < '2025-02-14 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-02-14 06:35:19] Production.INFO: count ==281 [2025-02-14 06:35:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:35:05 - End Time 2025-02-14 06:35:05 [2025-02-14 06:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471945', 'tblTempUsageDetail_20' ) start [2025-02-14 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471945', 'tblTempUsageDetail_20' ) end [2025-02-14 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471945', 'tblTempVendorCDR_20' ) start [2025-02-14 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471945', 'tblTempVendorCDR_20' ) end [2025-02-14 06:35:19] Production.INFO: ProcessCDR(1,14471945,1,1,2) [2025-02-14 06:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471945', 'tblTempUsageDetail_20' ) start [2025-02-14 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471945', 'tblTempUsageDetail_20' ) end [2025-02-14 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:35:22] Production.INFO: ==23174== Releasing lock... [2025-02-14 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:35:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:36:05 [end_date_ymd] => 2025-02-14 06:36:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:36:05' and `end` < '2025-02-14 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-02-14 06:36:18] Production.INFO: count ==281 [2025-02-14 06:36:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:36:05 - End Time 2025-02-14 06:36:05 [2025-02-14 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471950', 'tblTempUsageDetail_20' ) start [2025-02-14 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471950', 'tblTempUsageDetail_20' ) end [2025-02-14 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471950', 'tblTempVendorCDR_20' ) start [2025-02-14 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471950', 'tblTempVendorCDR_20' ) end [2025-02-14 06:36:18] Production.INFO: ProcessCDR(1,14471950,1,1,2) [2025-02-14 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471950', 'tblTempUsageDetail_20' ) start [2025-02-14 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471950', 'tblTempUsageDetail_20' ) end [2025-02-14 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:36:22] Production.INFO: ==23253== Releasing lock... [2025-02-14 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:36:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:37:05 [end_date_ymd] => 2025-02-14 06:37:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:37:05' and `end` < '2025-02-14 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-02-14 06:37:19] Production.INFO: count ==281 [2025-02-14 06:37:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:37:05 - End Time 2025-02-14 06:37:05 [2025-02-14 06:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471955', 'tblTempUsageDetail_20' ) start [2025-02-14 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471955', 'tblTempUsageDetail_20' ) end [2025-02-14 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471955', 'tblTempVendorCDR_20' ) start [2025-02-14 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471955', 'tblTempVendorCDR_20' ) end [2025-02-14 06:37:19] Production.INFO: ProcessCDR(1,14471955,1,1,2) [2025-02-14 06:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471955', 'tblTempUsageDetail_20' ) start [2025-02-14 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471955', 'tblTempUsageDetail_20' ) end [2025-02-14 06:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:37:22] Production.INFO: ==23335== Releasing lock... [2025-02-14 06:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:37:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:38:05 [end_date_ymd] => 2025-02-14 06:38:05 [RateCDR] => 1 ) [2025-02-14 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 03:38:05' and `end` < '2025-02-14 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 06:38:18] Production.INFO: count ==281 [2025-02-14 06:38:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:38:05 - End Time 2025-02-14 06:38:05 [2025-02-14 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471960', 'tblTempUsageDetail_20' ) start [2025-02-14 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471960', 'tblTempUsageDetail_20' ) end [2025-02-14 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471960', 'tblTempVendorCDR_20' ) start [2025-02-14 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471960', 'tblTempVendorCDR_20' ) end [2025-02-14 06:38:18] Production.INFO: ProcessCDR(1,14471960,1,1,2) [2025-02-14 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471960', 'tblTempUsageDetail_20' ) start [2025-02-14 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471960', 'tblTempUsageDetail_20' ) end [2025-02-14 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:38:21] Production.INFO: ==23415== Releasing lock... [2025-02-14 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:38:21] Production.INFO: 31 MB #Memory Used# [2025-02-14 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:39:06 [end_date_ymd] => 2025-02-14 06:39:06 [RateCDR] => 1 ) [2025-02-14 06:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 03:39:06' and `end` < '2025-02-14 06:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 06:39:19] Production.INFO: count ==263 [2025-02-14 06:39:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:39:06 - End Time 2025-02-14 06:39:06 [2025-02-14 06:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471965', 'tblTempUsageDetail_20' ) start [2025-02-14 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471965', 'tblTempUsageDetail_20' ) end [2025-02-14 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471965', 'tblTempVendorCDR_20' ) start [2025-02-14 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471965', 'tblTempVendorCDR_20' ) end [2025-02-14 06:39:19] Production.INFO: ProcessCDR(1,14471965,1,1,2) [2025-02-14 06:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471965', 'tblTempUsageDetail_20' ) start [2025-02-14 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471965', 'tblTempUsageDetail_20' ) end [2025-02-14 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:39:22] Production.INFO: ==23495== Releasing lock... [2025-02-14 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:39:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:40:05 [end_date_ymd] => 2025-02-14 06:40:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:40:05' and `end` < '2025-02-14 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-02-14 06:40:18] Production.INFO: count ==181 [2025-02-14 06:40:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:40:05 - End Time 2025-02-14 06:40:05 [2025-02-14 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471971', 'tblTempUsageDetail_20' ) start [2025-02-14 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471971', 'tblTempUsageDetail_20' ) end [2025-02-14 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471971', 'tblTempVendorCDR_20' ) start [2025-02-14 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471971', 'tblTempVendorCDR_20' ) end [2025-02-14 06:40:19] Production.INFO: ProcessCDR(1,14471971,1,1,2) [2025-02-14 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471971', 'tblTempUsageDetail_20' ) start [2025-02-14 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471971', 'tblTempUsageDetail_20' ) end [2025-02-14 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:40:22] Production.INFO: ==23572== Releasing lock... [2025-02-14 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-14 06:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:41:06 [end_date_ymd] => 2025-02-14 06:41:06 [RateCDR] => 1 ) [2025-02-14 06: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-02-14 03:41:06' and `end` < '2025-02-14 06: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-02-14 06:41:19] Production.INFO: count ==138 [2025-02-14 06:41:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:41:06 - End Time 2025-02-14 06:41:06 [2025-02-14 06:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471976', 'tblTempUsageDetail_20' ) start [2025-02-14 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471976', 'tblTempUsageDetail_20' ) end [2025-02-14 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471976', 'tblTempVendorCDR_20' ) start [2025-02-14 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471976', 'tblTempVendorCDR_20' ) end [2025-02-14 06:41:19] Production.INFO: ProcessCDR(1,14471976,1,1,2) [2025-02-14 06:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471976', 'tblTempUsageDetail_20' ) start [2025-02-14 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471976', 'tblTempUsageDetail_20' ) end [2025-02-14 06:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:41:22] Production.INFO: ==23659== Releasing lock... [2025-02-14 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:41:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-14 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:42:05 [end_date_ymd] => 2025-02-14 06:42:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:42:05' and `end` < '2025-02-14 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-02-14 06:42:19] Production.INFO: count ==138 [2025-02-14 06:42:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:42:05 - End Time 2025-02-14 06:42:05 [2025-02-14 06:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471981', 'tblTempUsageDetail_20' ) start [2025-02-14 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471981', 'tblTempUsageDetail_20' ) end [2025-02-14 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471981', 'tblTempVendorCDR_20' ) start [2025-02-14 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471981', 'tblTempVendorCDR_20' ) end [2025-02-14 06:42:19] Production.INFO: ProcessCDR(1,14471981,1,1,2) [2025-02-14 06:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471981', 'tblTempUsageDetail_20' ) start [2025-02-14 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471981', 'tblTempUsageDetail_20' ) end [2025-02-14 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:42:22] Production.INFO: ==23731== Releasing lock... [2025-02-14 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-14 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:43:05 [end_date_ymd] => 2025-02-14 06:43:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:43:05' and `end` < '2025-02-14 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-02-14 06:43:18] Production.INFO: count ==142 [2025-02-14 06:43:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:43:05 - End Time 2025-02-14 06:43:05 [2025-02-14 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471986', 'tblTempUsageDetail_20' ) start [2025-02-14 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471986', 'tblTempUsageDetail_20' ) end [2025-02-14 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471986', 'tblTempVendorCDR_20' ) start [2025-02-14 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471986', 'tblTempVendorCDR_20' ) end [2025-02-14 06:43:18] Production.INFO: ProcessCDR(1,14471986,1,1,2) [2025-02-14 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471986', 'tblTempUsageDetail_20' ) start [2025-02-14 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471986', 'tblTempUsageDetail_20' ) end [2025-02-14 06:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:43:22] Production.INFO: ==23809== Releasing lock... [2025-02-14 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:43:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-14 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:44:05 [end_date_ymd] => 2025-02-14 06:44:05 [RateCDR] => 1 ) [2025-02-14 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 03:44:05' and `end` < '2025-02-14 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 06:44:18] Production.INFO: count ==142 [2025-02-14 06:44:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:44:05 - End Time 2025-02-14 06:44:05 [2025-02-14 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471991', 'tblTempUsageDetail_20' ) start [2025-02-14 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471991', 'tblTempUsageDetail_20' ) end [2025-02-14 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471991', 'tblTempVendorCDR_20' ) start [2025-02-14 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471991', 'tblTempVendorCDR_20' ) end [2025-02-14 06:44:18] Production.INFO: ProcessCDR(1,14471991,1,1,2) [2025-02-14 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471991', 'tblTempUsageDetail_20' ) start [2025-02-14 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471991', 'tblTempUsageDetail_20' ) end [2025-02-14 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:44:21] Production.INFO: ==23883== Releasing lock... [2025-02-14 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-14 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:45:05 [end_date_ymd] => 2025-02-14 06:45:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:45:05' and `end` < '2025-02-14 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-02-14 06:45:18] Production.INFO: count ==142 [2025-02-14 06:45:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:45:05 - End Time 2025-02-14 06:45:05 [2025-02-14 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471995', 'tblTempUsageDetail_20' ) start [2025-02-14 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14471995', 'tblTempUsageDetail_20' ) end [2025-02-14 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471995', 'tblTempVendorCDR_20' ) start [2025-02-14 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14471995', 'tblTempVendorCDR_20' ) end [2025-02-14 06:45:18] Production.INFO: ProcessCDR(1,14471995,1,1,2) [2025-02-14 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14471995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14471995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14471995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14471995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471995', 'tblTempUsageDetail_20' ) start [2025-02-14 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14471995', 'tblTempUsageDetail_20' ) end [2025-02-14 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:45:21] Production.INFO: ==23956== Releasing lock... [2025-02-14 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-14 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:46:05 [end_date_ymd] => 2025-02-14 06:46:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:46:05' and `end` < '2025-02-14 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-02-14 06:46:18] Production.INFO: count ==142 [2025-02-14 06:46:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:46:05 - End Time 2025-02-14 06:46:05 [2025-02-14 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472001', 'tblTempUsageDetail_20' ) start [2025-02-14 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472001', 'tblTempUsageDetail_20' ) end [2025-02-14 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472001', 'tblTempVendorCDR_20' ) start [2025-02-14 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472001', 'tblTempVendorCDR_20' ) end [2025-02-14 06:46:18] Production.INFO: ProcessCDR(1,14472001,1,1,2) [2025-02-14 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472001', 'tblTempUsageDetail_20' ) start [2025-02-14 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472001', 'tblTempUsageDetail_20' ) end [2025-02-14 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:46:21] Production.INFO: ==24070== Releasing lock... [2025-02-14 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-14 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:47:05 [end_date_ymd] => 2025-02-14 06:47:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:47:05' and `end` < '2025-02-14 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-02-14 06:47:18] Production.INFO: count ==143 [2025-02-14 06:47:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:47:05 - End Time 2025-02-14 06:47:05 [2025-02-14 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472005', 'tblTempUsageDetail_20' ) start [2025-02-14 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472005', 'tblTempUsageDetail_20' ) end [2025-02-14 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472005', 'tblTempVendorCDR_20' ) start [2025-02-14 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472005', 'tblTempVendorCDR_20' ) end [2025-02-14 06:47:18] Production.INFO: ProcessCDR(1,14472005,1,1,2) [2025-02-14 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472005', 'tblTempUsageDetail_20' ) start [2025-02-14 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472005', 'tblTempUsageDetail_20' ) end [2025-02-14 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:47:21] Production.INFO: ==24143== Releasing lock... [2025-02-14 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-14 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:48:05 [end_date_ymd] => 2025-02-14 06:48:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:48:05' and `end` < '2025-02-14 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-02-14 06:48:18] Production.INFO: count ==146 [2025-02-14 06:48:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:48:05 - End Time 2025-02-14 06:48:05 [2025-02-14 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472011', 'tblTempUsageDetail_20' ) start [2025-02-14 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472011', 'tblTempUsageDetail_20' ) end [2025-02-14 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472011', 'tblTempVendorCDR_20' ) start [2025-02-14 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472011', 'tblTempVendorCDR_20' ) end [2025-02-14 06:48:18] Production.INFO: ProcessCDR(1,14472011,1,1,2) [2025-02-14 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472011', 'tblTempUsageDetail_20' ) start [2025-02-14 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472011', 'tblTempUsageDetail_20' ) end [2025-02-14 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:48:21] Production.INFO: ==24215== Releasing lock... [2025-02-14 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:49:05 [end_date_ymd] => 2025-02-14 06:49:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:49:05' and `end` < '2025-02-14 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-02-14 06:49:19] Production.INFO: count ==146 [2025-02-14 06:49:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:49:05 - End Time 2025-02-14 06:49:05 [2025-02-14 06:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472016', 'tblTempUsageDetail_20' ) start [2025-02-14 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472016', 'tblTempUsageDetail_20' ) end [2025-02-14 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472016', 'tblTempVendorCDR_20' ) start [2025-02-14 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472016', 'tblTempVendorCDR_20' ) end [2025-02-14 06:49:19] Production.INFO: ProcessCDR(1,14472016,1,1,2) [2025-02-14 06:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472016', 'tblTempUsageDetail_20' ) start [2025-02-14 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472016', 'tblTempUsageDetail_20' ) end [2025-02-14 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:49:22] Production.INFO: ==24289== Releasing lock... [2025-02-14 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:49:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:50:06 [end_date_ymd] => 2025-02-14 06:50:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:50:06' and `end` < '2025-02-14 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-02-14 06:50:19] Production.INFO: count ==150 [2025-02-14 06:50:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:50:06 - End Time 2025-02-14 06:50:06 [2025-02-14 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472021', 'tblTempUsageDetail_20' ) start [2025-02-14 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472021', 'tblTempUsageDetail_20' ) end [2025-02-14 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472021', 'tblTempVendorCDR_20' ) start [2025-02-14 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472021', 'tblTempVendorCDR_20' ) end [2025-02-14 06:50:19] Production.INFO: ProcessCDR(1,14472021,1,1,2) [2025-02-14 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472021', 'tblTempUsageDetail_20' ) start [2025-02-14 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472021', 'tblTempUsageDetail_20' ) end [2025-02-14 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:50:22] Production.INFO: ==24364== Releasing lock... [2025-02-14 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:51:05 [end_date_ymd] => 2025-02-14 06:51:05 [RateCDR] => 1 ) [2025-02-14 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 03:51:05' and `end` < '2025-02-14 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 06:51:19] Production.INFO: count ==160 [2025-02-14 06:51:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:51:05 - End Time 2025-02-14 06:51:05 [2025-02-14 06:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472027', 'tblTempUsageDetail_20' ) start [2025-02-14 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472027', 'tblTempUsageDetail_20' ) end [2025-02-14 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472027', 'tblTempVendorCDR_20' ) start [2025-02-14 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472027', 'tblTempVendorCDR_20' ) end [2025-02-14 06:51:19] Production.INFO: ProcessCDR(1,14472027,1,1,2) [2025-02-14 06:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472027', 'tblTempUsageDetail_20' ) start [2025-02-14 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472027', 'tblTempUsageDetail_20' ) end [2025-02-14 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:51:22] Production.INFO: ==24437== Releasing lock... [2025-02-14 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:51:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:52:05 [end_date_ymd] => 2025-02-14 06:52:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:52:05' and `end` < '2025-02-14 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-02-14 06:52:18] Production.INFO: count ==160 [2025-02-14 06:52:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:52:05 - End Time 2025-02-14 06:52:05 [2025-02-14 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472032', 'tblTempUsageDetail_20' ) start [2025-02-14 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472032', 'tblTempUsageDetail_20' ) end [2025-02-14 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472032', 'tblTempVendorCDR_20' ) start [2025-02-14 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472032', 'tblTempVendorCDR_20' ) end [2025-02-14 06:52:18] Production.INFO: ProcessCDR(1,14472032,1,1,2) [2025-02-14 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472032', 'tblTempUsageDetail_20' ) start [2025-02-14 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472032', 'tblTempUsageDetail_20' ) end [2025-02-14 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:52:22] Production.INFO: ==24513== Releasing lock... [2025-02-14 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:53:05 [end_date_ymd] => 2025-02-14 06:53:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:53:05' and `end` < '2025-02-14 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-02-14 06:53:19] Production.INFO: count ==160 [2025-02-14 06:53:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:53:05 - End Time 2025-02-14 06:53:05 [2025-02-14 06:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472037', 'tblTempUsageDetail_20' ) start [2025-02-14 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472037', 'tblTempUsageDetail_20' ) end [2025-02-14 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472037', 'tblTempVendorCDR_20' ) start [2025-02-14 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472037', 'tblTempVendorCDR_20' ) end [2025-02-14 06:53:19] Production.INFO: ProcessCDR(1,14472037,1,1,2) [2025-02-14 06:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472037', 'tblTempUsageDetail_20' ) start [2025-02-14 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472037', 'tblTempUsageDetail_20' ) end [2025-02-14 06:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:53:22] Production.INFO: ==24583== Releasing lock... [2025-02-14 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:53:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:54:05 [end_date_ymd] => 2025-02-14 06:54:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:54:05' and `end` < '2025-02-14 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-02-14 06:54:19] Production.INFO: count ==160 [2025-02-14 06:54:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:54:05 - End Time 2025-02-14 06:54:05 [2025-02-14 06:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472042', 'tblTempUsageDetail_20' ) start [2025-02-14 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472042', 'tblTempUsageDetail_20' ) end [2025-02-14 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472042', 'tblTempVendorCDR_20' ) start [2025-02-14 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472042', 'tblTempVendorCDR_20' ) end [2025-02-14 06:54:19] Production.INFO: ProcessCDR(1,14472042,1,1,2) [2025-02-14 06:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472042', 'tblTempUsageDetail_20' ) start [2025-02-14 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472042', 'tblTempUsageDetail_20' ) end [2025-02-14 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:54:22] Production.INFO: ==24655== Releasing lock... [2025-02-14 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:54:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:55:05 [end_date_ymd] => 2025-02-14 06:55:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:55:05' and `end` < '2025-02-14 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-02-14 06:55:18] Production.INFO: count ==160 [2025-02-14 06:55:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:55:05 - End Time 2025-02-14 06:55:05 [2025-02-14 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472047', 'tblTempUsageDetail_20' ) start [2025-02-14 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472047', 'tblTempUsageDetail_20' ) end [2025-02-14 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472047', 'tblTempVendorCDR_20' ) start [2025-02-14 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472047', 'tblTempVendorCDR_20' ) end [2025-02-14 06:55:18] Production.INFO: ProcessCDR(1,14472047,1,1,2) [2025-02-14 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472047', 'tblTempUsageDetail_20' ) start [2025-02-14 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472047', 'tblTempUsageDetail_20' ) end [2025-02-14 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:55:21] Production.INFO: ==24726== Releasing lock... [2025-02-14 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:56:05 [end_date_ymd] => 2025-02-14 06:56:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:56:05' and `end` < '2025-02-14 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-02-14 06:56:18] Production.INFO: count ==160 [2025-02-14 06:56:18] Production.ERROR: pbx CDR StartTime 2025-02-14 03:56:05 - End Time 2025-02-14 06:56:05 [2025-02-14 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472052', 'tblTempUsageDetail_20' ) start [2025-02-14 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472052', 'tblTempUsageDetail_20' ) end [2025-02-14 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472052', 'tblTempVendorCDR_20' ) start [2025-02-14 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472052', 'tblTempVendorCDR_20' ) end [2025-02-14 06:56:18] Production.INFO: ProcessCDR(1,14472052,1,1,2) [2025-02-14 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472052', 'tblTempUsageDetail_20' ) start [2025-02-14 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472052', 'tblTempUsageDetail_20' ) end [2025-02-14 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:56:22] Production.INFO: ==24798== Releasing lock... [2025-02-14 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:56:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 06:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:57:06 [end_date_ymd] => 2025-02-14 06:57:06 [RateCDR] => 1 ) [2025-02-14 06:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 03:57:06' and `end` < '2025-02-14 06:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 06:57:19] Production.INFO: count ==160 [2025-02-14 06:57:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:57:06 - End Time 2025-02-14 06:57:06 [2025-02-14 06:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472057', 'tblTempUsageDetail_20' ) start [2025-02-14 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472057', 'tblTempUsageDetail_20' ) end [2025-02-14 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472057', 'tblTempVendorCDR_20' ) start [2025-02-14 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472057', 'tblTempVendorCDR_20' ) end [2025-02-14 06:57:19] Production.INFO: ProcessCDR(1,14472057,1,1,2) [2025-02-14 06:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472057', 'tblTempUsageDetail_20' ) start [2025-02-14 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472057', 'tblTempUsageDetail_20' ) end [2025-02-14 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:57:22] Production.INFO: ==24870== Releasing lock... [2025-02-14 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:57:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:58:05 [end_date_ymd] => 2025-02-14 06:58:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:58:05' and `end` < '2025-02-14 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-02-14 06:58:19] Production.INFO: count ==160 [2025-02-14 06:58:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:58:05 - End Time 2025-02-14 06:58:05 [2025-02-14 06:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472062', 'tblTempUsageDetail_20' ) start [2025-02-14 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472062', 'tblTempUsageDetail_20' ) end [2025-02-14 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472062', 'tblTempVendorCDR_20' ) start [2025-02-14 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472062', 'tblTempVendorCDR_20' ) end [2025-02-14 06:58:19] Production.INFO: ProcessCDR(1,14472062,1,1,2) [2025-02-14 06:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472062', 'tblTempUsageDetail_20' ) start [2025-02-14 06:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472062', 'tblTempUsageDetail_20' ) end [2025-02-14 06:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:58:23] Production.INFO: ==24940== Releasing lock... [2025-02-14 06:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:58:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 03:59:05 [end_date_ymd] => 2025-02-14 06:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 03:59:05' and `end` < '2025-02-14 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-02-14 06:59:19] Production.INFO: count ==160 [2025-02-14 06:59:19] Production.ERROR: pbx CDR StartTime 2025-02-14 03:59:05 - End Time 2025-02-14 06:59:05 [2025-02-14 06:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472067', 'tblTempUsageDetail_20' ) start [2025-02-14 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472067', 'tblTempUsageDetail_20' ) end [2025-02-14 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472067', 'tblTempVendorCDR_20' ) start [2025-02-14 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472067', 'tblTempVendorCDR_20' ) end [2025-02-14 06:59:19] Production.INFO: ProcessCDR(1,14472067,1,1,2) [2025-02-14 06:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 06:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472067', 'tblTempUsageDetail_20' ) start [2025-02-14 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472067', 'tblTempUsageDetail_20' ) end [2025-02-14 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 06:59:22] Production.INFO: ==25010== Releasing lock... [2025-02-14 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 06:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:00:06 [end_date_ymd] => 2025-02-14 07:00:06 [RateCDR] => 1 ) [2025-02-14 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:00:06' and `end` < '2025-02-14 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:00:20] Production.INFO: count ==164 [2025-02-14 07:00:20] Production.ERROR: pbx CDR StartTime 2025-02-14 04:00:06 - End Time 2025-02-14 07:00:06 [2025-02-14 07:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472073', 'tblTempUsageDetail_20' ) start [2025-02-14 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472073', 'tblTempUsageDetail_20' ) end [2025-02-14 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472073', 'tblTempVendorCDR_20' ) start [2025-02-14 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472073', 'tblTempVendorCDR_20' ) end [2025-02-14 07:00:20] Production.INFO: ProcessCDR(1,14472073,1,1,2) [2025-02-14 07:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472073', 'tblTempUsageDetail_20' ) start [2025-02-14 07:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472073', 'tblTempUsageDetail_20' ) end [2025-02-14 07:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:00:24] Production.INFO: ==25083== Releasing lock... [2025-02-14 07:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:00:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:01:05 [end_date_ymd] => 2025-02-14 07:01:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:01:05' and `end` < '2025-02-14 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-02-14 07:01:26] Production.INFO: count ==170 [2025-02-14 07:01:27] Production.ERROR: pbx CDR StartTime 2025-02-14 04:01:05 - End Time 2025-02-14 07:01:05 [2025-02-14 07:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472078', 'tblTempUsageDetail_20' ) start [2025-02-14 07:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472078', 'tblTempUsageDetail_20' ) end [2025-02-14 07:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472078', 'tblTempVendorCDR_20' ) start [2025-02-14 07:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472078', 'tblTempVendorCDR_20' ) end [2025-02-14 07:01:27] Production.INFO: ProcessCDR(1,14472078,1,1,2) [2025-02-14 07:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472078', 'tblTempUsageDetail_20' ) start [2025-02-14 07:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472078', 'tblTempUsageDetail_20' ) end [2025-02-14 07:01:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:01:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:01:30] Production.INFO: ==25284== Releasing lock... [2025-02-14 07:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:01:30] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:02:05 [end_date_ymd] => 2025-02-14 07:02:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:02:05' and `end` < '2025-02-14 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-02-14 07:02:20] Production.INFO: count ==174 [2025-02-14 07:02:20] Production.ERROR: pbx CDR StartTime 2025-02-14 04:02:05 - End Time 2025-02-14 07:02:05 [2025-02-14 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472083', 'tblTempUsageDetail_20' ) start [2025-02-14 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472083', 'tblTempUsageDetail_20' ) end [2025-02-14 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472083', 'tblTempVendorCDR_20' ) start [2025-02-14 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472083', 'tblTempVendorCDR_20' ) end [2025-02-14 07:02:20] Production.INFO: ProcessCDR(1,14472083,1,1,2) [2025-02-14 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472083', 'tblTempUsageDetail_20' ) start [2025-02-14 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472083', 'tblTempUsageDetail_20' ) end [2025-02-14 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:02:23] Production.INFO: ==25357== Releasing lock... [2025-02-14 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:02:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:03:06 [end_date_ymd] => 2025-02-14 07:03:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:03:06' and `end` < '2025-02-14 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-02-14 07:03:20] Production.INFO: count ==174 [2025-02-14 07:03:20] Production.ERROR: pbx CDR StartTime 2025-02-14 04:03:06 - End Time 2025-02-14 07:03:06 [2025-02-14 07:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472088', 'tblTempUsageDetail_20' ) start [2025-02-14 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472088', 'tblTempUsageDetail_20' ) end [2025-02-14 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472088', 'tblTempVendorCDR_20' ) start [2025-02-14 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472088', 'tblTempVendorCDR_20' ) end [2025-02-14 07:03:20] Production.INFO: ProcessCDR(1,14472088,1,1,2) [2025-02-14 07:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472088', 'tblTempUsageDetail_20' ) start [2025-02-14 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472088', 'tblTempUsageDetail_20' ) end [2025-02-14 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:03:24] Production.INFO: ==25428== Releasing lock... [2025-02-14 07:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:03:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:04:06 [end_date_ymd] => 2025-02-14 07:04:06 [RateCDR] => 1 ) [2025-02-14 07:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:04:06' and `end` < '2025-02-14 07:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:04:20] Production.INFO: count ==172 [2025-02-14 07:04:20] Production.ERROR: pbx CDR StartTime 2025-02-14 04:04:06 - End Time 2025-02-14 07:04:06 [2025-02-14 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472093', 'tblTempUsageDetail_20' ) start [2025-02-14 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472093', 'tblTempUsageDetail_20' ) end [2025-02-14 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472093', 'tblTempVendorCDR_20' ) start [2025-02-14 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472093', 'tblTempVendorCDR_20' ) end [2025-02-14 07:04:20] Production.INFO: ProcessCDR(1,14472093,1,1,2) [2025-02-14 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472093', 'tblTempUsageDetail_20' ) start [2025-02-14 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472093', 'tblTempUsageDetail_20' ) end [2025-02-14 07:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:04:24] Production.INFO: ==25502== Releasing lock... [2025-02-14 07:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:04:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:05:05 [end_date_ymd] => 2025-02-14 07:05:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:05:05' and `end` < '2025-02-14 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-02-14 07:05:20] Production.INFO: count ==170 [2025-02-14 07:05:20] Production.ERROR: pbx CDR StartTime 2025-02-14 04:05:05 - End Time 2025-02-14 07:05:05 [2025-02-14 07:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472098', 'tblTempUsageDetail_20' ) start [2025-02-14 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472098', 'tblTempUsageDetail_20' ) end [2025-02-14 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472098', 'tblTempVendorCDR_20' ) start [2025-02-14 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472098', 'tblTempVendorCDR_20' ) end [2025-02-14 07:05:20] Production.INFO: ProcessCDR(1,14472098,1,1,2) [2025-02-14 07:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472098', 'tblTempUsageDetail_20' ) start [2025-02-14 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472098', 'tblTempUsageDetail_20' ) end [2025-02-14 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:05:23] Production.INFO: ==25651== Releasing lock... [2025-02-14 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:05:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:06:06 [end_date_ymd] => 2025-02-14 07:06:06 [RateCDR] => 1 ) [2025-02-14 07: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-02-14 04:06:06' and `end` < '2025-02-14 07: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-02-14 07:06:20] Production.INFO: count ==170 [2025-02-14 07:06:20] Production.ERROR: pbx CDR StartTime 2025-02-14 04:06:06 - End Time 2025-02-14 07:06:06 [2025-02-14 07:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472103', 'tblTempUsageDetail_20' ) start [2025-02-14 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472103', 'tblTempUsageDetail_20' ) end [2025-02-14 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472103', 'tblTempVendorCDR_20' ) start [2025-02-14 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472103', 'tblTempVendorCDR_20' ) end [2025-02-14 07:06:20] Production.INFO: ProcessCDR(1,14472103,1,1,2) [2025-02-14 07:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472103', 'tblTempUsageDetail_20' ) start [2025-02-14 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472103', 'tblTempUsageDetail_20' ) end [2025-02-14 07:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:06:24] Production.INFO: ==25721== Releasing lock... [2025-02-14 07:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:06:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:07:05 [end_date_ymd] => 2025-02-14 07:07:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:07:05' and `end` < '2025-02-14 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-02-14 07:07:19] Production.INFO: count ==170 [2025-02-14 07:07:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:07:05 - End Time 2025-02-14 07:07:05 [2025-02-14 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472108', 'tblTempUsageDetail_20' ) start [2025-02-14 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472108', 'tblTempUsageDetail_20' ) end [2025-02-14 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472108', 'tblTempVendorCDR_20' ) start [2025-02-14 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472108', 'tblTempVendorCDR_20' ) end [2025-02-14 07:07:19] Production.INFO: ProcessCDR(1,14472108,1,1,2) [2025-02-14 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472108', 'tblTempUsageDetail_20' ) start [2025-02-14 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472108', 'tblTempUsageDetail_20' ) end [2025-02-14 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:07:22] Production.INFO: ==25793== Releasing lock... [2025-02-14 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:07:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:08:06 [end_date_ymd] => 2025-02-14 07:08:06 [RateCDR] => 1 ) [2025-02-14 07: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-02-14 04:08:06' and `end` < '2025-02-14 07: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-02-14 07:08:21] Production.INFO: count ==170 [2025-02-14 07:08:21] Production.ERROR: pbx CDR StartTime 2025-02-14 04:08:06 - End Time 2025-02-14 07:08:06 [2025-02-14 07:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472113', 'tblTempUsageDetail_20' ) start [2025-02-14 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472113', 'tblTempUsageDetail_20' ) end [2025-02-14 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472113', 'tblTempVendorCDR_20' ) start [2025-02-14 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472113', 'tblTempVendorCDR_20' ) end [2025-02-14 07:08:21] Production.INFO: ProcessCDR(1,14472113,1,1,2) [2025-02-14 07:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472113', 'tblTempUsageDetail_20' ) start [2025-02-14 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472113', 'tblTempUsageDetail_20' ) end [2025-02-14 07:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:08:24] Production.INFO: ==25942== Releasing lock... [2025-02-14 07:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:08:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:09:05 [end_date_ymd] => 2025-02-14 07:09:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:09:05' and `end` < '2025-02-14 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-02-14 07:09:19] Production.INFO: count ==170 [2025-02-14 07:09:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:09:05 - End Time 2025-02-14 07:09:05 [2025-02-14 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472118', 'tblTempUsageDetail_20' ) start [2025-02-14 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472118', 'tblTempUsageDetail_20' ) end [2025-02-14 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472118', 'tblTempVendorCDR_20' ) start [2025-02-14 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472118', 'tblTempVendorCDR_20' ) end [2025-02-14 07:09:19] Production.INFO: ProcessCDR(1,14472118,1,1,2) [2025-02-14 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472118', 'tblTempUsageDetail_20' ) start [2025-02-14 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472118', 'tblTempUsageDetail_20' ) end [2025-02-14 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:09:23] Production.INFO: ==26012== Releasing lock... [2025-02-14 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:09:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:10:06 [end_date_ymd] => 2025-02-14 07:10:06 [RateCDR] => 1 ) [2025-02-14 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:10:06' and `end` < '2025-02-14 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:10:20] Production.INFO: count ==172 [2025-02-14 07:10:20] Production.ERROR: pbx CDR StartTime 2025-02-14 04:10:06 - End Time 2025-02-14 07:10:06 [2025-02-14 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472124', 'tblTempUsageDetail_20' ) start [2025-02-14 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472124', 'tblTempUsageDetail_20' ) end [2025-02-14 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472124', 'tblTempVendorCDR_20' ) start [2025-02-14 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472124', 'tblTempVendorCDR_20' ) end [2025-02-14 07:10:20] Production.INFO: ProcessCDR(1,14472124,1,1,2) [2025-02-14 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472124', 'tblTempUsageDetail_20' ) start [2025-02-14 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472124', 'tblTempUsageDetail_20' ) end [2025-02-14 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:10:23] Production.INFO: ==26085== Releasing lock... [2025-02-14 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:10:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:11:05 [end_date_ymd] => 2025-02-14 07:11:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:11:05' and `end` < '2025-02-14 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-02-14 07:11:20] Production.INFO: count ==180 [2025-02-14 07:11:20] Production.ERROR: pbx CDR StartTime 2025-02-14 04:11:05 - End Time 2025-02-14 07:11:05 [2025-02-14 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472129', 'tblTempUsageDetail_20' ) start [2025-02-14 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472129', 'tblTempUsageDetail_20' ) end [2025-02-14 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472129', 'tblTempVendorCDR_20' ) start [2025-02-14 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472129', 'tblTempVendorCDR_20' ) end [2025-02-14 07:11:20] Production.INFO: ProcessCDR(1,14472129,1,1,2) [2025-02-14 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472129', 'tblTempUsageDetail_20' ) start [2025-02-14 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472129', 'tblTempUsageDetail_20' ) end [2025-02-14 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:11:23] Production.INFO: ==26163== Releasing lock... [2025-02-14 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:11:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:12:05 [end_date_ymd] => 2025-02-14 07:12:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:12:05' and `end` < '2025-02-14 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-02-14 07:12:19] Production.INFO: count ==180 [2025-02-14 07:12:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:12:05 - End Time 2025-02-14 07:12:05 [2025-02-14 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472134', 'tblTempUsageDetail_20' ) start [2025-02-14 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472134', 'tblTempUsageDetail_20' ) end [2025-02-14 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472134', 'tblTempVendorCDR_20' ) start [2025-02-14 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472134', 'tblTempVendorCDR_20' ) end [2025-02-14 07:12:19] Production.INFO: ProcessCDR(1,14472134,1,1,2) [2025-02-14 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472134', 'tblTempUsageDetail_20' ) start [2025-02-14 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472134', 'tblTempUsageDetail_20' ) end [2025-02-14 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:12:22] Production.INFO: ==26338== Releasing lock... [2025-02-14 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:13:05 [end_date_ymd] => 2025-02-14 07:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:13:05' and `end` < '2025-02-14 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-02-14 07:13:18] Production.INFO: count ==180 [2025-02-14 07:13:18] Production.ERROR: pbx CDR StartTime 2025-02-14 04:13:05 - End Time 2025-02-14 07:13:05 [2025-02-14 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472139', 'tblTempUsageDetail_20' ) start [2025-02-14 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472139', 'tblTempUsageDetail_20' ) end [2025-02-14 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472139', 'tblTempVendorCDR_20' ) start [2025-02-14 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472139', 'tblTempVendorCDR_20' ) end [2025-02-14 07:13:18] Production.INFO: ProcessCDR(1,14472139,1,1,2) [2025-02-14 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472139', 'tblTempUsageDetail_20' ) start [2025-02-14 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472139', 'tblTempUsageDetail_20' ) end [2025-02-14 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:13:22] Production.INFO: ==26409== Releasing lock... [2025-02-14 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:13:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-14 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:14:05 [end_date_ymd] => 2025-02-14 07:14:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:14:05' and `end` < '2025-02-14 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-02-14 07:14:21] Production.INFO: count ==184 [2025-02-14 07:14:21] Production.ERROR: pbx CDR StartTime 2025-02-14 04:14:05 - End Time 2025-02-14 07:14:05 [2025-02-14 07:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472144', 'tblTempUsageDetail_20' ) start [2025-02-14 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472144', 'tblTempUsageDetail_20' ) end [2025-02-14 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472144', 'tblTempVendorCDR_20' ) start [2025-02-14 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472144', 'tblTempVendorCDR_20' ) end [2025-02-14 07:14:21] Production.INFO: ProcessCDR(1,14472144,1,1,2) [2025-02-14 07:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472144', 'tblTempUsageDetail_20' ) start [2025-02-14 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472144', 'tblTempUsageDetail_20' ) end [2025-02-14 07:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:14:24] Production.INFO: ==26481== Releasing lock... [2025-02-14 07:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:14:24] Production.INFO: 29 MB #Memory Used# [2025-02-14 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:15:05 [end_date_ymd] => 2025-02-14 07:15:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:15:05' and `end` < '2025-02-14 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-02-14 07:15:20] Production.INFO: count ==186 [2025-02-14 07:15:20] Production.ERROR: pbx CDR StartTime 2025-02-14 04:15:05 - End Time 2025-02-14 07:15:05 [2025-02-14 07:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472149', 'tblTempUsageDetail_20' ) start [2025-02-14 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472149', 'tblTempUsageDetail_20' ) end [2025-02-14 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472149', 'tblTempVendorCDR_20' ) start [2025-02-14 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472149', 'tblTempVendorCDR_20' ) end [2025-02-14 07:15:20] Production.INFO: ProcessCDR(1,14472149,1,1,2) [2025-02-14 07:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472149', 'tblTempUsageDetail_20' ) start [2025-02-14 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472149', 'tblTempUsageDetail_20' ) end [2025-02-14 07:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:15:24] Production.INFO: ==26634== Releasing lock... [2025-02-14 07:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:15:24] Production.INFO: 29 MB #Memory Used# [2025-02-14 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:16:05 [end_date_ymd] => 2025-02-14 07:16:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:16:05' and `end` < '2025-02-14 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-02-14 07:16:25] Production.INFO: count ==187 [2025-02-14 07:16:25] Production.ERROR: pbx CDR StartTime 2025-02-14 04:16:05 - End Time 2025-02-14 07:16:05 [2025-02-14 07:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472154', 'tblTempUsageDetail_20' ) start [2025-02-14 07:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472154', 'tblTempUsageDetail_20' ) end [2025-02-14 07:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472154', 'tblTempVendorCDR_20' ) start [2025-02-14 07:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472154', 'tblTempVendorCDR_20' ) end [2025-02-14 07:16:25] Production.INFO: ProcessCDR(1,14472154,1,1,2) [2025-02-14 07:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472154', 'tblTempUsageDetail_20' ) start [2025-02-14 07:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472154', 'tblTempUsageDetail_20' ) end [2025-02-14 07:16:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:16:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:16:30] Production.INFO: ==26711== Releasing lock... [2025-02-14 07:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:16:30] Production.INFO: 29 MB #Memory Used# [2025-02-14 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:17:06 [end_date_ymd] => 2025-02-14 07:17:06 [RateCDR] => 1 ) [2025-02-14 07:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:17:06' and `end` < '2025-02-14 07:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:17:19] Production.INFO: count ==187 [2025-02-14 07:17:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:17:06 - End Time 2025-02-14 07:17:06 [2025-02-14 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472159', 'tblTempUsageDetail_20' ) start [2025-02-14 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472159', 'tblTempUsageDetail_20' ) end [2025-02-14 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472159', 'tblTempVendorCDR_20' ) start [2025-02-14 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472159', 'tblTempVendorCDR_20' ) end [2025-02-14 07:17:19] Production.INFO: ProcessCDR(1,14472159,1,1,2) [2025-02-14 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472159', 'tblTempUsageDetail_20' ) start [2025-02-14 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472159', 'tblTempUsageDetail_20' ) end [2025-02-14 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:17:23] Production.INFO: ==26831== Releasing lock... [2025-02-14 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:17:23] Production.INFO: 29 MB #Memory Used# [2025-02-14 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:18:05 [end_date_ymd] => 2025-02-14 07:18:05 [RateCDR] => 1 ) [2025-02-14 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:18:05' and `end` < '2025-02-14 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:18:20] Production.INFO: count ==187 [2025-02-14 07:18:21] Production.ERROR: pbx CDR StartTime 2025-02-14 04:18:05 - End Time 2025-02-14 07:18:05 [2025-02-14 07:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472164', 'tblTempUsageDetail_20' ) start [2025-02-14 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472164', 'tblTempUsageDetail_20' ) end [2025-02-14 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472164', 'tblTempVendorCDR_20' ) start [2025-02-14 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472164', 'tblTempVendorCDR_20' ) end [2025-02-14 07:18:21] Production.INFO: ProcessCDR(1,14472164,1,1,2) [2025-02-14 07:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472164', 'tblTempUsageDetail_20' ) start [2025-02-14 07:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472164', 'tblTempUsageDetail_20' ) end [2025-02-14 07:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:18:24] Production.INFO: ==26910== Releasing lock... [2025-02-14 07:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:18:24] Production.INFO: 29 MB #Memory Used# [2025-02-14 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:19:06 [end_date_ymd] => 2025-02-14 07:19:06 [RateCDR] => 1 ) [2025-02-14 07:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:19:06' and `end` < '2025-02-14 07:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:19:20] Production.INFO: count ==187 [2025-02-14 07:19:20] Production.ERROR: pbx CDR StartTime 2025-02-14 04:19:06 - End Time 2025-02-14 07:19:06 [2025-02-14 07:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472169', 'tblTempUsageDetail_20' ) start [2025-02-14 07:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472169', 'tblTempUsageDetail_20' ) end [2025-02-14 07:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472169', 'tblTempVendorCDR_20' ) start [2025-02-14 07:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472169', 'tblTempVendorCDR_20' ) end [2025-02-14 07:19:20] Production.INFO: ProcessCDR(1,14472169,1,1,2) [2025-02-14 07:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472169', 'tblTempUsageDetail_20' ) start [2025-02-14 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472169', 'tblTempUsageDetail_20' ) end [2025-02-14 07:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:19:23] Production.INFO: ==26992== Releasing lock... [2025-02-14 07:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:19:23] Production.INFO: 29 MB #Memory Used# [2025-02-14 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:20:06 [end_date_ymd] => 2025-02-14 07:20:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:20:06' and `end` < '2025-02-14 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-02-14 07:20:19] Production.INFO: count ==192 [2025-02-14 07:20:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:20:06 - End Time 2025-02-14 07:20:06 [2025-02-14 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472174', 'tblTempUsageDetail_20' ) start [2025-02-14 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472174', 'tblTempUsageDetail_20' ) end [2025-02-14 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472174', 'tblTempVendorCDR_20' ) start [2025-02-14 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472174', 'tblTempVendorCDR_20' ) end [2025-02-14 07:20:19] Production.INFO: ProcessCDR(1,14472174,1,1,2) [2025-02-14 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472174', 'tblTempUsageDetail_20' ) start [2025-02-14 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472174', 'tblTempUsageDetail_20' ) end [2025-02-14 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:20:23] Production.INFO: ==27070== Releasing lock... [2025-02-14 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:20:23] Production.INFO: 29 MB #Memory Used# [2025-02-14 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:21:05 [end_date_ymd] => 2025-02-14 07:21:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:21:05' and `end` < '2025-02-14 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-02-14 07:21:21] Production.INFO: count ==198 [2025-02-14 07:21:21] Production.ERROR: pbx CDR StartTime 2025-02-14 04:21:05 - End Time 2025-02-14 07:21:05 [2025-02-14 07:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472180', 'tblTempUsageDetail_20' ) start [2025-02-14 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472180', 'tblTempUsageDetail_20' ) end [2025-02-14 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472180', 'tblTempVendorCDR_20' ) start [2025-02-14 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472180', 'tblTempVendorCDR_20' ) end [2025-02-14 07:21:21] Production.INFO: ProcessCDR(1,14472180,1,1,2) [2025-02-14 07:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472180', 'tblTempUsageDetail_20' ) start [2025-02-14 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472180', 'tblTempUsageDetail_20' ) end [2025-02-14 07:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:21:24] Production.INFO: ==27153== Releasing lock... [2025-02-14 07:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:21:24] Production.INFO: 29 MB #Memory Used# [2025-02-14 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:22:05 [end_date_ymd] => 2025-02-14 07:22:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:22:05' and `end` < '2025-02-14 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-02-14 07:22:20] Production.INFO: count ==198 [2025-02-14 07:22:20] Production.ERROR: pbx CDR StartTime 2025-02-14 04:22:05 - End Time 2025-02-14 07:22:05 [2025-02-14 07:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472185', 'tblTempUsageDetail_20' ) start [2025-02-14 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472185', 'tblTempUsageDetail_20' ) end [2025-02-14 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472185', 'tblTempVendorCDR_20' ) start [2025-02-14 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472185', 'tblTempVendorCDR_20' ) end [2025-02-14 07:22:20] Production.INFO: ProcessCDR(1,14472185,1,1,2) [2025-02-14 07:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472185', 'tblTempUsageDetail_20' ) start [2025-02-14 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472185', 'tblTempUsageDetail_20' ) end [2025-02-14 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:22:23] Production.INFO: ==27230== Releasing lock... [2025-02-14 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:22:23] Production.INFO: 29 MB #Memory Used# [2025-02-14 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:23:06 [end_date_ymd] => 2025-02-14 07:23:06 [RateCDR] => 1 ) [2025-02-14 07:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:23:06' and `end` < '2025-02-14 07:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:23:19] Production.INFO: count ==199 [2025-02-14 07:23:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:23:06 - End Time 2025-02-14 07:23:06 [2025-02-14 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472190', 'tblTempUsageDetail_20' ) start [2025-02-14 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472190', 'tblTempUsageDetail_20' ) end [2025-02-14 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472190', 'tblTempVendorCDR_20' ) start [2025-02-14 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472190', 'tblTempVendorCDR_20' ) end [2025-02-14 07:23:19] Production.INFO: ProcessCDR(1,14472190,1,1,2) [2025-02-14 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472190', 'tblTempUsageDetail_20' ) start [2025-02-14 07:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472190', 'tblTempUsageDetail_20' ) end [2025-02-14 07:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:23:24] Production.INFO: ==27324== Releasing lock... [2025-02-14 07:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:23:24] Production.INFO: 29 MB #Memory Used# [2025-02-14 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:24:06 [end_date_ymd] => 2025-02-14 07:24:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:24:06' and `end` < '2025-02-14 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-02-14 07:24:19] Production.INFO: count ==201 [2025-02-14 07:24:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:24:06 - End Time 2025-02-14 07:24:06 [2025-02-14 07:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472195', 'tblTempUsageDetail_20' ) start [2025-02-14 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472195', 'tblTempUsageDetail_20' ) end [2025-02-14 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472195', 'tblTempVendorCDR_20' ) start [2025-02-14 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472195', 'tblTempVendorCDR_20' ) end [2025-02-14 07:24:19] Production.INFO: ProcessCDR(1,14472195,1,1,2) [2025-02-14 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472195', 'tblTempUsageDetail_20' ) start [2025-02-14 07:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472195', 'tblTempUsageDetail_20' ) end [2025-02-14 07:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:24:24] Production.INFO: ==27412== Releasing lock... [2025-02-14 07:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:24:24] Production.INFO: 29 MB #Memory Used# [2025-02-14 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:25:05 [end_date_ymd] => 2025-02-14 07:25:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:25:05' and `end` < '2025-02-14 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-02-14 07:25:18] Production.INFO: count ==206 [2025-02-14 07:25:18] Production.ERROR: pbx CDR StartTime 2025-02-14 04:25:05 - End Time 2025-02-14 07:25:05 [2025-02-14 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472200', 'tblTempUsageDetail_20' ) start [2025-02-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472200', 'tblTempUsageDetail_20' ) end [2025-02-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472200', 'tblTempVendorCDR_20' ) start [2025-02-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472200', 'tblTempVendorCDR_20' ) end [2025-02-14 07:25:18] Production.INFO: ProcessCDR(1,14472200,1,1,2) [2025-02-14 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472200', 'tblTempUsageDetail_20' ) start [2025-02-14 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472200', 'tblTempUsageDetail_20' ) end [2025-02-14 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:25:22] Production.INFO: ==27505== Releasing lock... [2025-02-14 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:25:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-14 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:26:06 [end_date_ymd] => 2025-02-14 07:26:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:26:06' and `end` < '2025-02-14 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-02-14 07:26:19] Production.INFO: count ==206 [2025-02-14 07:26:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:26:06 - End Time 2025-02-14 07:26:06 [2025-02-14 07:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472205', 'tblTempUsageDetail_20' ) start [2025-02-14 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472205', 'tblTempUsageDetail_20' ) end [2025-02-14 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472205', 'tblTempVendorCDR_20' ) start [2025-02-14 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472205', 'tblTempVendorCDR_20' ) end [2025-02-14 07:26:19] Production.INFO: ProcessCDR(1,14472205,1,1,2) [2025-02-14 07:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472205', 'tblTempUsageDetail_20' ) start [2025-02-14 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472205', 'tblTempUsageDetail_20' ) end [2025-02-14 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:26:22] Production.INFO: ==27599== Releasing lock... [2025-02-14 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:26:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-14 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:27:05 [end_date_ymd] => 2025-02-14 07:27:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:27:05' and `end` < '2025-02-14 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-02-14 07:27:20] Production.INFO: count ==206 [2025-02-14 07:27:20] Production.ERROR: pbx CDR StartTime 2025-02-14 04:27:05 - End Time 2025-02-14 07:27:05 [2025-02-14 07:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472210', 'tblTempUsageDetail_20' ) start [2025-02-14 07:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472210', 'tblTempUsageDetail_20' ) end [2025-02-14 07:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472210', 'tblTempVendorCDR_20' ) start [2025-02-14 07:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472210', 'tblTempVendorCDR_20' ) end [2025-02-14 07:27:20] Production.INFO: ProcessCDR(1,14472210,1,1,2) [2025-02-14 07:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472210', 'tblTempUsageDetail_20' ) start [2025-02-14 07:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472210', 'tblTempUsageDetail_20' ) end [2025-02-14 07:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:27:24] Production.INFO: ==27692== Releasing lock... [2025-02-14 07:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:27:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-14 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:28:05 [end_date_ymd] => 2025-02-14 07:28:05 [RateCDR] => 1 ) [2025-02-14 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:28:05' and `end` < '2025-02-14 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:28:18] Production.INFO: count ==206 [2025-02-14 07:28:18] Production.ERROR: pbx CDR StartTime 2025-02-14 04:28:05 - End Time 2025-02-14 07:28:05 [2025-02-14 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472215', 'tblTempUsageDetail_20' ) start [2025-02-14 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472215', 'tblTempUsageDetail_20' ) end [2025-02-14 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472215', 'tblTempVendorCDR_20' ) start [2025-02-14 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472215', 'tblTempVendorCDR_20' ) end [2025-02-14 07:28:18] Production.INFO: ProcessCDR(1,14472215,1,1,2) [2025-02-14 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472215', 'tblTempUsageDetail_20' ) start [2025-02-14 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472215', 'tblTempUsageDetail_20' ) end [2025-02-14 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:28:22] Production.INFO: ==27777== Releasing lock... [2025-02-14 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:28:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-14 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:29:05 [end_date_ymd] => 2025-02-14 07:29:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:29:05' and `end` < '2025-02-14 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-02-14 07:29:18] Production.INFO: count ==202 [2025-02-14 07:29:18] Production.ERROR: pbx CDR StartTime 2025-02-14 04:29:05 - End Time 2025-02-14 07:29:05 [2025-02-14 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472220', 'tblTempUsageDetail_20' ) start [2025-02-14 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472220', 'tblTempUsageDetail_20' ) end [2025-02-14 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472220', 'tblTempVendorCDR_20' ) start [2025-02-14 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472220', 'tblTempVendorCDR_20' ) end [2025-02-14 07:29:18] Production.INFO: ProcessCDR(1,14472220,1,1,2) [2025-02-14 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472220', 'tblTempUsageDetail_20' ) start [2025-02-14 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472220', 'tblTempUsageDetail_20' ) end [2025-02-14 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:29:22] Production.INFO: ==27860== Releasing lock... [2025-02-14 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:29:22] Production.INFO: 29 MB #Memory Used# [2025-02-14 07:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:30:07 [end_date_ymd] => 2025-02-14 07:30:07 [RateCDR] => 1 ) [2025-02-14 07:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:30:07' and `end` < '2025-02-14 07:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:30:21] Production.INFO: count ==204 [2025-02-14 07:30:21] Production.ERROR: pbx CDR StartTime 2025-02-14 04:30:07 - End Time 2025-02-14 07:30:07 [2025-02-14 07:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472226', 'tblTempUsageDetail_20' ) start [2025-02-14 07:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472226', 'tblTempUsageDetail_20' ) end [2025-02-14 07:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472226', 'tblTempVendorCDR_20' ) start [2025-02-14 07:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472226', 'tblTempVendorCDR_20' ) end [2025-02-14 07:30:21] Production.INFO: ProcessCDR(1,14472226,1,1,2) [2025-02-14 07:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472226', 'tblTempUsageDetail_20' ) start [2025-02-14 07:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472226', 'tblTempUsageDetail_20' ) end [2025-02-14 07:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:30:24] Production.INFO: ==27942== Releasing lock... [2025-02-14 07:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:30:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-14 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:31:05 [end_date_ymd] => 2025-02-14 07:31:05 [RateCDR] => 1 ) [2025-02-14 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:31:05' and `end` < '2025-02-14 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:31:19] Production.INFO: count ==208 [2025-02-14 07:31:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:31:05 - End Time 2025-02-14 07:31:05 [2025-02-14 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472231', 'tblTempUsageDetail_20' ) start [2025-02-14 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472231', 'tblTempUsageDetail_20' ) end [2025-02-14 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472231', 'tblTempVendorCDR_20' ) start [2025-02-14 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472231', 'tblTempVendorCDR_20' ) end [2025-02-14 07:31:19] Production.INFO: ProcessCDR(1,14472231,1,1,2) [2025-02-14 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472231', 'tblTempUsageDetail_20' ) start [2025-02-14 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472231', 'tblTempUsageDetail_20' ) end [2025-02-14 07:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:31:23] Production.INFO: ==28031== Releasing lock... [2025-02-14 07:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:31:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-14 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:32:05 [end_date_ymd] => 2025-02-14 07:32:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:32:05' and `end` < '2025-02-14 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-02-14 07:32:18] Production.INFO: count ==222 [2025-02-14 07:32:18] Production.ERROR: pbx CDR StartTime 2025-02-14 04:32:05 - End Time 2025-02-14 07:32:05 [2025-02-14 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472236', 'tblTempUsageDetail_20' ) start [2025-02-14 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472236', 'tblTempUsageDetail_20' ) end [2025-02-14 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472236', 'tblTempVendorCDR_20' ) start [2025-02-14 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472236', 'tblTempVendorCDR_20' ) end [2025-02-14 07:32:19] Production.INFO: ProcessCDR(1,14472236,1,1,2) [2025-02-14 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472236', 'tblTempUsageDetail_20' ) start [2025-02-14 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472236', 'tblTempUsageDetail_20' ) end [2025-02-14 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:32:22] Production.INFO: ==28150== Releasing lock... [2025-02-14 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:32:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-14 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:33:06 [end_date_ymd] => 2025-02-14 07:33:06 [RateCDR] => 1 ) [2025-02-14 07:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:33:06' and `end` < '2025-02-14 07:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:33:21] Production.INFO: count ==223 [2025-02-14 07:33:21] Production.ERROR: pbx CDR StartTime 2025-02-14 04:33:06 - End Time 2025-02-14 07:33:06 [2025-02-14 07:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472241', 'tblTempUsageDetail_20' ) start [2025-02-14 07:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472241', 'tblTempUsageDetail_20' ) end [2025-02-14 07:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472241', 'tblTempVendorCDR_20' ) start [2025-02-14 07:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472241', 'tblTempVendorCDR_20' ) end [2025-02-14 07:33:21] Production.INFO: ProcessCDR(1,14472241,1,1,2) [2025-02-14 07:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472241', 'tblTempUsageDetail_20' ) start [2025-02-14 07:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472241', 'tblTempUsageDetail_20' ) end [2025-02-14 07:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:33:26] Production.INFO: ==28234== Releasing lock... [2025-02-14 07:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:33:26] Production.INFO: 29.25 MB #Memory Used# [2025-02-14 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:34:05 [end_date_ymd] => 2025-02-14 07:34:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:34:05' and `end` < '2025-02-14 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-02-14 07:34:18] Production.INFO: count ==244 [2025-02-14 07:34:18] Production.ERROR: pbx CDR StartTime 2025-02-14 04:34:05 - End Time 2025-02-14 07:34:05 [2025-02-14 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472246', 'tblTempUsageDetail_20' ) start [2025-02-14 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472246', 'tblTempUsageDetail_20' ) end [2025-02-14 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472246', 'tblTempVendorCDR_20' ) start [2025-02-14 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472246', 'tblTempVendorCDR_20' ) end [2025-02-14 07:34:18] Production.INFO: ProcessCDR(1,14472246,1,1,2) [2025-02-14 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472246', 'tblTempUsageDetail_20' ) start [2025-02-14 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472246', 'tblTempUsageDetail_20' ) end [2025-02-14 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:34:22] Production.INFO: ==28310== Releasing lock... [2025-02-14 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:34:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-14 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:35:06 [end_date_ymd] => 2025-02-14 07:35:06 [RateCDR] => 1 ) [2025-02-14 07: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-02-14 04:35:06' and `end` < '2025-02-14 07: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-02-14 07:35:19] Production.INFO: count ==253 [2025-02-14 07:35:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:35:06 - End Time 2025-02-14 07:35:06 [2025-02-14 07:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472251', 'tblTempUsageDetail_20' ) start [2025-02-14 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472251', 'tblTempUsageDetail_20' ) end [2025-02-14 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472251', 'tblTempVendorCDR_20' ) start [2025-02-14 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472251', 'tblTempVendorCDR_20' ) end [2025-02-14 07:35:19] Production.INFO: ProcessCDR(1,14472251,1,1,2) [2025-02-14 07:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472251', 'tblTempUsageDetail_20' ) start [2025-02-14 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472251', 'tblTempUsageDetail_20' ) end [2025-02-14 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:35:22] Production.INFO: ==28394== Releasing lock... [2025-02-14 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:35:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-14 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:36:05 [end_date_ymd] => 2025-02-14 07:36:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:36:05' and `end` < '2025-02-14 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-02-14 07:36:20] Production.INFO: count ==253 [2025-02-14 07:36:20] Production.ERROR: pbx CDR StartTime 2025-02-14 04:36:05 - End Time 2025-02-14 07:36:05 [2025-02-14 07:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472256', 'tblTempUsageDetail_20' ) start [2025-02-14 07:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472256', 'tblTempUsageDetail_20' ) end [2025-02-14 07:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472256', 'tblTempVendorCDR_20' ) start [2025-02-14 07:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472256', 'tblTempVendorCDR_20' ) end [2025-02-14 07:36:20] Production.INFO: ProcessCDR(1,14472256,1,1,2) [2025-02-14 07:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472256', 'tblTempUsageDetail_20' ) start [2025-02-14 07:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472256', 'tblTempUsageDetail_20' ) end [2025-02-14 07:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:36:23] Production.INFO: ==28475== Releasing lock... [2025-02-14 07:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:36:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-14 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:37:05 [end_date_ymd] => 2025-02-14 07:37:05 [RateCDR] => 1 ) [2025-02-14 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:37:05' and `end` < '2025-02-14 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:37:18] Production.INFO: count ==253 [2025-02-14 07:37:18] Production.ERROR: pbx CDR StartTime 2025-02-14 04:37:05 - End Time 2025-02-14 07:37:05 [2025-02-14 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472261', 'tblTempUsageDetail_20' ) start [2025-02-14 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472261', 'tblTempUsageDetail_20' ) end [2025-02-14 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472261', 'tblTempVendorCDR_20' ) start [2025-02-14 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472261', 'tblTempVendorCDR_20' ) end [2025-02-14 07:37:18] Production.INFO: ProcessCDR(1,14472261,1,1,2) [2025-02-14 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472261', 'tblTempUsageDetail_20' ) start [2025-02-14 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472261', 'tblTempUsageDetail_20' ) end [2025-02-14 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:37:21] Production.INFO: ==28558== Releasing lock... [2025-02-14 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-14 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:38:05 [end_date_ymd] => 2025-02-14 07:38:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:38:05' and `end` < '2025-02-14 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-02-14 07:38:18] Production.INFO: count ==253 [2025-02-14 07:38:18] Production.ERROR: pbx CDR StartTime 2025-02-14 04:38:05 - End Time 2025-02-14 07:38:05 [2025-02-14 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472266', 'tblTempUsageDetail_20' ) start [2025-02-14 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472266', 'tblTempUsageDetail_20' ) end [2025-02-14 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472266', 'tblTempVendorCDR_20' ) start [2025-02-14 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472266', 'tblTempVendorCDR_20' ) end [2025-02-14 07:38:18] Production.INFO: ProcessCDR(1,14472266,1,1,2) [2025-02-14 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472266', 'tblTempUsageDetail_20' ) start [2025-02-14 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472266', 'tblTempUsageDetail_20' ) end [2025-02-14 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:38:21] Production.INFO: ==28639== Releasing lock... [2025-02-14 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:38:21] Production.INFO: 30 MB #Memory Used# [2025-02-14 07:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:39:05 [end_date_ymd] => 2025-02-14 07:39:05 [RateCDR] => 1 ) [2025-02-14 07: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-02-14 04:39:05' and `end` < '2025-02-14 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-02-14 07:39:19] Production.INFO: count ==253 [2025-02-14 07:39:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:39:05 - End Time 2025-02-14 07:39:05 [2025-02-14 07:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472271', 'tblTempUsageDetail_20' ) start [2025-02-14 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472271', 'tblTempUsageDetail_20' ) end [2025-02-14 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472271', 'tblTempVendorCDR_20' ) start [2025-02-14 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472271', 'tblTempVendorCDR_20' ) end [2025-02-14 07:39:19] Production.INFO: ProcessCDR(1,14472271,1,1,2) [2025-02-14 07:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472271', 'tblTempUsageDetail_20' ) start [2025-02-14 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472271', 'tblTempUsageDetail_20' ) end [2025-02-14 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:39:22] Production.INFO: ==28745== Releasing lock... [2025-02-14 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:39:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-14 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:40:06 [end_date_ymd] => 2025-02-14 07:40:06 [RateCDR] => 1 ) [2025-02-14 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:40:06' and `end` < '2025-02-14 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:40:19] Production.INFO: count ==257 [2025-02-14 07:40:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:40:06 - End Time 2025-02-14 07:40:06 [2025-02-14 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472277', 'tblTempUsageDetail_20' ) start [2025-02-14 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472277', 'tblTempUsageDetail_20' ) end [2025-02-14 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472277', 'tblTempVendorCDR_20' ) start [2025-02-14 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472277', 'tblTempVendorCDR_20' ) end [2025-02-14 07:40:19] Production.INFO: ProcessCDR(1,14472277,1,1,2) [2025-02-14 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472277', 'tblTempUsageDetail_20' ) start [2025-02-14 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472277', 'tblTempUsageDetail_20' ) end [2025-02-14 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:40:22] Production.INFO: ==28828== Releasing lock... [2025-02-14 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-14 07:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:41:06 [end_date_ymd] => 2025-02-14 07:41:06 [RateCDR] => 1 ) [2025-02-14 07:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:41:06' and `end` < '2025-02-14 07:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:41:20] Production.INFO: count ==268 [2025-02-14 07:41:20] Production.ERROR: pbx CDR StartTime 2025-02-14 04:41:06 - End Time 2025-02-14 07:41:06 [2025-02-14 07:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472282', 'tblTempUsageDetail_20' ) start [2025-02-14 07:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472282', 'tblTempUsageDetail_20' ) end [2025-02-14 07:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472282', 'tblTempVendorCDR_20' ) start [2025-02-14 07:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472282', 'tblTempVendorCDR_20' ) end [2025-02-14 07:41:20] Production.INFO: ProcessCDR(1,14472282,1,1,2) [2025-02-14 07:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472282', 'tblTempUsageDetail_20' ) start [2025-02-14 07:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472282', 'tblTempUsageDetail_20' ) end [2025-02-14 07:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:41:24] Production.INFO: ==28910== Releasing lock... [2025-02-14 07:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:41:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-14 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:42:05 [end_date_ymd] => 2025-02-14 07:42:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:42:05' and `end` < '2025-02-14 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-02-14 07:42:19] Production.INFO: count ==268 [2025-02-14 07:42:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:42:05 - End Time 2025-02-14 07:42:05 [2025-02-14 07:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472287', 'tblTempUsageDetail_20' ) start [2025-02-14 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472287', 'tblTempUsageDetail_20' ) end [2025-02-14 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472287', 'tblTempVendorCDR_20' ) start [2025-02-14 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472287', 'tblTempVendorCDR_20' ) end [2025-02-14 07:42:19] Production.INFO: ProcessCDR(1,14472287,1,1,2) [2025-02-14 07:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472287', 'tblTempUsageDetail_20' ) start [2025-02-14 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472287', 'tblTempUsageDetail_20' ) end [2025-02-14 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:42:22] Production.INFO: ==28991== Releasing lock... [2025-02-14 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:42:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-14 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:43:05 [end_date_ymd] => 2025-02-14 07:43:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:43:05' and `end` < '2025-02-14 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-02-14 07:43:18] Production.INFO: count ==268 [2025-02-14 07:43:18] Production.ERROR: pbx CDR StartTime 2025-02-14 04:43:05 - End Time 2025-02-14 07:43:05 [2025-02-14 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472291', 'tblTempUsageDetail_20' ) start [2025-02-14 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472291', 'tblTempUsageDetail_20' ) end [2025-02-14 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472291', 'tblTempVendorCDR_20' ) start [2025-02-14 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472291', 'tblTempVendorCDR_20' ) end [2025-02-14 07:43:18] Production.INFO: ProcessCDR(1,14472291,1,1,2) [2025-02-14 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472291', 'tblTempUsageDetail_20' ) start [2025-02-14 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472291', 'tblTempUsageDetail_20' ) end [2025-02-14 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:43:21] Production.INFO: ==29072== Releasing lock... [2025-02-14 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:43:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-14 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:44:06 [end_date_ymd] => 2025-02-14 07:44:06 [RateCDR] => 1 ) [2025-02-14 07:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:44:06' and `end` < '2025-02-14 07:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:44:19] Production.INFO: count ==269 [2025-02-14 07:44:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:44:06 - End Time 2025-02-14 07:44:06 [2025-02-14 07:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472297', 'tblTempUsageDetail_20' ) start [2025-02-14 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472297', 'tblTempUsageDetail_20' ) end [2025-02-14 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472297', 'tblTempVendorCDR_20' ) start [2025-02-14 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472297', 'tblTempVendorCDR_20' ) end [2025-02-14 07:44:19] Production.INFO: ProcessCDR(1,14472297,1,1,2) [2025-02-14 07:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472297', 'tblTempUsageDetail_20' ) start [2025-02-14 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472297', 'tblTempUsageDetail_20' ) end [2025-02-14 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:44:22] Production.INFO: ==29150== Releasing lock... [2025-02-14 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:44:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:45:05 [end_date_ymd] => 2025-02-14 07:45:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:45:05' and `end` < '2025-02-14 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-02-14 07:45:18] Production.INFO: count ==274 [2025-02-14 07:45:18] Production.ERROR: pbx CDR StartTime 2025-02-14 04:45:05 - End Time 2025-02-14 07:45:05 [2025-02-14 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472302', 'tblTempUsageDetail_20' ) start [2025-02-14 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472302', 'tblTempUsageDetail_20' ) end [2025-02-14 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472302', 'tblTempVendorCDR_20' ) start [2025-02-14 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472302', 'tblTempVendorCDR_20' ) end [2025-02-14 07:45:18] Production.INFO: ProcessCDR(1,14472302,1,1,2) [2025-02-14 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472302', 'tblTempUsageDetail_20' ) start [2025-02-14 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472302', 'tblTempUsageDetail_20' ) end [2025-02-14 07:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:45:23] Production.INFO: ==29231== Releasing lock... [2025-02-14 07:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:45:23] Production.INFO: 30 MB #Memory Used# [2025-02-14 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:46:05 [end_date_ymd] => 2025-02-14 07:46:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:46:05' and `end` < '2025-02-14 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-02-14 07:46:18] Production.INFO: count ==281 [2025-02-14 07:46:18] Production.ERROR: pbx CDR StartTime 2025-02-14 04:46:05 - End Time 2025-02-14 07:46:05 [2025-02-14 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472307', 'tblTempUsageDetail_20' ) start [2025-02-14 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472307', 'tblTempUsageDetail_20' ) end [2025-02-14 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472307', 'tblTempVendorCDR_20' ) start [2025-02-14 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472307', 'tblTempVendorCDR_20' ) end [2025-02-14 07:46:18] Production.INFO: ProcessCDR(1,14472307,1,1,2) [2025-02-14 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472307', 'tblTempUsageDetail_20' ) start [2025-02-14 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472307', 'tblTempUsageDetail_20' ) end [2025-02-14 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:46:22] Production.INFO: ==29312== Releasing lock... [2025-02-14 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:46:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 07:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:47:06 [end_date_ymd] => 2025-02-14 07:47:06 [RateCDR] => 1 ) [2025-02-14 07:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:47:06' and `end` < '2025-02-14 07:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:47:19] Production.INFO: count ==281 [2025-02-14 07:47:20] Production.ERROR: pbx CDR StartTime 2025-02-14 04:47:06 - End Time 2025-02-14 07:47:06 [2025-02-14 07:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472312', 'tblTempUsageDetail_20' ) start [2025-02-14 07:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472312', 'tblTempUsageDetail_20' ) end [2025-02-14 07:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472312', 'tblTempVendorCDR_20' ) start [2025-02-14 07:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472312', 'tblTempVendorCDR_20' ) end [2025-02-14 07:47:20] Production.INFO: ProcessCDR(1,14472312,1,1,2) [2025-02-14 07:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472312', 'tblTempUsageDetail_20' ) start [2025-02-14 07:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472312', 'tblTempUsageDetail_20' ) end [2025-02-14 07:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:47:23] Production.INFO: ==29430== Releasing lock... [2025-02-14 07:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:47:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:48:05 [end_date_ymd] => 2025-02-14 07:48:05 [RateCDR] => 1 ) [2025-02-14 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:48:05' and `end` < '2025-02-14 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:48:19] Production.INFO: count ==282 [2025-02-14 07:48:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:48:05 - End Time 2025-02-14 07:48:05 [2025-02-14 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472317', 'tblTempUsageDetail_20' ) start [2025-02-14 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472317', 'tblTempUsageDetail_20' ) end [2025-02-14 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472317', 'tblTempVendorCDR_20' ) start [2025-02-14 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472317', 'tblTempVendorCDR_20' ) end [2025-02-14 07:48:19] Production.INFO: ProcessCDR(1,14472317,1,1,2) [2025-02-14 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472317', 'tblTempUsageDetail_20' ) start [2025-02-14 07:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472317', 'tblTempUsageDetail_20' ) end [2025-02-14 07:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:48:24] Production.INFO: ==29506== Releasing lock... [2025-02-14 07:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:48:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:49:05 [end_date_ymd] => 2025-02-14 07:49:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:49:05' and `end` < '2025-02-14 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-02-14 07:49:19] Production.INFO: count ==282 [2025-02-14 07:49:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:49:05 - End Time 2025-02-14 07:49:05 [2025-02-14 07:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472322', 'tblTempUsageDetail_20' ) start [2025-02-14 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472322', 'tblTempUsageDetail_20' ) end [2025-02-14 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472322', 'tblTempVendorCDR_20' ) start [2025-02-14 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472322', 'tblTempVendorCDR_20' ) end [2025-02-14 07:49:19] Production.INFO: ProcessCDR(1,14472322,1,1,2) [2025-02-14 07:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472322', 'tblTempUsageDetail_20' ) start [2025-02-14 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472322', 'tblTempUsageDetail_20' ) end [2025-02-14 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:49:22] Production.INFO: ==29588== Releasing lock... [2025-02-14 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:49:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:50:05 [end_date_ymd] => 2025-02-14 07:50:05 [RateCDR] => 1 ) [2025-02-14 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:50:05' and `end` < '2025-02-14 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:50:19] Production.INFO: count ==291 [2025-02-14 07:50:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:50:05 - End Time 2025-02-14 07:50:05 [2025-02-14 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472328', 'tblTempUsageDetail_20' ) start [2025-02-14 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472328', 'tblTempUsageDetail_20' ) end [2025-02-14 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472328', 'tblTempVendorCDR_20' ) start [2025-02-14 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472328', 'tblTempVendorCDR_20' ) end [2025-02-14 07:50:19] Production.INFO: ProcessCDR(1,14472328,1,1,2) [2025-02-14 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472328', 'tblTempUsageDetail_20' ) start [2025-02-14 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472328', 'tblTempUsageDetail_20' ) end [2025-02-14 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:50:22] Production.INFO: ==29667== Releasing lock... [2025-02-14 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:50:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-14 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:51:05 [end_date_ymd] => 2025-02-14 07:51:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:51:05' and `end` < '2025-02-14 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-02-14 07:51:18] Production.INFO: count ==304 [2025-02-14 07:51:18] Production.ERROR: pbx CDR StartTime 2025-02-14 04:51:05 - End Time 2025-02-14 07:51:05 [2025-02-14 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472333', 'tblTempUsageDetail_20' ) start [2025-02-14 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472333', 'tblTempUsageDetail_20' ) end [2025-02-14 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472333', 'tblTempVendorCDR_20' ) start [2025-02-14 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472333', 'tblTempVendorCDR_20' ) end [2025-02-14 07:51:18] Production.INFO: ProcessCDR(1,14472333,1,1,2) [2025-02-14 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472333', 'tblTempUsageDetail_20' ) start [2025-02-14 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472333', 'tblTempUsageDetail_20' ) end [2025-02-14 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:51:21] Production.INFO: ==29748== Releasing lock... [2025-02-14 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 07:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:52:04 [end_date_ymd] => 2025-02-14 07:52:04 [RateCDR] => 1 ) [2025-02-14 07: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-02-14 04:52:04' and `end` < '2025-02-14 07: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-02-14 07:52:17] Production.INFO: count ==305 [2025-02-14 07:52:17] Production.ERROR: pbx CDR StartTime 2025-02-14 04:52:04 - End Time 2025-02-14 07:52:04 [2025-02-14 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472338', 'tblTempUsageDetail_20' ) start [2025-02-14 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472338', 'tblTempUsageDetail_20' ) end [2025-02-14 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472338', 'tblTempVendorCDR_20' ) start [2025-02-14 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472338', 'tblTempVendorCDR_20' ) end [2025-02-14 07:52:17] Production.INFO: ProcessCDR(1,14472338,1,1,2) [2025-02-14 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472338', 'tblTempUsageDetail_20' ) start [2025-02-14 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472338', 'tblTempUsageDetail_20' ) end [2025-02-14 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:52:22] Production.INFO: ==29819== Releasing lock... [2025-02-14 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:52:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-14 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:53:05 [end_date_ymd] => 2025-02-14 07:53:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:53:05' and `end` < '2025-02-14 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-02-14 07:53:19] Production.INFO: count ==306 [2025-02-14 07:53:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:53:05 - End Time 2025-02-14 07:53:05 [2025-02-14 07:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472343', 'tblTempUsageDetail_20' ) start [2025-02-14 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472343', 'tblTempUsageDetail_20' ) end [2025-02-14 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472343', 'tblTempVendorCDR_20' ) start [2025-02-14 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472343', 'tblTempVendorCDR_20' ) end [2025-02-14 07:53:19] Production.INFO: ProcessCDR(1,14472343,1,1,2) [2025-02-14 07:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472343', 'tblTempUsageDetail_20' ) start [2025-02-14 07:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472343', 'tblTempUsageDetail_20' ) end [2025-02-14 07:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:53:24] Production.INFO: ==29897== Releasing lock... [2025-02-14 07:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:53:24] Production.INFO: 30 MB #Memory Used# [2025-02-14 07:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:54:04 [end_date_ymd] => 2025-02-14 07:54:04 [RateCDR] => 1 ) [2025-02-14 07: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-02-14 04:54:04' and `end` < '2025-02-14 07: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-02-14 07:54:17] Production.INFO: count ==306 [2025-02-14 07:54:17] Production.ERROR: pbx CDR StartTime 2025-02-14 04:54:04 - End Time 2025-02-14 07:54:04 [2025-02-14 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472348', 'tblTempUsageDetail_20' ) start [2025-02-14 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472348', 'tblTempUsageDetail_20' ) end [2025-02-14 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472348', 'tblTempVendorCDR_20' ) start [2025-02-14 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472348', 'tblTempVendorCDR_20' ) end [2025-02-14 07:54:17] Production.INFO: ProcessCDR(1,14472348,1,1,2) [2025-02-14 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472348', 'tblTempUsageDetail_20' ) start [2025-02-14 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472348', 'tblTempUsageDetail_20' ) end [2025-02-14 07:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:54:20] Production.INFO: ==29973== Releasing lock... [2025-02-14 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:54:20] Production.INFO: 30 MB #Memory Used# [2025-02-14 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:55:05 [end_date_ymd] => 2025-02-14 07:55:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:55:05' and `end` < '2025-02-14 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-02-14 07:55:18] Production.INFO: count ==306 [2025-02-14 07:55:18] Production.ERROR: pbx CDR StartTime 2025-02-14 04:55:05 - End Time 2025-02-14 07:55:05 [2025-02-14 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472353', 'tblTempUsageDetail_20' ) start [2025-02-14 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472353', 'tblTempUsageDetail_20' ) end [2025-02-14 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472353', 'tblTempVendorCDR_20' ) start [2025-02-14 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472353', 'tblTempVendorCDR_20' ) end [2025-02-14 07:55:18] Production.INFO: ProcessCDR(1,14472353,1,1,2) [2025-02-14 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472353', 'tblTempUsageDetail_20' ) start [2025-02-14 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472353', 'tblTempUsageDetail_20' ) end [2025-02-14 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:55:22] Production.INFO: ==30046== Releasing lock... [2025-02-14 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:55:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:56:05 [end_date_ymd] => 2025-02-14 07:56:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:56:05' and `end` < '2025-02-14 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-02-14 07:56:19] Production.INFO: count ==306 [2025-02-14 07:56:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:56:05 - End Time 2025-02-14 07:56:05 [2025-02-14 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472358', 'tblTempUsageDetail_20' ) start [2025-02-14 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472358', 'tblTempUsageDetail_20' ) end [2025-02-14 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472358', 'tblTempVendorCDR_20' ) start [2025-02-14 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472358', 'tblTempVendorCDR_20' ) end [2025-02-14 07:56:19] Production.INFO: ProcessCDR(1,14472358,1,1,2) [2025-02-14 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472358', 'tblTempUsageDetail_20' ) start [2025-02-14 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472358', 'tblTempUsageDetail_20' ) end [2025-02-14 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:56:22] Production.INFO: ==30120== Releasing lock... [2025-02-14 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:56:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:57:05 [end_date_ymd] => 2025-02-14 07:57:05 [RateCDR] => 1 ) [2025-02-14 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:57:05' and `end` < '2025-02-14 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:57:18] Production.INFO: count ==306 [2025-02-14 07:57:18] Production.ERROR: pbx CDR StartTime 2025-02-14 04:57:05 - End Time 2025-02-14 07:57:05 [2025-02-14 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472363', 'tblTempUsageDetail_20' ) start [2025-02-14 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472363', 'tblTempUsageDetail_20' ) end [2025-02-14 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472363', 'tblTempVendorCDR_20' ) start [2025-02-14 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472363', 'tblTempVendorCDR_20' ) end [2025-02-14 07:57:19] Production.INFO: ProcessCDR(1,14472363,1,1,2) [2025-02-14 07:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472363', 'tblTempUsageDetail_20' ) start [2025-02-14 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472363', 'tblTempUsageDetail_20' ) end [2025-02-14 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:57:22] Production.INFO: ==30191== Releasing lock... [2025-02-14 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:57:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:58:06 [end_date_ymd] => 2025-02-14 07:58:06 [RateCDR] => 1 ) [2025-02-14 07:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 04:58:06' and `end` < '2025-02-14 07:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 07:58:19] Production.INFO: count ==306 [2025-02-14 07:58:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:58:06 - End Time 2025-02-14 07:58:06 [2025-02-14 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472368', 'tblTempUsageDetail_20' ) start [2025-02-14 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472368', 'tblTempUsageDetail_20' ) end [2025-02-14 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472368', 'tblTempVendorCDR_20' ) start [2025-02-14 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472368', 'tblTempVendorCDR_20' ) end [2025-02-14 07:58:19] Production.INFO: ProcessCDR(1,14472368,1,1,2) [2025-02-14 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472368', 'tblTempUsageDetail_20' ) start [2025-02-14 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472368', 'tblTempUsageDetail_20' ) end [2025-02-14 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:58:22] Production.INFO: ==30264== Releasing lock... [2025-02-14 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:58:22] Production.INFO: 30 MB #Memory Used# [2025-02-14 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 04:59:05 [end_date_ymd] => 2025-02-14 07:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 04:59:05' and `end` < '2025-02-14 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-02-14 07:59:19] Production.INFO: count ==311 [2025-02-14 07:59:19] Production.ERROR: pbx CDR StartTime 2025-02-14 04:59:05 - End Time 2025-02-14 07:59:05 [2025-02-14 07:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472373', 'tblTempUsageDetail_20' ) start [2025-02-14 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472373', 'tblTempUsageDetail_20' ) end [2025-02-14 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472373', 'tblTempVendorCDR_20' ) start [2025-02-14 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472373', 'tblTempVendorCDR_20' ) end [2025-02-14 07:59:19] Production.INFO: ProcessCDR(1,14472373,1,1,2) [2025-02-14 07:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472373', 'tblTempUsageDetail_20' ) start [2025-02-14 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472373', 'tblTempUsageDetail_20' ) end [2025-02-14 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 07:59:22] Production.INFO: ==30335== Releasing lock... [2025-02-14 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 07:59:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:00:07 [end_date_ymd] => 2025-02-14 08:00:07 [RateCDR] => 1 ) [2025-02-14 08:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:00:07' and `end` < '2025-02-14 08:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:00:20] Production.INFO: count ==318 [2025-02-14 08:00:20] Production.ERROR: pbx CDR StartTime 2025-02-14 05:00:07 - End Time 2025-02-14 08:00:07 [2025-02-14 08:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472379', 'tblTempUsageDetail_20' ) start [2025-02-14 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472379', 'tblTempUsageDetail_20' ) end [2025-02-14 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472379', 'tblTempVendorCDR_20' ) start [2025-02-14 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472379', 'tblTempVendorCDR_20' ) end [2025-02-14 08:00:20] Production.INFO: ProcessCDR(1,14472379,1,1,2) [2025-02-14 08:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472379', 'tblTempUsageDetail_20' ) start [2025-02-14 08:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472379', 'tblTempUsageDetail_20' ) end [2025-02-14 08:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:00:25] Production.INFO: ==30413== Releasing lock... [2025-02-14 08:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:00:25] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:01:05 [end_date_ymd] => 2025-02-14 08:01:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:01:05' and `end` < '2025-02-14 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-02-14 08:01:20] Production.INFO: count ==320 [2025-02-14 08:01:20] Production.ERROR: pbx CDR StartTime 2025-02-14 05:01:05 - End Time 2025-02-14 08:01:05 [2025-02-14 08:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472384', 'tblTempUsageDetail_20' ) start [2025-02-14 08:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472384', 'tblTempUsageDetail_20' ) end [2025-02-14 08:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472384', 'tblTempVendorCDR_20' ) start [2025-02-14 08:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472384', 'tblTempVendorCDR_20' ) end [2025-02-14 08:01:20] Production.INFO: ProcessCDR(1,14472384,1,1,2) [2025-02-14 08:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472384', 'tblTempUsageDetail_20' ) start [2025-02-14 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472384', 'tblTempUsageDetail_20' ) end [2025-02-14 08:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:01:23] Production.INFO: ==30497== Releasing lock... [2025-02-14 08:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:01:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:02:05 [end_date_ymd] => 2025-02-14 08:02:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:02:05' and `end` < '2025-02-14 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-02-14 08:02:18] Production.INFO: count ==325 [2025-02-14 08:02:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:02:05 - End Time 2025-02-14 08:02:05 [2025-02-14 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472389', 'tblTempUsageDetail_20' ) start [2025-02-14 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472389', 'tblTempUsageDetail_20' ) end [2025-02-14 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472389', 'tblTempVendorCDR_20' ) start [2025-02-14 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472389', 'tblTempVendorCDR_20' ) end [2025-02-14 08:02:18] Production.INFO: ProcessCDR(1,14472389,1,1,2) [2025-02-14 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472389', 'tblTempUsageDetail_20' ) start [2025-02-14 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472389', 'tblTempUsageDetail_20' ) end [2025-02-14 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:02:22] Production.INFO: ==30573== Releasing lock... [2025-02-14 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:02:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:03:05 [end_date_ymd] => 2025-02-14 08:03:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:03:05' and `end` < '2025-02-14 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-02-14 08:03:18] Production.INFO: count ==326 [2025-02-14 08:03:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:03:05 - End Time 2025-02-14 08:03:05 [2025-02-14 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472394', 'tblTempUsageDetail_20' ) start [2025-02-14 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472394', 'tblTempUsageDetail_20' ) end [2025-02-14 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472394', 'tblTempVendorCDR_20' ) start [2025-02-14 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472394', 'tblTempVendorCDR_20' ) end [2025-02-14 08:03:18] Production.INFO: ProcessCDR(1,14472394,1,1,2) [2025-02-14 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472394', 'tblTempUsageDetail_20' ) start [2025-02-14 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472394', 'tblTempUsageDetail_20' ) end [2025-02-14 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:03:22] Production.INFO: ==30685== Releasing lock... [2025-02-14 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:03:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-14 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:04:05 [end_date_ymd] => 2025-02-14 08:04:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:04:05' and `end` < '2025-02-14 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-02-14 08:04:18] Production.INFO: count ==341 [2025-02-14 08:04:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:04:05 - End Time 2025-02-14 08:04:05 [2025-02-14 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472399', 'tblTempUsageDetail_20' ) start [2025-02-14 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472399', 'tblTempUsageDetail_20' ) end [2025-02-14 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472399', 'tblTempVendorCDR_20' ) start [2025-02-14 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472399', 'tblTempVendorCDR_20' ) end [2025-02-14 08:04:18] Production.INFO: ProcessCDR(1,14472399,1,1,2) [2025-02-14 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472399', 'tblTempUsageDetail_20' ) start [2025-02-14 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472399', 'tblTempUsageDetail_20' ) end [2025-02-14 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:04:22] Production.INFO: ==30758== Releasing lock... [2025-02-14 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:04:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:05:05 [end_date_ymd] => 2025-02-14 08:05:05 [RateCDR] => 1 ) [2025-02-14 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:05:05' and `end` < '2025-02-14 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:05:18] Production.INFO: count ==352 [2025-02-14 08:05:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:05:05 - End Time 2025-02-14 08:05:05 [2025-02-14 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472404', 'tblTempUsageDetail_20' ) start [2025-02-14 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472404', 'tblTempUsageDetail_20' ) end [2025-02-14 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472404', 'tblTempVendorCDR_20' ) start [2025-02-14 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472404', 'tblTempVendorCDR_20' ) end [2025-02-14 08:05:18] Production.INFO: ProcessCDR(1,14472404,1,1,2) [2025-02-14 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472404', 'tblTempUsageDetail_20' ) start [2025-02-14 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472404', 'tblTempUsageDetail_20' ) end [2025-02-14 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:05:22] Production.INFO: ==30828== Releasing lock... [2025-02-14 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:05:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-14 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:06:05 [end_date_ymd] => 2025-02-14 08:06:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:06:05' and `end` < '2025-02-14 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-02-14 08:06:18] Production.INFO: count ==359 [2025-02-14 08:06:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:06:05 - End Time 2025-02-14 08:06:05 [2025-02-14 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472409', 'tblTempUsageDetail_20' ) start [2025-02-14 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472409', 'tblTempUsageDetail_20' ) end [2025-02-14 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472409', 'tblTempVendorCDR_20' ) start [2025-02-14 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472409', 'tblTempVendorCDR_20' ) end [2025-02-14 08:06:18] Production.INFO: ProcessCDR(1,14472409,1,1,2) [2025-02-14 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472409', 'tblTempUsageDetail_20' ) start [2025-02-14 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472409', 'tblTempUsageDetail_20' ) end [2025-02-14 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:06:22] Production.INFO: ==30899== Releasing lock... [2025-02-14 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:06:22] Production.INFO: 31 MB #Memory Used# [2025-02-14 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:07:05 [end_date_ymd] => 2025-02-14 08:07:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:07:05' and `end` < '2025-02-14 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-02-14 08:07:19] Production.INFO: count ==364 [2025-02-14 08:07:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:07:05 - End Time 2025-02-14 08:07:05 [2025-02-14 08:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472414', 'tblTempUsageDetail_20' ) start [2025-02-14 08:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472414', 'tblTempUsageDetail_20' ) end [2025-02-14 08:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472414', 'tblTempVendorCDR_20' ) start [2025-02-14 08:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472414', 'tblTempVendorCDR_20' ) end [2025-02-14 08:07:20] Production.INFO: ProcessCDR(1,14472414,1,1,2) [2025-02-14 08:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472414', 'tblTempUsageDetail_20' ) start [2025-02-14 08:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472414', 'tblTempUsageDetail_20' ) end [2025-02-14 08:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:07:25] Production.INFO: ==30969== Releasing lock... [2025-02-14 08:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:07:25] Production.INFO: 31 MB #Memory Used# [2025-02-14 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:08:06 [end_date_ymd] => 2025-02-14 08:08:06 [RateCDR] => 1 ) [2025-02-14 08: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-02-14 05:08:06' and `end` < '2025-02-14 08: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-02-14 08:08:19] Production.INFO: count ==372 [2025-02-14 08:08:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:08:06 - End Time 2025-02-14 08:08:06 [2025-02-14 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472419', 'tblTempUsageDetail_20' ) start [2025-02-14 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472419', 'tblTempUsageDetail_20' ) end [2025-02-14 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472419', 'tblTempVendorCDR_20' ) start [2025-02-14 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472419', 'tblTempVendorCDR_20' ) end [2025-02-14 08:08:19] Production.INFO: ProcessCDR(1,14472419,1,1,2) [2025-02-14 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472419', 'tblTempUsageDetail_20' ) start [2025-02-14 08:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472419', 'tblTempUsageDetail_20' ) end [2025-02-14 08:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:08:24] Production.INFO: ==31044== Releasing lock... [2025-02-14 08:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:08:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-14 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:09:05 [end_date_ymd] => 2025-02-14 08:09:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:09:05' and `end` < '2025-02-14 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-02-14 08:09:20] Production.INFO: count ==377 [2025-02-14 08:09:20] Production.ERROR: pbx CDR StartTime 2025-02-14 05:09:05 - End Time 2025-02-14 08:09:05 [2025-02-14 08:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472424', 'tblTempUsageDetail_20' ) start [2025-02-14 08:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472424', 'tblTempUsageDetail_20' ) end [2025-02-14 08:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472424', 'tblTempVendorCDR_20' ) start [2025-02-14 08:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472424', 'tblTempVendorCDR_20' ) end [2025-02-14 08:09:20] Production.INFO: ProcessCDR(1,14472424,1,1,2) [2025-02-14 08:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472424', 'tblTempUsageDetail_20' ) start [2025-02-14 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472424', 'tblTempUsageDetail_20' ) end [2025-02-14 08:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:09:23] Production.INFO: ==31118== Releasing lock... [2025-02-14 08:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:09:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-14 08:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:10:07 [end_date_ymd] => 2025-02-14 08:10:07 [RateCDR] => 1 ) [2025-02-14 08:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:10:07' and `end` < '2025-02-14 08:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:10:20] Production.INFO: count ==392 [2025-02-14 08:10:20] Production.ERROR: pbx CDR StartTime 2025-02-14 05:10:07 - End Time 2025-02-14 08:10:07 [2025-02-14 08:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472430', 'tblTempUsageDetail_20' ) start [2025-02-14 08:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472430', 'tblTempUsageDetail_20' ) end [2025-02-14 08:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472430', 'tblTempVendorCDR_20' ) start [2025-02-14 08:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472430', 'tblTempVendorCDR_20' ) end [2025-02-14 08:10:20] Production.INFO: ProcessCDR(1,14472430,1,1,2) [2025-02-14 08:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472430', 'tblTempUsageDetail_20' ) start [2025-02-14 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472430', 'tblTempUsageDetail_20' ) end [2025-02-14 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:10:23] Production.INFO: ==31190== Releasing lock... [2025-02-14 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:10:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-14 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:11:05 [end_date_ymd] => 2025-02-14 08:11:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:11:05' and `end` < '2025-02-14 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-02-14 08:11:19] Production.INFO: count ==392 [2025-02-14 08:11:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:11:05 - End Time 2025-02-14 08:11:05 [2025-02-14 08:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472435', 'tblTempUsageDetail_20' ) start [2025-02-14 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472435', 'tblTempUsageDetail_20' ) end [2025-02-14 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472435', 'tblTempVendorCDR_20' ) start [2025-02-14 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472435', 'tblTempVendorCDR_20' ) end [2025-02-14 08:11:19] Production.INFO: ProcessCDR(1,14472435,1,1,2) [2025-02-14 08:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472435', 'tblTempUsageDetail_20' ) start [2025-02-14 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472435', 'tblTempUsageDetail_20' ) end [2025-02-14 08:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:11:23] Production.INFO: ==31270== Releasing lock... [2025-02-14 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:11:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-14 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:12:06 [end_date_ymd] => 2025-02-14 08:12:06 [RateCDR] => 1 ) [2025-02-14 08:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:12:06' and `end` < '2025-02-14 08:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:12:20] Production.INFO: count ==404 [2025-02-14 08:12:20] Production.ERROR: pbx CDR StartTime 2025-02-14 05:12:06 - End Time 2025-02-14 08:12:06 [2025-02-14 08:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472440', 'tblTempUsageDetail_20' ) start [2025-02-14 08:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472440', 'tblTempUsageDetail_20' ) end [2025-02-14 08:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472440', 'tblTempVendorCDR_20' ) start [2025-02-14 08:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472440', 'tblTempVendorCDR_20' ) end [2025-02-14 08:12:20] Production.INFO: ProcessCDR(1,14472440,1,1,2) [2025-02-14 08:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472440', 'tblTempUsageDetail_20' ) start [2025-02-14 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472440', 'tblTempUsageDetail_20' ) end [2025-02-14 08:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:12:23] Production.INFO: ==31342== Releasing lock... [2025-02-14 08:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:12:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-14 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:13:05 [end_date_ymd] => 2025-02-14 08:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:13:05' and `end` < '2025-02-14 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-02-14 08:13:19] Production.INFO: count ==404 [2025-02-14 08:13:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:13:05 - End Time 2025-02-14 08:13:05 [2025-02-14 08:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472445', 'tblTempUsageDetail_20' ) start [2025-02-14 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472445', 'tblTempUsageDetail_20' ) end [2025-02-14 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472445', 'tblTempVendorCDR_20' ) start [2025-02-14 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472445', 'tblTempVendorCDR_20' ) end [2025-02-14 08:13:19] Production.INFO: ProcessCDR(1,14472445,1,1,2) [2025-02-14 08:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472445', 'tblTempUsageDetail_20' ) start [2025-02-14 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472445', 'tblTempUsageDetail_20' ) end [2025-02-14 08:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:13:23] Production.INFO: ==31414== Releasing lock... [2025-02-14 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:13:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-14 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:14:06 [end_date_ymd] => 2025-02-14 08:14:06 [RateCDR] => 1 ) [2025-02-14 08:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:14:06' and `end` < '2025-02-14 08:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:14:19] Production.INFO: count ==408 [2025-02-14 08:14:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:14:06 - End Time 2025-02-14 08:14:06 [2025-02-14 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472450', 'tblTempUsageDetail_20' ) start [2025-02-14 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472450', 'tblTempUsageDetail_20' ) end [2025-02-14 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472450', 'tblTempVendorCDR_20' ) start [2025-02-14 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472450', 'tblTempVendorCDR_20' ) end [2025-02-14 08:14:19] Production.INFO: ProcessCDR(1,14472450,1,1,2) [2025-02-14 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472450', 'tblTempUsageDetail_20' ) start [2025-02-14 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472450', 'tblTempUsageDetail_20' ) end [2025-02-14 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:14:22] Production.INFO: ==31484== Releasing lock... [2025-02-14 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:14:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-14 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:15:05 [end_date_ymd] => 2025-02-14 08:15:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:15:05' and `end` < '2025-02-14 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-02-14 08:15:18] Production.INFO: count ==415 [2025-02-14 08:15:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:15:05 - End Time 2025-02-14 08:15:05 [2025-02-14 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472455', 'tblTempUsageDetail_20' ) start [2025-02-14 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472455', 'tblTempUsageDetail_20' ) end [2025-02-14 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472455', 'tblTempVendorCDR_20' ) start [2025-02-14 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472455', 'tblTempVendorCDR_20' ) end [2025-02-14 08:15:18] Production.INFO: ProcessCDR(1,14472455,1,1,2) [2025-02-14 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472455', 'tblTempUsageDetail_20' ) start [2025-02-14 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472455', 'tblTempUsageDetail_20' ) end [2025-02-14 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:15:21] Production.INFO: ==31556== Releasing lock... [2025-02-14 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:15:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-14 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:16:06 [end_date_ymd] => 2025-02-14 08:16:06 [RateCDR] => 1 ) [2025-02-14 08:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:16:06' and `end` < '2025-02-14 08:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:16:19] Production.INFO: count ==417 [2025-02-14 08:16:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:16:06 - End Time 2025-02-14 08:16:06 [2025-02-14 08:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472460', 'tblTempUsageDetail_20' ) start [2025-02-14 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472460', 'tblTempUsageDetail_20' ) end [2025-02-14 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472460', 'tblTempVendorCDR_20' ) start [2025-02-14 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472460', 'tblTempVendorCDR_20' ) end [2025-02-14 08:16:19] Production.INFO: ProcessCDR(1,14472460,1,1,2) [2025-02-14 08:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472460', 'tblTempUsageDetail_20' ) start [2025-02-14 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472460', 'tblTempUsageDetail_20' ) end [2025-02-14 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:16:22] Production.INFO: ==31633== Releasing lock... [2025-02-14 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:16:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-14 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:17:05 [end_date_ymd] => 2025-02-14 08:17:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:17:05' and `end` < '2025-02-14 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-02-14 08:17:19] Production.INFO: count ==422 [2025-02-14 08:17:20] Production.ERROR: pbx CDR StartTime 2025-02-14 05:17:05 - End Time 2025-02-14 08:17:05 [2025-02-14 08:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472465', 'tblTempUsageDetail_20' ) start [2025-02-14 08:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472465', 'tblTempUsageDetail_20' ) end [2025-02-14 08:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472465', 'tblTempVendorCDR_20' ) start [2025-02-14 08:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472465', 'tblTempVendorCDR_20' ) end [2025-02-14 08:17:20] Production.INFO: ProcessCDR(1,14472465,1,1,2) [2025-02-14 08:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472465', 'tblTempUsageDetail_20' ) start [2025-02-14 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472465', 'tblTempUsageDetail_20' ) end [2025-02-14 08:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:17:23] Production.INFO: ==31702== Releasing lock... [2025-02-14 08:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:17:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-14 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:18:06 [end_date_ymd] => 2025-02-14 08:18:06 [RateCDR] => 1 ) [2025-02-14 08: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-02-14 05:18:06' and `end` < '2025-02-14 08: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-02-14 08:18:20] Production.INFO: count ==424 [2025-02-14 08:18:20] Production.ERROR: pbx CDR StartTime 2025-02-14 05:18:06 - End Time 2025-02-14 08:18:06 [2025-02-14 08:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472470', 'tblTempUsageDetail_20' ) start [2025-02-14 08:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472470', 'tblTempUsageDetail_20' ) end [2025-02-14 08:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472470', 'tblTempVendorCDR_20' ) start [2025-02-14 08:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472470', 'tblTempVendorCDR_20' ) end [2025-02-14 08:18:20] Production.INFO: ProcessCDR(1,14472470,1,1,2) [2025-02-14 08:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472470', 'tblTempUsageDetail_20' ) start [2025-02-14 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472470', 'tblTempUsageDetail_20' ) end [2025-02-14 08:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:18:23] Production.INFO: ==31822== Releasing lock... [2025-02-14 08:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:18:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-14 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:19:05 [end_date_ymd] => 2025-02-14 08:19:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:19:05' and `end` < '2025-02-14 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-02-14 08:19:18] Production.INFO: count ==437 [2025-02-14 08:19:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:19:05 - End Time 2025-02-14 08:19:05 [2025-02-14 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472475', 'tblTempUsageDetail_20' ) start [2025-02-14 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472475', 'tblTempUsageDetail_20' ) end [2025-02-14 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472475', 'tblTempVendorCDR_20' ) start [2025-02-14 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472475', 'tblTempVendorCDR_20' ) end [2025-02-14 08:19:18] Production.INFO: ProcessCDR(1,14472475,1,1,2) [2025-02-14 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472475', 'tblTempUsageDetail_20' ) start [2025-02-14 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472475', 'tblTempUsageDetail_20' ) end [2025-02-14 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:19:22] Production.INFO: ==31894== Releasing lock... [2025-02-14 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:19:22] Production.INFO: 32 MB #Memory Used# [2025-02-14 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:20:06 [end_date_ymd] => 2025-02-14 08:20:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:20:06' and `end` < '2025-02-14 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-02-14 08:20:19] Production.INFO: count ==457 [2025-02-14 08:20:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:20:06 - End Time 2025-02-14 08:20:06 [2025-02-14 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472480', 'tblTempUsageDetail_20' ) start [2025-02-14 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472480', 'tblTempUsageDetail_20' ) end [2025-02-14 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472480', 'tblTempVendorCDR_20' ) start [2025-02-14 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472480', 'tblTempVendorCDR_20' ) end [2025-02-14 08:20:19] Production.INFO: ProcessCDR(1,14472480,1,1,2) [2025-02-14 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472480', 'tblTempUsageDetail_20' ) start [2025-02-14 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472480', 'tblTempUsageDetail_20' ) end [2025-02-14 08:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:20:24] Production.INFO: ==31967== Releasing lock... [2025-02-14 08:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:20:24] Production.INFO: 31.75 MB #Memory Used# [2025-02-14 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:21:05 [end_date_ymd] => 2025-02-14 08:21:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:21:05' and `end` < '2025-02-14 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-02-14 08:21:18] Production.INFO: count ==511 [2025-02-14 08:21:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:21:05 - End Time 2025-02-14 08:21:05 [2025-02-14 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472486', 'tblTempUsageDetail_20' ) start [2025-02-14 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472486', 'tblTempUsageDetail_20' ) end [2025-02-14 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472486', 'tblTempVendorCDR_20' ) start [2025-02-14 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472486', 'tblTempVendorCDR_20' ) end [2025-02-14 08:21:18] Production.INFO: ProcessCDR(1,14472486,1,1,2) [2025-02-14 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472486', 'tblTempUsageDetail_20' ) start [2025-02-14 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472486', 'tblTempUsageDetail_20' ) end [2025-02-14 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:21:22] Production.INFO: ==32041== Releasing lock... [2025-02-14 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:21:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-14 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:22:05 [end_date_ymd] => 2025-02-14 08:22:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:22:05' and `end` < '2025-02-14 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-02-14 08:22:18] Production.INFO: count ==516 [2025-02-14 08:22:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:22:05 - End Time 2025-02-14 08:22:05 [2025-02-14 08:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472491', 'tblTempUsageDetail_20' ) start [2025-02-14 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472491', 'tblTempUsageDetail_20' ) end [2025-02-14 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472491', 'tblTempVendorCDR_20' ) start [2025-02-14 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472491', 'tblTempVendorCDR_20' ) end [2025-02-14 08:22:19] Production.INFO: ProcessCDR(1,14472491,1,1,2) [2025-02-14 08:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472491', 'tblTempUsageDetail_20' ) start [2025-02-14 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472491', 'tblTempUsageDetail_20' ) end [2025-02-14 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:22:22] Production.INFO: ==32111== Releasing lock... [2025-02-14 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:22:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-14 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:23:05 [end_date_ymd] => 2025-02-14 08:23:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:23:05' and `end` < '2025-02-14 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-02-14 08:23:18] Production.INFO: count ==527 [2025-02-14 08:23:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:23:05 - End Time 2025-02-14 08:23:05 [2025-02-14 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472496', 'tblTempUsageDetail_20' ) start [2025-02-14 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472496', 'tblTempUsageDetail_20' ) end [2025-02-14 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472496', 'tblTempVendorCDR_20' ) start [2025-02-14 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472496', 'tblTempVendorCDR_20' ) end [2025-02-14 08:23:18] Production.INFO: ProcessCDR(1,14472496,1,1,2) [2025-02-14 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472496', 'tblTempUsageDetail_20' ) start [2025-02-14 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472496', 'tblTempUsageDetail_20' ) end [2025-02-14 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:23:22] Production.INFO: ==32181== Releasing lock... [2025-02-14 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:23:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-14 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:24:06 [end_date_ymd] => 2025-02-14 08:24:06 [RateCDR] => 1 ) [2025-02-14 08:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:24:06' and `end` < '2025-02-14 08:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:24:20] Production.INFO: count ==537 [2025-02-14 08:24:20] Production.ERROR: pbx CDR StartTime 2025-02-14 05:24:06 - End Time 2025-02-14 08:24:06 [2025-02-14 08:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472501', 'tblTempUsageDetail_20' ) start [2025-02-14 08:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472501', 'tblTempUsageDetail_20' ) end [2025-02-14 08:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472501', 'tblTempVendorCDR_20' ) start [2025-02-14 08:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472501', 'tblTempVendorCDR_20' ) end [2025-02-14 08:24:20] Production.INFO: ProcessCDR(1,14472501,1,1,2) [2025-02-14 08:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472501', 'tblTempUsageDetail_20' ) start [2025-02-14 08:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472501', 'tblTempUsageDetail_20' ) end [2025-02-14 08:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:24:25] Production.INFO: ==32254== Releasing lock... [2025-02-14 08:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:24:25] Production.INFO: 32.25 MB #Memory Used# [2025-02-14 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:25:05 [end_date_ymd] => 2025-02-14 08:25:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:25:05' and `end` < '2025-02-14 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-02-14 08:25:18] Production.INFO: count ==561 [2025-02-14 08:25:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:25:05 - End Time 2025-02-14 08:25:05 [2025-02-14 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472506', 'tblTempUsageDetail_20' ) start [2025-02-14 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472506', 'tblTempUsageDetail_20' ) end [2025-02-14 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472506', 'tblTempVendorCDR_20' ) start [2025-02-14 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472506', 'tblTempVendorCDR_20' ) end [2025-02-14 08:25:18] Production.INFO: ProcessCDR(1,14472506,1,1,2) [2025-02-14 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472506', 'tblTempUsageDetail_20' ) start [2025-02-14 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472506', 'tblTempUsageDetail_20' ) end [2025-02-14 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:25:21] Production.INFO: ==32323== Releasing lock... [2025-02-14 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:25:21] Production.INFO: 33 MB #Memory Used# [2025-02-14 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:26:05 [end_date_ymd] => 2025-02-14 08:26:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:26:05' and `end` < '2025-02-14 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-02-14 08:26:18] Production.INFO: count ==573 [2025-02-14 08:26:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:26:05 - End Time 2025-02-14 08:26:05 [2025-02-14 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472511', 'tblTempUsageDetail_20' ) start [2025-02-14 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472511', 'tblTempUsageDetail_20' ) end [2025-02-14 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472511', 'tblTempVendorCDR_20' ) start [2025-02-14 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472511', 'tblTempVendorCDR_20' ) end [2025-02-14 08:26:18] Production.INFO: ProcessCDR(1,14472511,1,1,2) [2025-02-14 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472511', 'tblTempUsageDetail_20' ) start [2025-02-14 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472511', 'tblTempUsageDetail_20' ) end [2025-02-14 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:26:21] Production.INFO: ==32396== Releasing lock... [2025-02-14 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:26:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-14 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:27:05 [end_date_ymd] => 2025-02-14 08:27:05 [RateCDR] => 1 ) [2025-02-14 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:27:05' and `end` < '2025-02-14 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:27:18] Production.INFO: count ==579 [2025-02-14 08:27:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:27:05 - End Time 2025-02-14 08:27:05 [2025-02-14 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472516', 'tblTempUsageDetail_20' ) start [2025-02-14 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472516', 'tblTempUsageDetail_20' ) end [2025-02-14 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472516', 'tblTempVendorCDR_20' ) start [2025-02-14 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472516', 'tblTempVendorCDR_20' ) end [2025-02-14 08:27:18] Production.INFO: ProcessCDR(1,14472516,1,1,2) [2025-02-14 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472516', 'tblTempUsageDetail_20' ) start [2025-02-14 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472516', 'tblTempUsageDetail_20' ) end [2025-02-14 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:27:21] Production.INFO: ==32466== Releasing lock... [2025-02-14 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:27:21] Production.INFO: 33 MB #Memory Used# [2025-02-14 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:28:05 [end_date_ymd] => 2025-02-14 08:28:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:28:05' and `end` < '2025-02-14 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-02-14 08:28:19] Production.INFO: count ==584 [2025-02-14 08:28:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:28:05 - End Time 2025-02-14 08:28:05 [2025-02-14 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472521', 'tblTempUsageDetail_20' ) start [2025-02-14 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472521', 'tblTempUsageDetail_20' ) end [2025-02-14 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472521', 'tblTempVendorCDR_20' ) start [2025-02-14 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472521', 'tblTempVendorCDR_20' ) end [2025-02-14 08:28:19] Production.INFO: ProcessCDR(1,14472521,1,1,2) [2025-02-14 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472521', 'tblTempUsageDetail_20' ) start [2025-02-14 08:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472521', 'tblTempUsageDetail_20' ) end [2025-02-14 08:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:28:24] Production.INFO: ==32537== Releasing lock... [2025-02-14 08:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:28:24] Production.INFO: 33 MB #Memory Used# [2025-02-14 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:29:05 [end_date_ymd] => 2025-02-14 08:29:05 [RateCDR] => 1 ) [2025-02-14 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:29:05' and `end` < '2025-02-14 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:29:18] Production.INFO: count ==592 [2025-02-14 08:29:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:29:05 - End Time 2025-02-14 08:29:05 [2025-02-14 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472526', 'tblTempUsageDetail_20' ) start [2025-02-14 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472526', 'tblTempUsageDetail_20' ) end [2025-02-14 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472526', 'tblTempVendorCDR_20' ) start [2025-02-14 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472526', 'tblTempVendorCDR_20' ) end [2025-02-14 08:29:18] Production.INFO: ProcessCDR(1,14472526,1,1,2) [2025-02-14 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472526', 'tblTempUsageDetail_20' ) start [2025-02-14 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472526', 'tblTempUsageDetail_20' ) end [2025-02-14 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:29:21] Production.INFO: ==32612== Releasing lock... [2025-02-14 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:29:21] Production.INFO: 33 MB #Memory Used# [2025-02-14 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:30:06 [end_date_ymd] => 2025-02-14 08:30:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:30:06' and `end` < '2025-02-14 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-02-14 08:30:19] Production.INFO: count ==607 [2025-02-14 08:30:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:30:06 - End Time 2025-02-14 08:30:06 [2025-02-14 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472532', 'tblTempUsageDetail_20' ) start [2025-02-14 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472532', 'tblTempUsageDetail_20' ) end [2025-02-14 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472532', 'tblTempVendorCDR_20' ) start [2025-02-14 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472532', 'tblTempVendorCDR_20' ) end [2025-02-14 08:30:19] Production.INFO: ProcessCDR(1,14472532,1,1,2) [2025-02-14 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472532', 'tblTempUsageDetail_20' ) start [2025-02-14 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472532', 'tblTempUsageDetail_20' ) end [2025-02-14 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:30:24] Production.INFO: ==32688== Releasing lock... [2025-02-14 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:30:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-14 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:31:04 [end_date_ymd] => 2025-02-14 08:31:04 [RateCDR] => 1 ) [2025-02-14 08:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:31:04' and `end` < '2025-02-14 08:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:31:18] Production.INFO: count ==651 [2025-02-14 08:31:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:31:04 - End Time 2025-02-14 08:31:04 [2025-02-14 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472537', 'tblTempUsageDetail_20' ) start [2025-02-14 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472537', 'tblTempUsageDetail_20' ) end [2025-02-14 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472537', 'tblTempVendorCDR_20' ) start [2025-02-14 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472537', 'tblTempVendorCDR_20' ) end [2025-02-14 08:31:18] Production.INFO: ProcessCDR(1,14472537,1,1,2) [2025-02-14 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472537', 'tblTempUsageDetail_20' ) start [2025-02-14 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472537', 'tblTempUsageDetail_20' ) end [2025-02-14 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:31:23] Production.INFO: ==32759== Releasing lock... [2025-02-14 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:31:23] Production.INFO: 33 MB #Memory Used# [2025-02-14 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:32:06 [end_date_ymd] => 2025-02-14 08:32:06 [RateCDR] => 1 ) [2025-02-14 08:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:32:06' and `end` < '2025-02-14 08:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:32:19] Production.INFO: count ==651 [2025-02-14 08:32:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:32:06 - End Time 2025-02-14 08:32:06 [2025-02-14 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472542', 'tblTempUsageDetail_20' ) start [2025-02-14 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472542', 'tblTempUsageDetail_20' ) end [2025-02-14 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472542', 'tblTempVendorCDR_20' ) start [2025-02-14 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472542', 'tblTempVendorCDR_20' ) end [2025-02-14 08:32:19] Production.INFO: ProcessCDR(1,14472542,1,1,2) [2025-02-14 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472542', 'tblTempUsageDetail_20' ) start [2025-02-14 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472542', 'tblTempUsageDetail_20' ) end [2025-02-14 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:32:22] Production.INFO: ==382== Releasing lock... [2025-02-14 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:32:22] Production.INFO: 33 MB #Memory Used# [2025-02-14 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:33:05 [end_date_ymd] => 2025-02-14 08:33:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:33:05' and `end` < '2025-02-14 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-02-14 08:33:18] Production.INFO: count ==656 [2025-02-14 08:33:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:33:05 - End Time 2025-02-14 08:33:05 [2025-02-14 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472547', 'tblTempUsageDetail_20' ) start [2025-02-14 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472547', 'tblTempUsageDetail_20' ) end [2025-02-14 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472547', 'tblTempVendorCDR_20' ) start [2025-02-14 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472547', 'tblTempVendorCDR_20' ) end [2025-02-14 08:33:18] Production.INFO: ProcessCDR(1,14472547,1,1,2) [2025-02-14 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472547', 'tblTempUsageDetail_20' ) start [2025-02-14 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472547', 'tblTempUsageDetail_20' ) end [2025-02-14 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:33:21] Production.INFO: ==451== Releasing lock... [2025-02-14 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:33:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-14 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:34:06 [end_date_ymd] => 2025-02-14 08:34:06 [RateCDR] => 1 ) [2025-02-14 08:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:34:06' and `end` < '2025-02-14 08:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:34:19] Production.INFO: count ==659 [2025-02-14 08:34:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:34:06 - End Time 2025-02-14 08:34:06 [2025-02-14 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472552', 'tblTempUsageDetail_20' ) start [2025-02-14 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472552', 'tblTempUsageDetail_20' ) end [2025-02-14 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472552', 'tblTempVendorCDR_20' ) start [2025-02-14 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472552', 'tblTempVendorCDR_20' ) end [2025-02-14 08:34:19] Production.INFO: ProcessCDR(1,14472552,1,1,2) [2025-02-14 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472552', 'tblTempUsageDetail_20' ) start [2025-02-14 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472552', 'tblTempUsageDetail_20' ) end [2025-02-14 08:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:34:24] Production.INFO: ==565== Releasing lock... [2025-02-14 08:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:34:24] Production.INFO: 34 MB #Memory Used# [2025-02-14 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:35:05 [end_date_ymd] => 2025-02-14 08:35:05 [RateCDR] => 1 ) [2025-02-14 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:35:05' and `end` < '2025-02-14 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:35:18] Production.INFO: count ==661 [2025-02-14 08:35:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:35:05 - End Time 2025-02-14 08:35:05 [2025-02-14 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472557', 'tblTempUsageDetail_20' ) start [2025-02-14 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472557', 'tblTempUsageDetail_20' ) end [2025-02-14 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472557', 'tblTempVendorCDR_20' ) start [2025-02-14 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472557', 'tblTempVendorCDR_20' ) end [2025-02-14 08:35:18] Production.INFO: ProcessCDR(1,14472557,1,1,2) [2025-02-14 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472557', 'tblTempUsageDetail_20' ) start [2025-02-14 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472557', 'tblTempUsageDetail_20' ) end [2025-02-14 08:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:35:23] Production.INFO: ==644== Releasing lock... [2025-02-14 08:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:35:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-14 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:36:05 [end_date_ymd] => 2025-02-14 08:36:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:36:05' and `end` < '2025-02-14 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-02-14 08:36:20] Production.INFO: count ==663 [2025-02-14 08:36:20] Production.ERROR: pbx CDR StartTime 2025-02-14 05:36:05 - End Time 2025-02-14 08:36:05 [2025-02-14 08:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472562', 'tblTempUsageDetail_20' ) start [2025-02-14 08:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472562', 'tblTempUsageDetail_20' ) end [2025-02-14 08:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472562', 'tblTempVendorCDR_20' ) start [2025-02-14 08:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472562', 'tblTempVendorCDR_20' ) end [2025-02-14 08:36:20] Production.INFO: ProcessCDR(1,14472562,1,1,2) [2025-02-14 08:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472562', 'tblTempUsageDetail_20' ) start [2025-02-14 08:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472562', 'tblTempUsageDetail_20' ) end [2025-02-14 08:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:36:25] Production.INFO: ==742== Releasing lock... [2025-02-14 08:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:36:25] Production.INFO: 33.25 MB #Memory Used# [2025-02-14 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:37:05 [end_date_ymd] => 2025-02-14 08:37:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:37:05' and `end` < '2025-02-14 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-02-14 08:37:19] Production.INFO: count ==670 [2025-02-14 08:37:20] Production.ERROR: pbx CDR StartTime 2025-02-14 05:37:05 - End Time 2025-02-14 08:37:05 [2025-02-14 08:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472567', 'tblTempUsageDetail_20' ) start [2025-02-14 08:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472567', 'tblTempUsageDetail_20' ) end [2025-02-14 08:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472567', 'tblTempVendorCDR_20' ) start [2025-02-14 08:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472567', 'tblTempVendorCDR_20' ) end [2025-02-14 08:37:20] Production.INFO: ProcessCDR(1,14472567,1,1,2) [2025-02-14 08:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472567', 'tblTempUsageDetail_20' ) start [2025-02-14 08:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472567', 'tblTempUsageDetail_20' ) end [2025-02-14 08:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:37:25] Production.INFO: ==817== Releasing lock... [2025-02-14 08:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:37:25] Production.INFO: 33.75 MB #Memory Used# [2025-02-14 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:38:05 [end_date_ymd] => 2025-02-14 08:38:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:38:05' and `end` < '2025-02-14 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-02-14 08:38:18] Production.INFO: count ==675 [2025-02-14 08:38:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:38:05 - End Time 2025-02-14 08:38:05 [2025-02-14 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472572', 'tblTempUsageDetail_20' ) start [2025-02-14 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472572', 'tblTempUsageDetail_20' ) end [2025-02-14 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472572', 'tblTempVendorCDR_20' ) start [2025-02-14 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472572', 'tblTempVendorCDR_20' ) end [2025-02-14 08:38:18] Production.INFO: ProcessCDR(1,14472572,1,1,2) [2025-02-14 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472572', 'tblTempUsageDetail_20' ) start [2025-02-14 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472572', 'tblTempUsageDetail_20' ) end [2025-02-14 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:38:22] Production.INFO: ==891== Releasing lock... [2025-02-14 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:38:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-14 08:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:39:06 [end_date_ymd] => 2025-02-14 08:39:06 [RateCDR] => 1 ) [2025-02-14 08:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:39:06' and `end` < '2025-02-14 08:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:39:19] Production.INFO: count ==680 [2025-02-14 08:39:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:39:06 - End Time 2025-02-14 08:39:06 [2025-02-14 08:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472577', 'tblTempUsageDetail_20' ) start [2025-02-14 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472577', 'tblTempUsageDetail_20' ) end [2025-02-14 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472577', 'tblTempVendorCDR_20' ) start [2025-02-14 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472577', 'tblTempVendorCDR_20' ) end [2025-02-14 08:39:19] Production.INFO: ProcessCDR(1,14472577,1,1,2) [2025-02-14 08:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472577', 'tblTempUsageDetail_20' ) start [2025-02-14 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472577', 'tblTempUsageDetail_20' ) end [2025-02-14 08:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:39:24] Production.INFO: ==963== Releasing lock... [2025-02-14 08:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:39:24] Production.INFO: 34 MB #Memory Used# [2025-02-14 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:40:06 [end_date_ymd] => 2025-02-14 08:40:06 [RateCDR] => 1 ) [2025-02-14 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:40:06' and `end` < '2025-02-14 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:40:19] Production.INFO: count ==680 [2025-02-14 08:40:20] Production.ERROR: pbx CDR StartTime 2025-02-14 05:40:06 - End Time 2025-02-14 08:40:06 [2025-02-14 08:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472583', 'tblTempUsageDetail_20' ) start [2025-02-14 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472583', 'tblTempUsageDetail_20' ) end [2025-02-14 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472583', 'tblTempVendorCDR_20' ) start [2025-02-14 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472583', 'tblTempVendorCDR_20' ) end [2025-02-14 08:40:20] Production.INFO: ProcessCDR(1,14472583,1,1,2) [2025-02-14 08:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472583', 'tblTempUsageDetail_20' ) start [2025-02-14 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472583', 'tblTempUsageDetail_20' ) end [2025-02-14 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:40:23] Production.INFO: ==1038== Releasing lock... [2025-02-14 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:40:23] Production.INFO: 34 MB #Memory Used# [2025-02-14 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:41:05 [end_date_ymd] => 2025-02-14 08:41:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:41:05' and `end` < '2025-02-14 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-02-14 08:41:19] Production.INFO: count ==695 [2025-02-14 08:41:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:41:05 - End Time 2025-02-14 08:41:05 [2025-02-14 08:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472588', 'tblTempUsageDetail_20' ) start [2025-02-14 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472588', 'tblTempUsageDetail_20' ) end [2025-02-14 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472588', 'tblTempVendorCDR_20' ) start [2025-02-14 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472588', 'tblTempVendorCDR_20' ) end [2025-02-14 08:41:19] Production.INFO: ProcessCDR(1,14472588,1,1,2) [2025-02-14 08:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472588', 'tblTempUsageDetail_20' ) start [2025-02-14 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472588', 'tblTempUsageDetail_20' ) end [2025-02-14 08:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:41:24] Production.INFO: ==1120== Releasing lock... [2025-02-14 08:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:41:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-14 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:42:05 [end_date_ymd] => 2025-02-14 08:42:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:42:05' and `end` < '2025-02-14 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-02-14 08:42:19] Production.INFO: count ==696 [2025-02-14 08:42:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:42:05 - End Time 2025-02-14 08:42:05 [2025-02-14 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472593', 'tblTempUsageDetail_20' ) start [2025-02-14 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472593', 'tblTempUsageDetail_20' ) end [2025-02-14 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472593', 'tblTempVendorCDR_20' ) start [2025-02-14 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472593', 'tblTempVendorCDR_20' ) end [2025-02-14 08:42:19] Production.INFO: ProcessCDR(1,14472593,1,1,2) [2025-02-14 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472593', 'tblTempUsageDetail_20' ) start [2025-02-14 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472593', 'tblTempUsageDetail_20' ) end [2025-02-14 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:42:23] Production.INFO: ==1203== Releasing lock... [2025-02-14 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:42:23] Production.INFO: 34 MB #Memory Used# [2025-02-14 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:43:05 [end_date_ymd] => 2025-02-14 08:43:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:43:05' and `end` < '2025-02-14 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-02-14 08:43:18] Production.INFO: count ==696 [2025-02-14 08:43:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:43:05 - End Time 2025-02-14 08:43:05 [2025-02-14 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472598', 'tblTempUsageDetail_20' ) start [2025-02-14 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472598', 'tblTempUsageDetail_20' ) end [2025-02-14 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472598', 'tblTempVendorCDR_20' ) start [2025-02-14 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472598', 'tblTempVendorCDR_20' ) end [2025-02-14 08:43:19] Production.INFO: ProcessCDR(1,14472598,1,1,2) [2025-02-14 08:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472598', 'tblTempUsageDetail_20' ) start [2025-02-14 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472598', 'tblTempUsageDetail_20' ) end [2025-02-14 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:43:23] Production.INFO: ==1295== Releasing lock... [2025-02-14 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:43:23] Production.INFO: 34 MB #Memory Used# [2025-02-14 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:44:05 [end_date_ymd] => 2025-02-14 08:44:05 [RateCDR] => 1 ) [2025-02-14 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:44:05' and `end` < '2025-02-14 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:44:18] Production.INFO: count ==702 [2025-02-14 08:44:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:44:05 - End Time 2025-02-14 08:44:05 [2025-02-14 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472603', 'tblTempUsageDetail_20' ) start [2025-02-14 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472603', 'tblTempUsageDetail_20' ) end [2025-02-14 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472603', 'tblTempVendorCDR_20' ) start [2025-02-14 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472603', 'tblTempVendorCDR_20' ) end [2025-02-14 08:44:18] Production.INFO: ProcessCDR(1,14472603,1,1,2) [2025-02-14 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472603', 'tblTempUsageDetail_20' ) start [2025-02-14 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472603', 'tblTempUsageDetail_20' ) end [2025-02-14 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:44:23] Production.INFO: ==1375== Releasing lock... [2025-02-14 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:44:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-14 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:45:05 [end_date_ymd] => 2025-02-14 08:45:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:45:05' and `end` < '2025-02-14 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-02-14 08:45:18] Production.INFO: count ==703 [2025-02-14 08:45:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:45:05 - End Time 2025-02-14 08:45:05 [2025-02-14 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472608', 'tblTempUsageDetail_20' ) start [2025-02-14 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472608', 'tblTempUsageDetail_20' ) end [2025-02-14 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472608', 'tblTempVendorCDR_20' ) start [2025-02-14 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472608', 'tblTempVendorCDR_20' ) end [2025-02-14 08:45:18] Production.INFO: ProcessCDR(1,14472608,1,1,2) [2025-02-14 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472608', 'tblTempUsageDetail_20' ) start [2025-02-14 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472608', 'tblTempUsageDetail_20' ) end [2025-02-14 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:45:23] Production.INFO: ==1450== Releasing lock... [2025-02-14 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:45:23] Production.INFO: 34 MB #Memory Used# [2025-02-14 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:46:05 [end_date_ymd] => 2025-02-14 08:46:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:46:05' and `end` < '2025-02-14 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-02-14 08:46:18] Production.INFO: count ==704 [2025-02-14 08:46:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:46:05 - End Time 2025-02-14 08:46:05 [2025-02-14 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472613', 'tblTempUsageDetail_20' ) start [2025-02-14 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472613', 'tblTempUsageDetail_20' ) end [2025-02-14 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472613', 'tblTempVendorCDR_20' ) start [2025-02-14 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472613', 'tblTempVendorCDR_20' ) end [2025-02-14 08:46:18] Production.INFO: ProcessCDR(1,14472613,1,1,2) [2025-02-14 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472613', 'tblTempUsageDetail_20' ) start [2025-02-14 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472613', 'tblTempUsageDetail_20' ) end [2025-02-14 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:46:22] Production.INFO: ==1562== Releasing lock... [2025-02-14 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:46:22] Production.INFO: 34 MB #Memory Used# [2025-02-14 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:47:05 [end_date_ymd] => 2025-02-14 08:47:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:47:05' and `end` < '2025-02-14 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-02-14 08:47:18] Production.INFO: count ==712 [2025-02-14 08:47:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:47:05 - End Time 2025-02-14 08:47:05 [2025-02-14 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472618', 'tblTempUsageDetail_20' ) start [2025-02-14 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472618', 'tblTempUsageDetail_20' ) end [2025-02-14 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472618', 'tblTempVendorCDR_20' ) start [2025-02-14 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472618', 'tblTempVendorCDR_20' ) end [2025-02-14 08:47:18] Production.INFO: ProcessCDR(1,14472618,1,1,2) [2025-02-14 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472618', 'tblTempUsageDetail_20' ) start [2025-02-14 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472618', 'tblTempUsageDetail_20' ) end [2025-02-14 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:47:22] Production.INFO: ==1647== Releasing lock... [2025-02-14 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:47:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-14 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:48:05 [end_date_ymd] => 2025-02-14 08:48:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:48:05' and `end` < '2025-02-14 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-02-14 08:48:18] Production.INFO: count ==713 [2025-02-14 08:48:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:48:05 - End Time 2025-02-14 08:48:05 [2025-02-14 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472623', 'tblTempUsageDetail_20' ) start [2025-02-14 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472623', 'tblTempUsageDetail_20' ) end [2025-02-14 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472623', 'tblTempVendorCDR_20' ) start [2025-02-14 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472623', 'tblTempVendorCDR_20' ) end [2025-02-14 08:48:18] Production.INFO: ProcessCDR(1,14472623,1,1,2) [2025-02-14 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472623', 'tblTempUsageDetail_20' ) start [2025-02-14 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472623', 'tblTempUsageDetail_20' ) end [2025-02-14 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:48:23] Production.INFO: ==1730== Releasing lock... [2025-02-14 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:48:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-14 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:49:05 [end_date_ymd] => 2025-02-14 08:49:05 [RateCDR] => 1 ) [2025-02-14 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:49:05' and `end` < '2025-02-14 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:49:19] Production.INFO: count ==718 [2025-02-14 08:49:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:49:05 - End Time 2025-02-14 08:49:05 [2025-02-14 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472628', 'tblTempUsageDetail_20' ) start [2025-02-14 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472628', 'tblTempUsageDetail_20' ) end [2025-02-14 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472628', 'tblTempVendorCDR_20' ) start [2025-02-14 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472628', 'tblTempVendorCDR_20' ) end [2025-02-14 08:49:19] Production.INFO: ProcessCDR(1,14472628,1,1,2) [2025-02-14 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472628', 'tblTempUsageDetail_20' ) start [2025-02-14 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472628', 'tblTempUsageDetail_20' ) end [2025-02-14 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:49:22] Production.INFO: ==1855== Releasing lock... [2025-02-14 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:49:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-14 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:50:06 [end_date_ymd] => 2025-02-14 08:50:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:50:06' and `end` < '2025-02-14 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-02-14 08:50:19] Production.INFO: count ==725 [2025-02-14 08:50:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:50:06 - End Time 2025-02-14 08:50:06 [2025-02-14 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472634', 'tblTempUsageDetail_20' ) start [2025-02-14 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472634', 'tblTempUsageDetail_20' ) end [2025-02-14 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472634', 'tblTempVendorCDR_20' ) start [2025-02-14 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472634', 'tblTempVendorCDR_20' ) end [2025-02-14 08:50:19] Production.INFO: ProcessCDR(1,14472634,1,1,2) [2025-02-14 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472634', 'tblTempUsageDetail_20' ) start [2025-02-14 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472634', 'tblTempUsageDetail_20' ) end [2025-02-14 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:50:24] Production.INFO: ==1933== Releasing lock... [2025-02-14 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:50:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-14 08:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:51:06 [end_date_ymd] => 2025-02-14 08:51:06 [RateCDR] => 1 ) [2025-02-14 08: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-02-14 05:51:06' and `end` < '2025-02-14 08: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-02-14 08:51:20] Production.INFO: count ==765 [2025-02-14 08:51:20] Production.ERROR: pbx CDR StartTime 2025-02-14 05:51:06 - End Time 2025-02-14 08:51:06 [2025-02-14 08:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472639', 'tblTempUsageDetail_20' ) start [2025-02-14 08:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472639', 'tblTempUsageDetail_20' ) end [2025-02-14 08:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472639', 'tblTempVendorCDR_20' ) start [2025-02-14 08:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472639', 'tblTempVendorCDR_20' ) end [2025-02-14 08:51:20] Production.INFO: ProcessCDR(1,14472639,1,1,2) [2025-02-14 08:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472639', 'tblTempUsageDetail_20' ) start [2025-02-14 08:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472639', 'tblTempUsageDetail_20' ) end [2025-02-14 08:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:51:25] Production.INFO: ==2017== Releasing lock... [2025-02-14 08:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:51:25] Production.INFO: 34.25 MB #Memory Used# [2025-02-14 08:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:52:04 [end_date_ymd] => 2025-02-14 08:52:04 [RateCDR] => 1 ) [2025-02-14 08: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-02-14 05:52:04' and `end` < '2025-02-14 08: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-02-14 08:52:17] Production.INFO: count ==769 [2025-02-14 08:52:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:52:04 - End Time 2025-02-14 08:52:04 [2025-02-14 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472644', 'tblTempUsageDetail_20' ) start [2025-02-14 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472644', 'tblTempUsageDetail_20' ) end [2025-02-14 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472644', 'tblTempVendorCDR_20' ) start [2025-02-14 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472644', 'tblTempVendorCDR_20' ) end [2025-02-14 08:52:18] Production.INFO: ProcessCDR(1,14472644,1,1,2) [2025-02-14 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472644', 'tblTempUsageDetail_20' ) start [2025-02-14 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472644', 'tblTempUsageDetail_20' ) end [2025-02-14 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:52:21] Production.INFO: ==2092== Releasing lock... [2025-02-14 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:52:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-14 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:53:05 [end_date_ymd] => 2025-02-14 08:53:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:53:05' and `end` < '2025-02-14 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-02-14 08:53:18] Production.INFO: count ==768 [2025-02-14 08:53:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:53:05 - End Time 2025-02-14 08:53:05 [2025-02-14 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472649', 'tblTempUsageDetail_20' ) start [2025-02-14 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472649', 'tblTempUsageDetail_20' ) end [2025-02-14 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472649', 'tblTempVendorCDR_20' ) start [2025-02-14 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472649', 'tblTempVendorCDR_20' ) end [2025-02-14 08:53:19] Production.INFO: ProcessCDR(1,14472649,1,1,2) [2025-02-14 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472649', 'tblTempUsageDetail_20' ) start [2025-02-14 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472649', 'tblTempUsageDetail_20' ) end [2025-02-14 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:53:22] Production.INFO: ==2174== Releasing lock... [2025-02-14 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:53:22] Production.INFO: 34 MB #Memory Used# [2025-02-14 08:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:54:04 [end_date_ymd] => 2025-02-14 08:54:04 [RateCDR] => 1 ) [2025-02-14 08: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-02-14 05:54:04' and `end` < '2025-02-14 08: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-02-14 08:54:19] Production.INFO: count ==785 [2025-02-14 08:54:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:54:04 - End Time 2025-02-14 08:54:04 [2025-02-14 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472654', 'tblTempUsageDetail_20' ) start [2025-02-14 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472654', 'tblTempUsageDetail_20' ) end [2025-02-14 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472654', 'tblTempVendorCDR_20' ) start [2025-02-14 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472654', 'tblTempVendorCDR_20' ) end [2025-02-14 08:54:19] Production.INFO: ProcessCDR(1,14472654,1,1,2) [2025-02-14 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472654', 'tblTempUsageDetail_20' ) start [2025-02-14 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472654', 'tblTempUsageDetail_20' ) end [2025-02-14 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:54:22] Production.INFO: ==2254== Releasing lock... [2025-02-14 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:54:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-14 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:55:05 [end_date_ymd] => 2025-02-14 08:55:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:55:05' and `end` < '2025-02-14 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-02-14 08:55:18] Production.INFO: count ==789 [2025-02-14 08:55:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:55:05 - End Time 2025-02-14 08:55:05 [2025-02-14 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472659', 'tblTempUsageDetail_20' ) start [2025-02-14 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472659', 'tblTempUsageDetail_20' ) end [2025-02-14 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472659', 'tblTempVendorCDR_20' ) start [2025-02-14 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472659', 'tblTempVendorCDR_20' ) end [2025-02-14 08:55:18] Production.INFO: ProcessCDR(1,14472659,1,1,2) [2025-02-14 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472659', 'tblTempUsageDetail_20' ) start [2025-02-14 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472659', 'tblTempUsageDetail_20' ) end [2025-02-14 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:55:22] Production.INFO: ==2332== Releasing lock... [2025-02-14 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:55:22] Production.INFO: 34 MB #Memory Used# [2025-02-14 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:56:05 [end_date_ymd] => 2025-02-14 08:56:05 [RateCDR] => 1 ) [2025-02-14 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 05:56:05' and `end` < '2025-02-14 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 08:56:18] Production.INFO: count ==813 [2025-02-14 08:56:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:56:05 - End Time 2025-02-14 08:56:05 [2025-02-14 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472664', 'tblTempUsageDetail_20' ) start [2025-02-14 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472664', 'tblTempUsageDetail_20' ) end [2025-02-14 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472664', 'tblTempVendorCDR_20' ) start [2025-02-14 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472664', 'tblTempVendorCDR_20' ) end [2025-02-14 08:56:19] Production.INFO: ProcessCDR(1,14472664,1,1,2) [2025-02-14 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472664', 'tblTempUsageDetail_20' ) start [2025-02-14 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472664', 'tblTempUsageDetail_20' ) end [2025-02-14 08:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:56:24] Production.INFO: ==2410== Releasing lock... [2025-02-14 08:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:56:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-14 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:57:05 [end_date_ymd] => 2025-02-14 08:57:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:57:05' and `end` < '2025-02-14 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-02-14 08:57:18] Production.INFO: count ==825 [2025-02-14 08:57:18] Production.ERROR: pbx CDR StartTime 2025-02-14 05:57:05 - End Time 2025-02-14 08:57:05 [2025-02-14 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472669', 'tblTempUsageDetail_20' ) start [2025-02-14 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472669', 'tblTempUsageDetail_20' ) end [2025-02-14 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472669', 'tblTempVendorCDR_20' ) start [2025-02-14 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472669', 'tblTempVendorCDR_20' ) end [2025-02-14 08:57:18] Production.INFO: ProcessCDR(1,14472669,1,1,2) [2025-02-14 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472669', 'tblTempUsageDetail_20' ) start [2025-02-14 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472669', 'tblTempUsageDetail_20' ) end [2025-02-14 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:57:23] Production.INFO: ==2491== Releasing lock... [2025-02-14 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:57:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-14 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:58:05 [end_date_ymd] => 2025-02-14 08:58:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:58:05' and `end` < '2025-02-14 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-02-14 08:58:18] Production.INFO: count ==829 [2025-02-14 08:58:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:58:05 - End Time 2025-02-14 08:58:05 [2025-02-14 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472674', 'tblTempUsageDetail_20' ) start [2025-02-14 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472674', 'tblTempUsageDetail_20' ) end [2025-02-14 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472674', 'tblTempVendorCDR_20' ) start [2025-02-14 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472674', 'tblTempVendorCDR_20' ) end [2025-02-14 08:58:19] Production.INFO: ProcessCDR(1,14472674,1,1,2) [2025-02-14 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472674', 'tblTempUsageDetail_20' ) start [2025-02-14 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472674', 'tblTempUsageDetail_20' ) end [2025-02-14 08:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:58:24] Production.INFO: ==2568== Releasing lock... [2025-02-14 08:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:58:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-14 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 05:59:05 [end_date_ymd] => 2025-02-14 08:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 05:59:05' and `end` < '2025-02-14 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-02-14 08:59:18] Production.INFO: count ==829 [2025-02-14 08:59:19] Production.ERROR: pbx CDR StartTime 2025-02-14 05:59:05 - End Time 2025-02-14 08:59:05 [2025-02-14 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472679', 'tblTempUsageDetail_20' ) start [2025-02-14 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472679', 'tblTempUsageDetail_20' ) end [2025-02-14 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472679', 'tblTempVendorCDR_20' ) start [2025-02-14 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472679', 'tblTempVendorCDR_20' ) end [2025-02-14 08:59:19] Production.INFO: ProcessCDR(1,14472679,1,1,2) [2025-02-14 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472679', 'tblTempUsageDetail_20' ) start [2025-02-14 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472679', 'tblTempUsageDetail_20' ) end [2025-02-14 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 08:59:22] Production.INFO: ==2643== Releasing lock... [2025-02-14 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 08:59:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-14 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:00:06 [end_date_ymd] => 2025-02-14 09:00:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:00:06' and `end` < '2025-02-14 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-02-14 09:00:20] Production.INFO: count ==835 [2025-02-14 09:00:20] Production.ERROR: pbx CDR StartTime 2025-02-14 06:00:06 - End Time 2025-02-14 09:00:06 [2025-02-14 09:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472685', 'tblTempUsageDetail_20' ) start [2025-02-14 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472685', 'tblTempUsageDetail_20' ) end [2025-02-14 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472685', 'tblTempVendorCDR_20' ) start [2025-02-14 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472685', 'tblTempVendorCDR_20' ) end [2025-02-14 09:00:20] Production.INFO: ProcessCDR(1,14472685,1,1,2) [2025-02-14 09:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472685', 'tblTempUsageDetail_20' ) start [2025-02-14 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472685', 'tblTempUsageDetail_20' ) end [2025-02-14 09:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:00:25] Production.INFO: ==2726== Releasing lock... [2025-02-14 09:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:00:25] Production.INFO: 34.5 MB #Memory Used# [2025-02-14 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:01:06 [end_date_ymd] => 2025-02-14 09:01:06 [RateCDR] => 1 ) [2025-02-14 09: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-02-14 06:01:06' and `end` < '2025-02-14 09: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-02-14 09:01:19] Production.INFO: count ==900 [2025-02-14 09:01:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:01:06 - End Time 2025-02-14 09:01:06 [2025-02-14 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472690', 'tblTempUsageDetail_20' ) start [2025-02-14 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472690', 'tblTempUsageDetail_20' ) end [2025-02-14 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472690', 'tblTempVendorCDR_20' ) start [2025-02-14 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472690', 'tblTempVendorCDR_20' ) end [2025-02-14 09:01:19] Production.INFO: ProcessCDR(1,14472690,1,1,2) [2025-02-14 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472690', 'tblTempUsageDetail_20' ) start [2025-02-14 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472690', 'tblTempUsageDetail_20' ) end [2025-02-14 09:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:01:24] Production.INFO: ==2819== Releasing lock... [2025-02-14 09:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:01:24] Production.INFO: 35 MB #Memory Used# [2025-02-14 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:02:05 [end_date_ymd] => 2025-02-14 09:02:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:02:05' and `end` < '2025-02-14 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-02-14 09:02:19] Production.INFO: count ==919 [2025-02-14 09:02:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:02:05 - End Time 2025-02-14 09:02:05 [2025-02-14 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472695', 'tblTempUsageDetail_20' ) start [2025-02-14 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472695', 'tblTempUsageDetail_20' ) end [2025-02-14 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472695', 'tblTempVendorCDR_20' ) start [2025-02-14 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472695', 'tblTempVendorCDR_20' ) end [2025-02-14 09:02:19] Production.INFO: ProcessCDR(1,14472695,1,1,2) [2025-02-14 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472695', 'tblTempUsageDetail_20' ) start [2025-02-14 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472695', 'tblTempUsageDetail_20' ) end [2025-02-14 09:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:02:24] Production.INFO: ==2898== Releasing lock... [2025-02-14 09:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:02:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-14 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:03:05 [end_date_ymd] => 2025-02-14 09:03:05 [RateCDR] => 1 ) [2025-02-14 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:03:05' and `end` < '2025-02-14 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:03:19] Production.INFO: count ==952 [2025-02-14 09:03:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:03:05 - End Time 2025-02-14 09:03:05 [2025-02-14 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472700', 'tblTempUsageDetail_20' ) start [2025-02-14 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472700', 'tblTempUsageDetail_20' ) end [2025-02-14 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472700', 'tblTempVendorCDR_20' ) start [2025-02-14 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472700', 'tblTempVendorCDR_20' ) end [2025-02-14 09:03:19] Production.INFO: ProcessCDR(1,14472700,1,1,2) [2025-02-14 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472700', 'tblTempUsageDetail_20' ) start [2025-02-14 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472700', 'tblTempUsageDetail_20' ) end [2025-02-14 09:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:03:24] Production.INFO: ==2978== Releasing lock... [2025-02-14 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:03:24] Production.INFO: 36 MB #Memory Used# [2025-02-14 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:04:06 [end_date_ymd] => 2025-02-14 09:04:06 [RateCDR] => 1 ) [2025-02-14 09:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:04:06' and `end` < '2025-02-14 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:04:19] Production.INFO: count ==967 [2025-02-14 09:04:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:04:06 - End Time 2025-02-14 09:04:06 [2025-02-14 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472705', 'tblTempUsageDetail_20' ) start [2025-02-14 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472705', 'tblTempUsageDetail_20' ) end [2025-02-14 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472705', 'tblTempVendorCDR_20' ) start [2025-02-14 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472705', 'tblTempVendorCDR_20' ) end [2025-02-14 09:04:19] Production.INFO: ProcessCDR(1,14472705,1,1,2) [2025-02-14 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472705', 'tblTempUsageDetail_20' ) start [2025-02-14 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472705', 'tblTempUsageDetail_20' ) end [2025-02-14 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:04:24] Production.INFO: ==3061== Releasing lock... [2025-02-14 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:04:24] Production.INFO: 35.5 MB #Memory Used# [2025-02-14 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:05:05 [end_date_ymd] => 2025-02-14 09:05:05 [RateCDR] => 1 ) [2025-02-14 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:05:05' and `end` < '2025-02-14 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:05:18] Production.INFO: count ==979 [2025-02-14 09:05:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:05:05 - End Time 2025-02-14 09:05:05 [2025-02-14 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472710', 'tblTempUsageDetail_20' ) start [2025-02-14 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472710', 'tblTempUsageDetail_20' ) end [2025-02-14 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472710', 'tblTempVendorCDR_20' ) start [2025-02-14 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472710', 'tblTempVendorCDR_20' ) end [2025-02-14 09:05:19] Production.INFO: ProcessCDR(1,14472710,1,1,2) [2025-02-14 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472710', 'tblTempUsageDetail_20' ) start [2025-02-14 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472710', 'tblTempUsageDetail_20' ) end [2025-02-14 09:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:05:24] Production.INFO: ==3176== Releasing lock... [2025-02-14 09:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:05:24] Production.INFO: 36 MB #Memory Used# [2025-02-14 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:06:05 [end_date_ymd] => 2025-02-14 09:06:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:06:05' and `end` < '2025-02-14 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-02-14 09:06:19] Production.INFO: count ==1009 [2025-02-14 09:06:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:06:05 - End Time 2025-02-14 09:06:05 [2025-02-14 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472715', 'tblTempUsageDetail_20' ) start [2025-02-14 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472715', 'tblTempUsageDetail_20' ) end [2025-02-14 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472715', 'tblTempVendorCDR_20' ) start [2025-02-14 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472715', 'tblTempVendorCDR_20' ) end [2025-02-14 09:06:19] Production.INFO: ProcessCDR(1,14472715,1,1,2) [2025-02-14 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472715', 'tblTempUsageDetail_20' ) start [2025-02-14 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472715', 'tblTempUsageDetail_20' ) end [2025-02-14 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:06:24] Production.INFO: ==3254== Releasing lock... [2025-02-14 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:06:24] Production.INFO: 36 MB #Memory Used# [2025-02-14 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:07:05 [end_date_ymd] => 2025-02-14 09:07:05 [RateCDR] => 1 ) [2025-02-14 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:07:05' and `end` < '2025-02-14 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:07:19] Production.INFO: count ==1033 [2025-02-14 09:07:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:07:05 - End Time 2025-02-14 09:07:05 [2025-02-14 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472720', 'tblTempUsageDetail_20' ) start [2025-02-14 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472720', 'tblTempUsageDetail_20' ) end [2025-02-14 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472720', 'tblTempVendorCDR_20' ) start [2025-02-14 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472720', 'tblTempVendorCDR_20' ) end [2025-02-14 09:07:19] Production.INFO: ProcessCDR(1,14472720,1,1,2) [2025-02-14 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472720', 'tblTempUsageDetail_20' ) start [2025-02-14 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472720', 'tblTempUsageDetail_20' ) end [2025-02-14 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:07:23] Production.INFO: ==3336== Releasing lock... [2025-02-14 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:07:23] Production.INFO: 36 MB #Memory Used# [2025-02-14 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:08:05 [end_date_ymd] => 2025-02-14 09:08:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:08:05' and `end` < '2025-02-14 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-02-14 09:08:19] Production.INFO: count ==1075 [2025-02-14 09:08:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:08:05 - End Time 2025-02-14 09:08:05 [2025-02-14 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472725', 'tblTempUsageDetail_20' ) start [2025-02-14 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472725', 'tblTempUsageDetail_20' ) end [2025-02-14 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472725', 'tblTempVendorCDR_20' ) start [2025-02-14 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472725', 'tblTempVendorCDR_20' ) end [2025-02-14 09:08:19] Production.INFO: ProcessCDR(1,14472725,1,1,2) [2025-02-14 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472725', 'tblTempUsageDetail_20' ) start [2025-02-14 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472725', 'tblTempUsageDetail_20' ) end [2025-02-14 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:08:24] Production.INFO: ==3412== Releasing lock... [2025-02-14 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:08:24] Production.INFO: 36 MB #Memory Used# [2025-02-14 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:09:05 [end_date_ymd] => 2025-02-14 09:09:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:09:05' and `end` < '2025-02-14 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-02-14 09:09:18] Production.INFO: count ==1092 [2025-02-14 09:09:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:09:05 - End Time 2025-02-14 09:09:05 [2025-02-14 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472730', 'tblTempUsageDetail_20' ) start [2025-02-14 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472730', 'tblTempUsageDetail_20' ) end [2025-02-14 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472730', 'tblTempVendorCDR_20' ) start [2025-02-14 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472730', 'tblTempVendorCDR_20' ) end [2025-02-14 09:09:19] Production.INFO: ProcessCDR(1,14472730,1,1,2) [2025-02-14 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472730', 'tblTempUsageDetail_20' ) start [2025-02-14 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472730', 'tblTempUsageDetail_20' ) end [2025-02-14 09:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:09:24] Production.INFO: ==3491== Releasing lock... [2025-02-14 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:09:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-14 09:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:10:07 [end_date_ymd] => 2025-02-14 09:10:07 [RateCDR] => 1 ) [2025-02-14 09:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:10:07' and `end` < '2025-02-14 09:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:10:20] Production.INFO: count ==1105 [2025-02-14 09:10:20] Production.ERROR: pbx CDR StartTime 2025-02-14 06:10:07 - End Time 2025-02-14 09:10:07 [2025-02-14 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472736', 'tblTempUsageDetail_20' ) start [2025-02-14 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472736', 'tblTempUsageDetail_20' ) end [2025-02-14 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472736', 'tblTempVendorCDR_20' ) start [2025-02-14 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472736', 'tblTempVendorCDR_20' ) end [2025-02-14 09:10:20] Production.INFO: ProcessCDR(1,14472736,1,1,2) [2025-02-14 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472736', 'tblTempUsageDetail_20' ) start [2025-02-14 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472736', 'tblTempUsageDetail_20' ) end [2025-02-14 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:10:25] Production.INFO: ==3571== Releasing lock... [2025-02-14 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:10:25] Production.INFO: 36.25 MB #Memory Used# [2025-02-14 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:11:05 [end_date_ymd] => 2025-02-14 09:11:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:11:05' and `end` < '2025-02-14 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-02-14 09:11:20] Production.INFO: count ==1149 [2025-02-14 09:11:20] Production.ERROR: pbx CDR StartTime 2025-02-14 06:11:05 - End Time 2025-02-14 09:11:05 [2025-02-14 09:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472741', 'tblTempUsageDetail_20' ) start [2025-02-14 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472741', 'tblTempUsageDetail_20' ) end [2025-02-14 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472741', 'tblTempVendorCDR_20' ) start [2025-02-14 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472741', 'tblTempVendorCDR_20' ) end [2025-02-14 09:11:20] Production.INFO: ProcessCDR(1,14472741,1,1,2) [2025-02-14 09:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472741', 'tblTempUsageDetail_20' ) start [2025-02-14 09:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472741', 'tblTempUsageDetail_20' ) end [2025-02-14 09:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:11:25] Production.INFO: ==3650== Releasing lock... [2025-02-14 09:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:11:25] Production.INFO: 37 MB #Memory Used# [2025-02-14 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:12:06 [end_date_ymd] => 2025-02-14 09:12:06 [RateCDR] => 1 ) [2025-02-14 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:12:06' and `end` < '2025-02-14 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:12:19] Production.INFO: count ==1169 [2025-02-14 09:12:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:12:06 - End Time 2025-02-14 09:12:06 [2025-02-14 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472746', 'tblTempUsageDetail_20' ) start [2025-02-14 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472746', 'tblTempUsageDetail_20' ) end [2025-02-14 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472746', 'tblTempVendorCDR_20' ) start [2025-02-14 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472746', 'tblTempVendorCDR_20' ) end [2025-02-14 09:12:19] Production.INFO: ProcessCDR(1,14472746,1,1,2) [2025-02-14 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472746', 'tblTempUsageDetail_20' ) start [2025-02-14 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472746', 'tblTempUsageDetail_20' ) end [2025-02-14 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:12:24] Production.INFO: ==3727== Releasing lock... [2025-02-14 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:12:24] Production.INFO: 37 MB #Memory Used# [2025-02-14 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:13:05 [end_date_ymd] => 2025-02-14 09:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:13:05' and `end` < '2025-02-14 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-02-14 09:13:19] Production.INFO: count ==1177 [2025-02-14 09:13:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:13:05 - End Time 2025-02-14 09:13:05 [2025-02-14 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472751', 'tblTempUsageDetail_20' ) start [2025-02-14 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472751', 'tblTempUsageDetail_20' ) end [2025-02-14 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472751', 'tblTempVendorCDR_20' ) start [2025-02-14 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472751', 'tblTempVendorCDR_20' ) end [2025-02-14 09:13:20] Production.INFO: ProcessCDR(1,14472751,1,1,2) [2025-02-14 09:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472751', 'tblTempUsageDetail_20' ) start [2025-02-14 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472751', 'tblTempUsageDetail_20' ) end [2025-02-14 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:13:24] Production.INFO: ==3802== Releasing lock... [2025-02-14 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:13:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-14 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:14:05 [end_date_ymd] => 2025-02-14 09:14:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:14:05' and `end` < '2025-02-14 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-02-14 09:14:19] Production.INFO: count ==1226 [2025-02-14 09:14:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:14:05 - End Time 2025-02-14 09:14:05 [2025-02-14 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472756', 'tblTempUsageDetail_20' ) start [2025-02-14 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472756', 'tblTempUsageDetail_20' ) end [2025-02-14 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472756', 'tblTempVendorCDR_20' ) start [2025-02-14 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472756', 'tblTempVendorCDR_20' ) end [2025-02-14 09:14:19] Production.INFO: ProcessCDR(1,14472756,1,1,2) [2025-02-14 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472756', 'tblTempUsageDetail_20' ) start [2025-02-14 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472756', 'tblTempUsageDetail_20' ) end [2025-02-14 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:14:24] Production.INFO: ==3880== Releasing lock... [2025-02-14 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:14:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-14 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:15:05 [end_date_ymd] => 2025-02-14 09:15:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:15:05' and `end` < '2025-02-14 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-02-14 09:15:27] Production.INFO: count ==1263 [2025-02-14 09:15:27] Production.ERROR: pbx CDR StartTime 2025-02-14 06:15:05 - End Time 2025-02-14 09:15:05 [2025-02-14 09:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472761', 'tblTempUsageDetail_20' ) start [2025-02-14 09:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472761', 'tblTempUsageDetail_20' ) end [2025-02-14 09:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472761', 'tblTempVendorCDR_20' ) start [2025-02-14 09:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472761', 'tblTempVendorCDR_20' ) end [2025-02-14 09:15:27] Production.INFO: ProcessCDR(1,14472761,1,1,2) [2025-02-14 09:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:15:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:15:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472761', 'tblTempUsageDetail_20' ) start [2025-02-14 09:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472761', 'tblTempUsageDetail_20' ) end [2025-02-14 09:15:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:15:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:15:32] Production.INFO: ==3956== Releasing lock... [2025-02-14 09:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:15:32] Production.INFO: 37.75 MB #Memory Used# [2025-02-14 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:16:05 [end_date_ymd] => 2025-02-14 09:16:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:16:05' and `end` < '2025-02-14 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-02-14 09:16:18] Production.INFO: count ==1272 [2025-02-14 09:16:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:16:05 - End Time 2025-02-14 09:16:05 [2025-02-14 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472766', 'tblTempUsageDetail_20' ) start [2025-02-14 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472766', 'tblTempUsageDetail_20' ) end [2025-02-14 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472766', 'tblTempVendorCDR_20' ) start [2025-02-14 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472766', 'tblTempVendorCDR_20' ) end [2025-02-14 09:16:19] Production.INFO: ProcessCDR(1,14472766,1,1,2) [2025-02-14 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472766', 'tblTempUsageDetail_20' ) start [2025-02-14 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472766', 'tblTempUsageDetail_20' ) end [2025-02-14 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:16:24] Production.INFO: ==4033== Releasing lock... [2025-02-14 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:16:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-14 09:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:17:04 [end_date_ymd] => 2025-02-14 09:17:04 [RateCDR] => 1 ) [2025-02-14 09: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-02-14 06:17:04' and `end` < '2025-02-14 09: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-02-14 09:17:19] Production.INFO: count ==1290 [2025-02-14 09:17:20] Production.ERROR: pbx CDR StartTime 2025-02-14 06:17:04 - End Time 2025-02-14 09:17:04 [2025-02-14 09:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472771', 'tblTempUsageDetail_20' ) start [2025-02-14 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472771', 'tblTempUsageDetail_20' ) end [2025-02-14 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472771', 'tblTempVendorCDR_20' ) start [2025-02-14 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472771', 'tblTempVendorCDR_20' ) end [2025-02-14 09:17:20] Production.INFO: ProcessCDR(1,14472771,1,1,2) [2025-02-14 09:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472771', 'tblTempUsageDetail_20' ) start [2025-02-14 09:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472771', 'tblTempUsageDetail_20' ) end [2025-02-14 09:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:17:25] Production.INFO: ==4105== Releasing lock... [2025-02-14 09:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:17:25] Production.INFO: 38 MB #Memory Used# [2025-02-14 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:18:05 [end_date_ymd] => 2025-02-14 09:18:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:18:05' and `end` < '2025-02-14 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-02-14 09:18:19] Production.INFO: count ==1304 [2025-02-14 09:18:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:18:05 - End Time 2025-02-14 09:18:05 [2025-02-14 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472776', 'tblTempUsageDetail_20' ) start [2025-02-14 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472776', 'tblTempUsageDetail_20' ) end [2025-02-14 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472776', 'tblTempVendorCDR_20' ) start [2025-02-14 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472776', 'tblTempVendorCDR_20' ) end [2025-02-14 09:18:19] Production.INFO: ProcessCDR(1,14472776,1,1,2) [2025-02-14 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472776', 'tblTempUsageDetail_20' ) start [2025-02-14 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472776', 'tblTempUsageDetail_20' ) end [2025-02-14 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:18:24] Production.INFO: ==4185== Releasing lock... [2025-02-14 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:18:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-14 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:19:05 [end_date_ymd] => 2025-02-14 09:19:05 [RateCDR] => 1 ) [2025-02-14 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:19:05' and `end` < '2025-02-14 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:19:20] Production.INFO: count ==1318 [2025-02-14 09:19:21] Production.ERROR: pbx CDR StartTime 2025-02-14 06:19:05 - End Time 2025-02-14 09:19:05 [2025-02-14 09:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472781', 'tblTempUsageDetail_20' ) start [2025-02-14 09:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472781', 'tblTempUsageDetail_20' ) end [2025-02-14 09:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472781', 'tblTempVendorCDR_20' ) start [2025-02-14 09:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472781', 'tblTempVendorCDR_20' ) end [2025-02-14 09:19:21] Production.INFO: ProcessCDR(1,14472781,1,1,2) [2025-02-14 09:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472781', 'tblTempUsageDetail_20' ) start [2025-02-14 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472781', 'tblTempUsageDetail_20' ) end [2025-02-14 09:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:19:24] Production.INFO: ==4258== Releasing lock... [2025-02-14 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:19:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-14 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:20:06 [end_date_ymd] => 2025-02-14 09:20:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:20:06' and `end` < '2025-02-14 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-02-14 09:20:19] Production.INFO: count ==1339 [2025-02-14 09:20:20] Production.ERROR: pbx CDR StartTime 2025-02-14 06:20:06 - End Time 2025-02-14 09:20:06 [2025-02-14 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472787', 'tblTempUsageDetail_20' ) start [2025-02-14 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472787', 'tblTempUsageDetail_20' ) end [2025-02-14 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472787', 'tblTempVendorCDR_20' ) start [2025-02-14 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472787', 'tblTempVendorCDR_20' ) end [2025-02-14 09:20:20] Production.INFO: ProcessCDR(1,14472787,1,1,2) [2025-02-14 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472787', 'tblTempUsageDetail_20' ) start [2025-02-14 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472787', 'tblTempUsageDetail_20' ) end [2025-02-14 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:20:25] Production.INFO: ==4375== Releasing lock... [2025-02-14 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:20:25] Production.INFO: 38 MB #Memory Used# [2025-02-14 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:21:05 [end_date_ymd] => 2025-02-14 09:21:05 [RateCDR] => 1 ) [2025-02-14 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:21:05' and `end` < '2025-02-14 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:21:18] Production.INFO: count ==1400 [2025-02-14 09:21:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:21:05 - End Time 2025-02-14 09:21:05 [2025-02-14 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472792', 'tblTempUsageDetail_20' ) start [2025-02-14 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472792', 'tblTempUsageDetail_20' ) end [2025-02-14 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472792', 'tblTempVendorCDR_20' ) start [2025-02-14 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472792', 'tblTempVendorCDR_20' ) end [2025-02-14 09:21:19] Production.INFO: ProcessCDR(1,14472792,1,1,2) [2025-02-14 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472792', 'tblTempUsageDetail_20' ) start [2025-02-14 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472792', 'tblTempUsageDetail_20' ) end [2025-02-14 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:21:24] Production.INFO: ==4448== Releasing lock... [2025-02-14 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:21:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-14 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:22:06 [end_date_ymd] => 2025-02-14 09:22:06 [RateCDR] => 1 ) [2025-02-14 09:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:22:06' and `end` < '2025-02-14 09:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:22:19] Production.INFO: count ==1420 [2025-02-14 09:22:20] Production.ERROR: pbx CDR StartTime 2025-02-14 06:22:06 - End Time 2025-02-14 09:22:06 [2025-02-14 09:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472797', 'tblTempUsageDetail_20' ) start [2025-02-14 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472797', 'tblTempUsageDetail_20' ) end [2025-02-14 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472797', 'tblTempVendorCDR_20' ) start [2025-02-14 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472797', 'tblTempVendorCDR_20' ) end [2025-02-14 09:22:20] Production.INFO: ProcessCDR(1,14472797,1,1,2) [2025-02-14 09:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472797', 'tblTempUsageDetail_20' ) start [2025-02-14 09:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472797', 'tblTempUsageDetail_20' ) end [2025-02-14 09:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:22:25] Production.INFO: ==4521== Releasing lock... [2025-02-14 09:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:22:25] Production.INFO: 38.75 MB #Memory Used# [2025-02-14 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:23:05 [end_date_ymd] => 2025-02-14 09:23:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:23:05' and `end` < '2025-02-14 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-02-14 09:23:19] Production.INFO: count ==1436 [2025-02-14 09:23:20] Production.ERROR: pbx CDR StartTime 2025-02-14 06:23:05 - End Time 2025-02-14 09:23:05 [2025-02-14 09:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472802', 'tblTempUsageDetail_20' ) start [2025-02-14 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472802', 'tblTempUsageDetail_20' ) end [2025-02-14 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472802', 'tblTempVendorCDR_20' ) start [2025-02-14 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472802', 'tblTempVendorCDR_20' ) end [2025-02-14 09:23:20] Production.INFO: ProcessCDR(1,14472802,1,1,2) [2025-02-14 09:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472802', 'tblTempUsageDetail_20' ) start [2025-02-14 09:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472802', 'tblTempUsageDetail_20' ) end [2025-02-14 09:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:23:25] Production.INFO: ==4602== Releasing lock... [2025-02-14 09:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:23:25] Production.INFO: 38.75 MB #Memory Used# [2025-02-14 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:24:05 [end_date_ymd] => 2025-02-14 09:24:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:24:05' and `end` < '2025-02-14 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-02-14 09:24:24] Production.INFO: count ==1475 [2025-02-14 09:24:25] Production.ERROR: pbx CDR StartTime 2025-02-14 06:24:05 - End Time 2025-02-14 09:24:05 [2025-02-14 09:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472807', 'tblTempUsageDetail_20' ) start [2025-02-14 09:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472807', 'tblTempUsageDetail_20' ) end [2025-02-14 09:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472807', 'tblTempVendorCDR_20' ) start [2025-02-14 09:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472807', 'tblTempVendorCDR_20' ) end [2025-02-14 09:24:25] Production.INFO: ProcessCDR(1,14472807,1,1,2) [2025-02-14 09:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472807', 'tblTempUsageDetail_20' ) start [2025-02-14 09:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472807', 'tblTempUsageDetail_20' ) end [2025-02-14 09:24:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:24:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:24:30] Production.INFO: ==4676== Releasing lock... [2025-02-14 09:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:24:30] Production.INFO: 39 MB #Memory Used# [2025-02-14 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:25:05 [end_date_ymd] => 2025-02-14 09:25:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:25:05' and `end` < '2025-02-14 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-02-14 09:25:24] Production.INFO: count ==1512 [2025-02-14 09:25:25] Production.ERROR: pbx CDR StartTime 2025-02-14 06:25:05 - End Time 2025-02-14 09:25:05 [2025-02-14 09:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472812', 'tblTempUsageDetail_20' ) start [2025-02-14 09:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472812', 'tblTempUsageDetail_20' ) end [2025-02-14 09:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472812', 'tblTempVendorCDR_20' ) start [2025-02-14 09:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472812', 'tblTempVendorCDR_20' ) end [2025-02-14 09:25:25] Production.INFO: ProcessCDR(1,14472812,1,1,2) [2025-02-14 09:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472812', 'tblTempUsageDetail_20' ) start [2025-02-14 09:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472812', 'tblTempUsageDetail_20' ) end [2025-02-14 09:25:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:25:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:25:30] Production.INFO: ==4750== Releasing lock... [2025-02-14 09:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:25:30] Production.INFO: 39.5 MB #Memory Used# [2025-02-14 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:26:05 [end_date_ymd] => 2025-02-14 09:26:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:26:05' and `end` < '2025-02-14 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-02-14 09:26:24] Production.INFO: count ==1529 [2025-02-14 09:26:25] Production.ERROR: pbx CDR StartTime 2025-02-14 06:26:05 - End Time 2025-02-14 09:26:05 [2025-02-14 09:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472817', 'tblTempUsageDetail_20' ) start [2025-02-14 09:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472817', 'tblTempUsageDetail_20' ) end [2025-02-14 09:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472817', 'tblTempVendorCDR_20' ) start [2025-02-14 09:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472817', 'tblTempVendorCDR_20' ) end [2025-02-14 09:26:25] Production.INFO: ProcessCDR(1,14472817,1,1,2) [2025-02-14 09:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472817', 'tblTempUsageDetail_20' ) start [2025-02-14 09:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472817', 'tblTempUsageDetail_20' ) end [2025-02-14 09:26:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:26:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:26:30] Production.INFO: ==4823== Releasing lock... [2025-02-14 09:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:26:30] Production.INFO: 39.5 MB #Memory Used# [2025-02-14 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:27:05 [end_date_ymd] => 2025-02-14 09:27:05 [RateCDR] => 1 ) [2025-02-14 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:27:05' and `end` < '2025-02-14 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:27:24] Production.INFO: count ==1550 [2025-02-14 09:27:24] Production.ERROR: pbx CDR StartTime 2025-02-14 06:27:05 - End Time 2025-02-14 09:27:05 [2025-02-14 09:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472822', 'tblTempUsageDetail_20' ) start [2025-02-14 09:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472822', 'tblTempUsageDetail_20' ) end [2025-02-14 09:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472822', 'tblTempVendorCDR_20' ) start [2025-02-14 09:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472822', 'tblTempVendorCDR_20' ) end [2025-02-14 09:27:24] Production.INFO: ProcessCDR(1,14472822,1,1,2) [2025-02-14 09:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472822', 'tblTempUsageDetail_20' ) start [2025-02-14 09:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472822', 'tblTempUsageDetail_20' ) end [2025-02-14 09:27:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:27:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:27:29] Production.INFO: ==4899== Releasing lock... [2025-02-14 09:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:27:29] Production.INFO: 40 MB #Memory Used# [2025-02-14 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:28:06 [end_date_ymd] => 2025-02-14 09:28:06 [RateCDR] => 1 ) [2025-02-14 09:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:28:06' and `end` < '2025-02-14 09: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-02-14 09:28:23] Production.INFO: count ==1571 [2025-02-14 09:28:24] Production.ERROR: pbx CDR StartTime 2025-02-14 06:28:06 - End Time 2025-02-14 09:28:06 [2025-02-14 09:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472827', 'tblTempUsageDetail_20' ) start [2025-02-14 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472827', 'tblTempUsageDetail_20' ) end [2025-02-14 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472827', 'tblTempVendorCDR_20' ) start [2025-02-14 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472827', 'tblTempVendorCDR_20' ) end [2025-02-14 09:28:24] Production.INFO: ProcessCDR(1,14472827,1,1,2) [2025-02-14 09:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472827', 'tblTempUsageDetail_20' ) start [2025-02-14 09:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472827', 'tblTempUsageDetail_20' ) end [2025-02-14 09:28:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:28:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:28:29] Production.INFO: ==4973== Releasing lock... [2025-02-14 09:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:28:29] Production.INFO: 39.75 MB #Memory Used# [2025-02-14 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:29:06 [end_date_ymd] => 2025-02-14 09:29:06 [RateCDR] => 1 ) [2025-02-14 09: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-02-14 06:29:06' and `end` < '2025-02-14 09: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-02-14 09:29:21] Production.INFO: count ==1586 [2025-02-14 09:29:22] Production.ERROR: pbx CDR StartTime 2025-02-14 06:29:06 - End Time 2025-02-14 09:29:06 [2025-02-14 09:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472832', 'tblTempUsageDetail_20' ) start [2025-02-14 09:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472832', 'tblTempUsageDetail_20' ) end [2025-02-14 09:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472832', 'tblTempVendorCDR_20' ) start [2025-02-14 09:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472832', 'tblTempVendorCDR_20' ) end [2025-02-14 09:29:22] Production.INFO: ProcessCDR(1,14472832,1,1,2) [2025-02-14 09:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472832', 'tblTempUsageDetail_20' ) start [2025-02-14 09:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472832', 'tblTempUsageDetail_20' ) end [2025-02-14 09:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:29:26] Production.INFO: ==5045== Releasing lock... [2025-02-14 09:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:29:26] Production.INFO: 40 MB #Memory Used# [2025-02-14 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:30:06 [end_date_ymd] => 2025-02-14 09:30:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:30:06' and `end` < '2025-02-14 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-02-14 09:30:20] Production.INFO: count ==1590 [2025-02-14 09:30:21] Production.ERROR: pbx CDR StartTime 2025-02-14 06:30:06 - End Time 2025-02-14 09:30:06 [2025-02-14 09:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472838', 'tblTempUsageDetail_20' ) start [2025-02-14 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472838', 'tblTempUsageDetail_20' ) end [2025-02-14 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472838', 'tblTempVendorCDR_20' ) start [2025-02-14 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472838', 'tblTempVendorCDR_20' ) end [2025-02-14 09:30:21] Production.INFO: ProcessCDR(1,14472838,1,1,2) [2025-02-14 09:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472838', 'tblTempUsageDetail_20' ) start [2025-02-14 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472838', 'tblTempUsageDetail_20' ) end [2025-02-14 09:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:30:26] Production.INFO: ==5123== Releasing lock... [2025-02-14 09:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:30:26] Production.INFO: 40.5 MB #Memory Used# [2025-02-14 09:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:31:04 [end_date_ymd] => 2025-02-14 09:31:04 [RateCDR] => 1 ) [2025-02-14 09: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-02-14 06:31:04' and `end` < '2025-02-14 09: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-02-14 09:31:18] Production.INFO: count ==1693 [2025-02-14 09:31:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:31:04 - End Time 2025-02-14 09:31:04 [2025-02-14 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472843', 'tblTempUsageDetail_20' ) start [2025-02-14 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472843', 'tblTempUsageDetail_20' ) end [2025-02-14 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472843', 'tblTempVendorCDR_20' ) start [2025-02-14 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472843', 'tblTempVendorCDR_20' ) end [2025-02-14 09:31:19] Production.INFO: ProcessCDR(1,14472843,1,1,2) [2025-02-14 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472843', 'tblTempUsageDetail_20' ) start [2025-02-14 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472843', 'tblTempUsageDetail_20' ) end [2025-02-14 09:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:31:24] Production.INFO: ==5195== Releasing lock... [2025-02-14 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:31:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-14 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:32:05 [end_date_ymd] => 2025-02-14 09:32:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:32:05' and `end` < '2025-02-14 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-02-14 09:32:21] Production.INFO: count ==1707 [2025-02-14 09:32:22] Production.ERROR: pbx CDR StartTime 2025-02-14 06:32:05 - End Time 2025-02-14 09:32:05 [2025-02-14 09:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472848', 'tblTempUsageDetail_20' ) start [2025-02-14 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472848', 'tblTempUsageDetail_20' ) end [2025-02-14 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472848', 'tblTempVendorCDR_20' ) start [2025-02-14 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472848', 'tblTempVendorCDR_20' ) end [2025-02-14 09:32:22] Production.INFO: ProcessCDR(1,14472848,1,1,2) [2025-02-14 09:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472848', 'tblTempUsageDetail_20' ) start [2025-02-14 09:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472848', 'tblTempUsageDetail_20' ) end [2025-02-14 09:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:32:27] Production.INFO: ==5265== Releasing lock... [2025-02-14 09:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:32:27] Production.INFO: 40.75 MB #Memory Used# [2025-02-14 09:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:33:04 [end_date_ymd] => 2025-02-14 09:33:04 [RateCDR] => 1 ) [2025-02-14 09: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-02-14 06:33:04' and `end` < '2025-02-14 09: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-02-14 09:33:22] Production.INFO: count ==1718 [2025-02-14 09:33:23] Production.ERROR: pbx CDR StartTime 2025-02-14 06:33:04 - End Time 2025-02-14 09:33:04 [2025-02-14 09:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472853', 'tblTempUsageDetail_20' ) start [2025-02-14 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472853', 'tblTempUsageDetail_20' ) end [2025-02-14 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472853', 'tblTempVendorCDR_20' ) start [2025-02-14 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472853', 'tblTempVendorCDR_20' ) end [2025-02-14 09:33:23] Production.INFO: ProcessCDR(1,14472853,1,1,2) [2025-02-14 09:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472853', 'tblTempUsageDetail_20' ) start [2025-02-14 09:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472853', 'tblTempUsageDetail_20' ) end [2025-02-14 09:33:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:33:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:33:28] Production.INFO: ==5335== Releasing lock... [2025-02-14 09:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:33:28] Production.INFO: 41.25 MB #Memory Used# [2025-02-14 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:34:06 [end_date_ymd] => 2025-02-14 09:34:06 [RateCDR] => 1 ) [2025-02-14 09:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:34:06' and `end` < '2025-02-14 09:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:34:23] Production.INFO: count ==1741 [2025-02-14 09:34:24] Production.ERROR: pbx CDR StartTime 2025-02-14 06:34:06 - End Time 2025-02-14 09:34:06 [2025-02-14 09:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472858', 'tblTempUsageDetail_20' ) start [2025-02-14 09:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472858', 'tblTempUsageDetail_20' ) end [2025-02-14 09:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472858', 'tblTempVendorCDR_20' ) start [2025-02-14 09:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472858', 'tblTempVendorCDR_20' ) end [2025-02-14 09:34:24] Production.INFO: ProcessCDR(1,14472858,1,1,2) [2025-02-14 09:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472858', 'tblTempUsageDetail_20' ) start [2025-02-14 09:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472858', 'tblTempUsageDetail_20' ) end [2025-02-14 09:34:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:34:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:34:29] Production.INFO: ==5409== Releasing lock... [2025-02-14 09:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:34:29] Production.INFO: 41 MB #Memory Used# [2025-02-14 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:35:05 [end_date_ymd] => 2025-02-14 09:35:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:35:05' and `end` < '2025-02-14 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-02-14 09:35:33] Production.INFO: count ==1762 [2025-02-14 09:35:33] Production.ERROR: pbx CDR StartTime 2025-02-14 06:35:05 - End Time 2025-02-14 09:35:05 [2025-02-14 09:35:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472863', 'tblTempUsageDetail_20' ) start [2025-02-14 09:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472863', 'tblTempUsageDetail_20' ) end [2025-02-14 09:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472863', 'tblTempVendorCDR_20' ) start [2025-02-14 09:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472863', 'tblTempVendorCDR_20' ) end [2025-02-14 09:35:33] Production.INFO: ProcessCDR(1,14472863,1,1,2) [2025-02-14 09:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:35:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:35:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:35:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472863', 'tblTempUsageDetail_20' ) start [2025-02-14 09:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472863', 'tblTempUsageDetail_20' ) end [2025-02-14 09:35:38] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:35:38] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:35:38] Production.INFO: ==5488== Releasing lock... [2025-02-14 09:35:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:35:38] Production.INFO: 41.25 MB #Memory Used# [2025-02-14 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:36:05 [end_date_ymd] => 2025-02-14 09:36:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:36:05' and `end` < '2025-02-14 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-02-14 09:36:22] Production.INFO: count ==1764 [2025-02-14 09:36:23] Production.ERROR: pbx CDR StartTime 2025-02-14 06:36:05 - End Time 2025-02-14 09:36:05 [2025-02-14 09:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472868', 'tblTempUsageDetail_20' ) start [2025-02-14 09:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472868', 'tblTempUsageDetail_20' ) end [2025-02-14 09:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472868', 'tblTempVendorCDR_20' ) start [2025-02-14 09:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472868', 'tblTempVendorCDR_20' ) end [2025-02-14 09:36:23] Production.INFO: ProcessCDR(1,14472868,1,1,2) [2025-02-14 09:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472868', 'tblTempUsageDetail_20' ) start [2025-02-14 09:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472868', 'tblTempUsageDetail_20' ) end [2025-02-14 09:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:36:26] Production.INFO: ==5592== Releasing lock... [2025-02-14 09:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:36:26] Production.INFO: 41.25 MB #Memory Used# [2025-02-14 09:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:37:04 [end_date_ymd] => 2025-02-14 09:37:04 [RateCDR] => 1 ) [2025-02-14 09: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-02-14 06:37:04' and `end` < '2025-02-14 09: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-02-14 09:37:23] Production.INFO: count ==1766 [2025-02-14 09:37:24] Production.ERROR: pbx CDR StartTime 2025-02-14 06:37:04 - End Time 2025-02-14 09:37:04 [2025-02-14 09:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472873', 'tblTempUsageDetail_20' ) start [2025-02-14 09:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472873', 'tblTempUsageDetail_20' ) end [2025-02-14 09:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472873', 'tblTempVendorCDR_20' ) start [2025-02-14 09:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472873', 'tblTempVendorCDR_20' ) end [2025-02-14 09:37:24] Production.INFO: ProcessCDR(1,14472873,1,1,2) [2025-02-14 09:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472873', 'tblTempUsageDetail_20' ) start [2025-02-14 09:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472873', 'tblTempUsageDetail_20' ) end [2025-02-14 09:37:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:37:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:37:29] Production.INFO: ==5662== Releasing lock... [2025-02-14 09:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:37:29] Production.INFO: 41.25 MB #Memory Used# [2025-02-14 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:38:06 [end_date_ymd] => 2025-02-14 09:38:06 [RateCDR] => 1 ) [2025-02-14 09: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-02-14 06:38:06' and `end` < '2025-02-14 09: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-02-14 09:38:24] Production.INFO: count ==1793 [2025-02-14 09:38:25] Production.ERROR: pbx CDR StartTime 2025-02-14 06:38:06 - End Time 2025-02-14 09:38:06 [2025-02-14 09:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472878', 'tblTempUsageDetail_20' ) start [2025-02-14 09:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472878', 'tblTempUsageDetail_20' ) end [2025-02-14 09:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472878', 'tblTempVendorCDR_20' ) start [2025-02-14 09:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472878', 'tblTempVendorCDR_20' ) end [2025-02-14 09:38:25] Production.INFO: ProcessCDR(1,14472878,1,1,2) [2025-02-14 09:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472878', 'tblTempUsageDetail_20' ) start [2025-02-14 09:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472878', 'tblTempUsageDetail_20' ) end [2025-02-14 09:38:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:38:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:38:31] Production.INFO: ==5736== Releasing lock... [2025-02-14 09:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:38:31] Production.INFO: 41.75 MB #Memory Used# [2025-02-14 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:39:05 [end_date_ymd] => 2025-02-14 09:39:05 [RateCDR] => 1 ) [2025-02-14 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:39:05' and `end` < '2025-02-14 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:39:21] Production.INFO: count ==1805 [2025-02-14 09:39:22] Production.ERROR: pbx CDR StartTime 2025-02-14 06:39:05 - End Time 2025-02-14 09:39:05 [2025-02-14 09:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472883', 'tblTempUsageDetail_20' ) start [2025-02-14 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472883', 'tblTempUsageDetail_20' ) end [2025-02-14 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472883', 'tblTempVendorCDR_20' ) start [2025-02-14 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472883', 'tblTempVendorCDR_20' ) end [2025-02-14 09:39:22] Production.INFO: ProcessCDR(1,14472883,1,1,2) [2025-02-14 09:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472883', 'tblTempUsageDetail_20' ) start [2025-02-14 09:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472883', 'tblTempUsageDetail_20' ) end [2025-02-14 09:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:39:27] Production.INFO: ==5805== Releasing lock... [2025-02-14 09:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:39:27] Production.INFO: 41.5 MB #Memory Used# [2025-02-14 09:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:40:07 [end_date_ymd] => 2025-02-14 09:40:07 [RateCDR] => 1 ) [2025-02-14 09:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:40:07' and `end` < '2025-02-14 09:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:40:20] Production.INFO: count ==1819 [2025-02-14 09:40:21] Production.ERROR: pbx CDR StartTime 2025-02-14 06:40:07 - End Time 2025-02-14 09:40:07 [2025-02-14 09:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472889', 'tblTempUsageDetail_20' ) start [2025-02-14 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472889', 'tblTempUsageDetail_20' ) end [2025-02-14 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472889', 'tblTempVendorCDR_20' ) start [2025-02-14 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472889', 'tblTempVendorCDR_20' ) end [2025-02-14 09:40:21] Production.INFO: ProcessCDR(1,14472889,1,1,2) [2025-02-14 09:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472889', 'tblTempUsageDetail_20' ) start [2025-02-14 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472889', 'tblTempUsageDetail_20' ) end [2025-02-14 09:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:40:26] Production.INFO: ==5878== Releasing lock... [2025-02-14 09:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:40:26] Production.INFO: 42 MB #Memory Used# [2025-02-14 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:41:05 [end_date_ymd] => 2025-02-14 09:41:05 [RateCDR] => 1 ) [2025-02-14 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:41:05' and `end` < '2025-02-14 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:41:19] Production.INFO: count ==1863 [2025-02-14 09:41:20] Production.ERROR: pbx CDR StartTime 2025-02-14 06:41:05 - End Time 2025-02-14 09:41:05 [2025-02-14 09:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472894', 'tblTempUsageDetail_20' ) start [2025-02-14 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472894', 'tblTempUsageDetail_20' ) end [2025-02-14 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472894', 'tblTempVendorCDR_20' ) start [2025-02-14 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472894', 'tblTempVendorCDR_20' ) end [2025-02-14 09:41:20] Production.INFO: ProcessCDR(1,14472894,1,1,2) [2025-02-14 09:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472894', 'tblTempUsageDetail_20' ) start [2025-02-14 09:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472894', 'tblTempUsageDetail_20' ) end [2025-02-14 09:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:41:26] Production.INFO: ==5953== Releasing lock... [2025-02-14 09:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:41:26] Production.INFO: 42 MB #Memory Used# [2025-02-14 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:42:06 [end_date_ymd] => 2025-02-14 09:42:06 [RateCDR] => 1 ) [2025-02-14 09: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-02-14 06:42:06' and `end` < '2025-02-14 09: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-02-14 09:42:19] Production.INFO: count ==1868 [2025-02-14 09:42:20] Production.ERROR: pbx CDR StartTime 2025-02-14 06:42:06 - End Time 2025-02-14 09:42:06 [2025-02-14 09:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472899', 'tblTempUsageDetail_20' ) start [2025-02-14 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472899', 'tblTempUsageDetail_20' ) end [2025-02-14 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472899', 'tblTempVendorCDR_20' ) start [2025-02-14 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472899', 'tblTempVendorCDR_20' ) end [2025-02-14 09:42:20] Production.INFO: ProcessCDR(1,14472899,1,1,2) [2025-02-14 09:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472899', 'tblTempUsageDetail_20' ) start [2025-02-14 09:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472899', 'tblTempUsageDetail_20' ) end [2025-02-14 09:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:42:26] Production.INFO: ==6025== Releasing lock... [2025-02-14 09:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:42:26] Production.INFO: 42 MB #Memory Used# [2025-02-14 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:43:05 [end_date_ymd] => 2025-02-14 09:43:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:43:05' and `end` < '2025-02-14 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-02-14 09:43:19] Production.INFO: count ==1870 [2025-02-14 09:43:20] Production.ERROR: pbx CDR StartTime 2025-02-14 06:43:05 - End Time 2025-02-14 09:43:05 [2025-02-14 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472904', 'tblTempUsageDetail_20' ) start [2025-02-14 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472904', 'tblTempUsageDetail_20' ) end [2025-02-14 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472904', 'tblTempVendorCDR_20' ) start [2025-02-14 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472904', 'tblTempVendorCDR_20' ) end [2025-02-14 09:43:20] Production.INFO: ProcessCDR(1,14472904,1,1,2) [2025-02-14 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472904', 'tblTempUsageDetail_20' ) start [2025-02-14 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472904', 'tblTempUsageDetail_20' ) end [2025-02-14 09:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:43:25] Production.INFO: ==6095== Releasing lock... [2025-02-14 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:43:25] Production.INFO: 42.5 MB #Memory Used# [2025-02-14 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:44:06 [end_date_ymd] => 2025-02-14 09:44:06 [RateCDR] => 1 ) [2025-02-14 09:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:44:06' and `end` < '2025-02-14 09:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:44:20] Production.INFO: count ==1879 [2025-02-14 09:44:21] Production.ERROR: pbx CDR StartTime 2025-02-14 06:44:06 - End Time 2025-02-14 09:44:06 [2025-02-14 09:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472909', 'tblTempUsageDetail_20' ) start [2025-02-14 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472909', 'tblTempUsageDetail_20' ) end [2025-02-14 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472909', 'tblTempVendorCDR_20' ) start [2025-02-14 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472909', 'tblTempVendorCDR_20' ) end [2025-02-14 09:44:21] Production.INFO: ProcessCDR(1,14472909,1,1,2) [2025-02-14 09:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472909', 'tblTempUsageDetail_20' ) start [2025-02-14 09:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472909', 'tblTempUsageDetail_20' ) end [2025-02-14 09:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:44:26] Production.INFO: ==6165== Releasing lock... [2025-02-14 09:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:44:26] Production.INFO: 42.5 MB #Memory Used# [2025-02-14 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:45:05 [end_date_ymd] => 2025-02-14 09:45:05 [RateCDR] => 1 ) [2025-02-14 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:45:05' and `end` < '2025-02-14 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:45:19] Production.INFO: count ==1900 [2025-02-14 09:45:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:45:05 - End Time 2025-02-14 09:45:05 [2025-02-14 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472914', 'tblTempUsageDetail_20' ) start [2025-02-14 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472914', 'tblTempUsageDetail_20' ) end [2025-02-14 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472914', 'tblTempVendorCDR_20' ) start [2025-02-14 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472914', 'tblTempVendorCDR_20' ) end [2025-02-14 09:45:20] Production.INFO: ProcessCDR(1,14472914,1,1,2) [2025-02-14 09:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472914', 'tblTempUsageDetail_20' ) start [2025-02-14 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472914', 'tblTempUsageDetail_20' ) end [2025-02-14 09:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:45:25] Production.INFO: ==6236== Releasing lock... [2025-02-14 09:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:45:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-14 09:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:46:06 [end_date_ymd] => 2025-02-14 09:46:06 [RateCDR] => 1 ) [2025-02-14 09: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-02-14 06:46:06' and `end` < '2025-02-14 09: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-02-14 09:46:19] Production.INFO: count ==1914 [2025-02-14 09:46:20] Production.ERROR: pbx CDR StartTime 2025-02-14 06:46:06 - End Time 2025-02-14 09:46:06 [2025-02-14 09:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472919', 'tblTempUsageDetail_20' ) start [2025-02-14 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472919', 'tblTempUsageDetail_20' ) end [2025-02-14 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472919', 'tblTempVendorCDR_20' ) start [2025-02-14 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472919', 'tblTempVendorCDR_20' ) end [2025-02-14 09:46:20] Production.INFO: ProcessCDR(1,14472919,1,1,2) [2025-02-14 09:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472919', 'tblTempUsageDetail_20' ) start [2025-02-14 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472919', 'tblTempUsageDetail_20' ) end [2025-02-14 09:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:46:25] Production.INFO: ==6312== Releasing lock... [2025-02-14 09:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:46:25] Production.INFO: 42.75 MB #Memory Used# [2025-02-14 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:47:05 [end_date_ymd] => 2025-02-14 09:47:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:47:05' and `end` < '2025-02-14 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-02-14 09:47:21] Production.INFO: count ==1942 [2025-02-14 09:47:22] Production.ERROR: pbx CDR StartTime 2025-02-14 06:47:05 - End Time 2025-02-14 09:47:05 [2025-02-14 09:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472924', 'tblTempUsageDetail_20' ) start [2025-02-14 09:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472924', 'tblTempUsageDetail_20' ) end [2025-02-14 09:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472924', 'tblTempVendorCDR_20' ) start [2025-02-14 09:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472924', 'tblTempVendorCDR_20' ) end [2025-02-14 09:47:22] Production.INFO: ProcessCDR(1,14472924,1,1,2) [2025-02-14 09:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472924', 'tblTempUsageDetail_20' ) start [2025-02-14 09:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472924', 'tblTempUsageDetail_20' ) end [2025-02-14 09:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:47:27] Production.INFO: ==6384== Releasing lock... [2025-02-14 09:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:47:27] Production.INFO: 42.5 MB #Memory Used# [2025-02-14 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:48:06 [end_date_ymd] => 2025-02-14 09:48:06 [RateCDR] => 1 ) [2025-02-14 09: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-02-14 06:48:06' and `end` < '2025-02-14 09: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-02-14 09:48:20] Production.INFO: count ==1958 [2025-02-14 09:48:20] Production.ERROR: pbx CDR StartTime 2025-02-14 06:48:06 - End Time 2025-02-14 09:48:06 [2025-02-14 09:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472929', 'tblTempUsageDetail_20' ) start [2025-02-14 09:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472929', 'tblTempUsageDetail_20' ) end [2025-02-14 09:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472929', 'tblTempVendorCDR_20' ) start [2025-02-14 09:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472929', 'tblTempVendorCDR_20' ) end [2025-02-14 09:48:21] Production.INFO: ProcessCDR(1,14472929,1,1,2) [2025-02-14 09:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472929', 'tblTempUsageDetail_20' ) start [2025-02-14 09:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472929', 'tblTempUsageDetail_20' ) end [2025-02-14 09:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:48:26] Production.INFO: ==6455== Releasing lock... [2025-02-14 09:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:48:26] Production.INFO: 42.75 MB #Memory Used# [2025-02-14 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:49:05 [end_date_ymd] => 2025-02-14 09:49:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:49:05' and `end` < '2025-02-14 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-02-14 09:49:19] Production.INFO: count ==1988 [2025-02-14 09:49:20] Production.ERROR: pbx CDR StartTime 2025-02-14 06:49:05 - End Time 2025-02-14 09:49:05 [2025-02-14 09:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472934', 'tblTempUsageDetail_20' ) start [2025-02-14 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472934', 'tblTempUsageDetail_20' ) end [2025-02-14 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472934', 'tblTempVendorCDR_20' ) start [2025-02-14 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472934', 'tblTempVendorCDR_20' ) end [2025-02-14 09:49:20] Production.INFO: ProcessCDR(1,14472934,1,1,2) [2025-02-14 09:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472934', 'tblTempUsageDetail_20' ) start [2025-02-14 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472934', 'tblTempUsageDetail_20' ) end [2025-02-14 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:49:24] Production.INFO: ==6526== Releasing lock... [2025-02-14 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:49:24] Production.INFO: 43 MB #Memory Used# [2025-02-14 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:50:06 [end_date_ymd] => 2025-02-14 09:50:06 [RateCDR] => 1 ) [2025-02-14 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:50:06' and `end` < '2025-02-14 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:50:25] Production.INFO: count ==1991 [2025-02-14 09:50:26] Production.ERROR: pbx CDR StartTime 2025-02-14 06:50:06 - End Time 2025-02-14 09:50:06 [2025-02-14 09:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472939', 'tblTempUsageDetail_20' ) start [2025-02-14 09:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472939', 'tblTempUsageDetail_20' ) end [2025-02-14 09:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472939', 'tblTempVendorCDR_20' ) start [2025-02-14 09:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472939', 'tblTempVendorCDR_20' ) end [2025-02-14 09:50:26] Production.INFO: ProcessCDR(1,14472939,1,1,2) [2025-02-14 09:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472939', 'tblTempUsageDetail_20' ) start [2025-02-14 09:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472939', 'tblTempUsageDetail_20' ) end [2025-02-14 09:50:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:50:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:50:31] Production.INFO: ==6598== Releasing lock... [2025-02-14 09:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:50:31] Production.INFO: 43 MB #Memory Used# [2025-02-14 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:51:05 [end_date_ymd] => 2025-02-14 09:51:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:51:05' and `end` < '2025-02-14 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-02-14 09:51:18] Production.INFO: count ==2039 [2025-02-14 09:51:19] Production.ERROR: pbx CDR StartTime 2025-02-14 06:51:05 - End Time 2025-02-14 09:51:05 [2025-02-14 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472945', 'tblTempUsageDetail_20' ) start [2025-02-14 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472945', 'tblTempUsageDetail_20' ) end [2025-02-14 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472945', 'tblTempVendorCDR_20' ) start [2025-02-14 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472945', 'tblTempVendorCDR_20' ) end [2025-02-14 09:51:19] Production.INFO: ProcessCDR(1,14472945,1,1,2) [2025-02-14 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472945', 'tblTempUsageDetail_20' ) start [2025-02-14 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472945', 'tblTempUsageDetail_20' ) end [2025-02-14 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:51:24] Production.INFO: ==6708== Releasing lock... [2025-02-14 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:51:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-14 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:52:06 [end_date_ymd] => 2025-02-14 09:52:06 [RateCDR] => 1 ) [2025-02-14 09:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:52:06' and `end` < '2025-02-14 09:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 09:52:19] Production.INFO: count ==2050 [2025-02-14 09:52:20] Production.ERROR: pbx CDR StartTime 2025-02-14 06:52:06 - End Time 2025-02-14 09:52:06 [2025-02-14 09:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472950', 'tblTempUsageDetail_20' ) start [2025-02-14 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472950', 'tblTempUsageDetail_20' ) end [2025-02-14 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472950', 'tblTempVendorCDR_20' ) start [2025-02-14 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472950', 'tblTempVendorCDR_20' ) end [2025-02-14 09:52:20] Production.INFO: ProcessCDR(1,14472950,1,1,2) [2025-02-14 09:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472950', 'tblTempUsageDetail_20' ) start [2025-02-14 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472950', 'tblTempUsageDetail_20' ) end [2025-02-14 09:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:52:23] Production.INFO: ==6780== Releasing lock... [2025-02-14 09:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:52:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-14 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:53:05 [end_date_ymd] => 2025-02-14 09:53:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:53:05' and `end` < '2025-02-14 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-02-14 09:53:20] Production.INFO: count ==2057 [2025-02-14 09:53:21] Production.ERROR: pbx CDR StartTime 2025-02-14 06:53:05 - End Time 2025-02-14 09:53:05 [2025-02-14 09:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472955', 'tblTempUsageDetail_20' ) start [2025-02-14 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472955', 'tblTempUsageDetail_20' ) end [2025-02-14 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472955', 'tblTempVendorCDR_20' ) start [2025-02-14 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472955', 'tblTempVendorCDR_20' ) end [2025-02-14 09:53:21] Production.INFO: ProcessCDR(1,14472955,1,1,2) [2025-02-14 09:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472955', 'tblTempUsageDetail_20' ) start [2025-02-14 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472955', 'tblTempUsageDetail_20' ) end [2025-02-14 09:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:53:26] Production.INFO: ==6851== Releasing lock... [2025-02-14 09:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:53:26] Production.INFO: 43.5 MB #Memory Used# [2025-02-14 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:54:06 [end_date_ymd] => 2025-02-14 09:54:06 [RateCDR] => 1 ) [2025-02-14 09: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-02-14 06:54:06' and `end` < '2025-02-14 09: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-02-14 09:54:25] Production.INFO: count ==2064 [2025-02-14 09:54:25] Production.ERROR: pbx CDR StartTime 2025-02-14 06:54:06 - End Time 2025-02-14 09:54:06 [2025-02-14 09:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472960', 'tblTempUsageDetail_20' ) start [2025-02-14 09:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472960', 'tblTempUsageDetail_20' ) end [2025-02-14 09:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472960', 'tblTempVendorCDR_20' ) start [2025-02-14 09:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472960', 'tblTempVendorCDR_20' ) end [2025-02-14 09:54:26] Production.INFO: ProcessCDR(1,14472960,1,1,2) [2025-02-14 09:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472960', 'tblTempUsageDetail_20' ) start [2025-02-14 09:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472960', 'tblTempUsageDetail_20' ) end [2025-02-14 09:54:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:54:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:54:31] Production.INFO: ==6931== Releasing lock... [2025-02-14 09:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:54:31] Production.INFO: 44 MB #Memory Used# [2025-02-14 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:55:05 [end_date_ymd] => 2025-02-14 09:55:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:55:05' and `end` < '2025-02-14 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-02-14 09:55:24] Production.INFO: count ==2088 [2025-02-14 09:55:25] Production.ERROR: pbx CDR StartTime 2025-02-14 06:55:05 - End Time 2025-02-14 09:55:05 [2025-02-14 09:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472965', 'tblTempUsageDetail_20' ) start [2025-02-14 09:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472965', 'tblTempUsageDetail_20' ) end [2025-02-14 09:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472965', 'tblTempVendorCDR_20' ) start [2025-02-14 09:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472965', 'tblTempVendorCDR_20' ) end [2025-02-14 09:55:25] Production.INFO: ProcessCDR(1,14472965,1,1,2) [2025-02-14 09:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472965', 'tblTempUsageDetail_20' ) start [2025-02-14 09:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472965', 'tblTempUsageDetail_20' ) end [2025-02-14 09:55:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:55:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:55:30] Production.INFO: ==7002== Releasing lock... [2025-02-14 09:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:55:30] Production.INFO: 44 MB #Memory Used# [2025-02-14 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:56:05 [end_date_ymd] => 2025-02-14 09:56:05 [RateCDR] => 1 ) [2025-02-14 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 06:56:05' and `end` < '2025-02-14 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-02-14 09:56:19] Production.INFO: count ==2105 [2025-02-14 09:56:20] Production.ERROR: pbx CDR StartTime 2025-02-14 06:56:05 - End Time 2025-02-14 09:56:05 [2025-02-14 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472970', 'tblTempUsageDetail_20' ) start [2025-02-14 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472970', 'tblTempUsageDetail_20' ) end [2025-02-14 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472970', 'tblTempVendorCDR_20' ) start [2025-02-14 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472970', 'tblTempVendorCDR_20' ) end [2025-02-14 09:56:20] Production.INFO: ProcessCDR(1,14472970,1,1,2) [2025-02-14 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472970', 'tblTempUsageDetail_20' ) start [2025-02-14 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472970', 'tblTempUsageDetail_20' ) end [2025-02-14 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:56:25] Production.INFO: ==7073== Releasing lock... [2025-02-14 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:56:25] Production.INFO: 44 MB #Memory Used# [2025-02-14 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:57:05 [end_date_ymd] => 2025-02-14 09:57:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:57:05' and `end` < '2025-02-14 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-02-14 09:57:19] Production.INFO: count ==2130 [2025-02-14 09:57:20] Production.ERROR: pbx CDR StartTime 2025-02-14 06:57:05 - End Time 2025-02-14 09:57:05 [2025-02-14 09:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472975', 'tblTempUsageDetail_20' ) start [2025-02-14 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472975', 'tblTempUsageDetail_20' ) end [2025-02-14 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472975', 'tblTempVendorCDR_20' ) start [2025-02-14 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472975', 'tblTempVendorCDR_20' ) end [2025-02-14 09:57:20] Production.INFO: ProcessCDR(1,14472975,1,1,2) [2025-02-14 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472975', 'tblTempUsageDetail_20' ) start [2025-02-14 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472975', 'tblTempUsageDetail_20' ) end [2025-02-14 09:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:57:25] Production.INFO: ==7145== Releasing lock... [2025-02-14 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:57:25] Production.INFO: 44 MB #Memory Used# [2025-02-14 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:58:06 [end_date_ymd] => 2025-02-14 09:58:06 [RateCDR] => 1 ) [2025-02-14 09: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-02-14 06:58:06' and `end` < '2025-02-14 09: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-02-14 09:58:27] Production.INFO: count ==2148 [2025-02-14 09:58:28] Production.ERROR: pbx CDR StartTime 2025-02-14 06:58:06 - End Time 2025-02-14 09:58:06 [2025-02-14 09:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472980', 'tblTempUsageDetail_20' ) start [2025-02-14 09:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472980', 'tblTempUsageDetail_20' ) end [2025-02-14 09:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472980', 'tblTempVendorCDR_20' ) start [2025-02-14 09:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472980', 'tblTempVendorCDR_20' ) end [2025-02-14 09:58:28] Production.INFO: ProcessCDR(1,14472980,1,1,2) [2025-02-14 09:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:58:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472980', 'tblTempUsageDetail_20' ) start [2025-02-14 09:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472980', 'tblTempUsageDetail_20' ) end [2025-02-14 09:58:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:58:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:58:33] Production.INFO: ==7215== Releasing lock... [2025-02-14 09:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:58:33] Production.INFO: 44.25 MB #Memory Used# [2025-02-14 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 06:59:05 [end_date_ymd] => 2025-02-14 09:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 06:59:05' and `end` < '2025-02-14 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-02-14 09:59:26] Production.INFO: count ==2181 [2025-02-14 09:59:27] Production.ERROR: pbx CDR StartTime 2025-02-14 06:59:05 - End Time 2025-02-14 09:59:05 [2025-02-14 09:59:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 09:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472985', 'tblTempUsageDetail_20' ) start [2025-02-14 09:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472985', 'tblTempUsageDetail_20' ) end [2025-02-14 09:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472985', 'tblTempVendorCDR_20' ) start [2025-02-14 09:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472985', 'tblTempVendorCDR_20' ) end [2025-02-14 09:59:27] Production.INFO: ProcessCDR(1,14472985,1,1,2) [2025-02-14 09:59:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 09:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:59:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 09:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472985', 'tblTempUsageDetail_20' ) start [2025-02-14 09:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472985', 'tblTempUsageDetail_20' ) end [2025-02-14 09:59:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 09:59:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 09:59:32] Production.INFO: ==7285== Releasing lock... [2025-02-14 09:59:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 09:59:32] Production.INFO: 44.5 MB #Memory Used# [2025-02-14 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:00:06 [end_date_ymd] => 2025-02-14 10:00:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:00:06' and `end` < '2025-02-14 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-02-14 10:00:26] Production.INFO: count ==2207 [2025-02-14 10:00:27] Production.ERROR: pbx CDR StartTime 2025-02-14 07:00:06 - End Time 2025-02-14 10:00:06 [2025-02-14 10:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472990', 'tblTempUsageDetail_20' ) start [2025-02-14 10:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472990', 'tblTempUsageDetail_20' ) end [2025-02-14 10:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472990', 'tblTempVendorCDR_20' ) start [2025-02-14 10:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472990', 'tblTempVendorCDR_20' ) end [2025-02-14 10:00:27] Production.INFO: ProcessCDR(1,14472990,1,1,2) [2025-02-14 10:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472990', 'tblTempUsageDetail_20' ) start [2025-02-14 10:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472990', 'tblTempUsageDetail_20' ) end [2025-02-14 10:00:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:00:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:00:32] Production.INFO: ==7363== Releasing lock... [2025-02-14 10:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:00:32] Production.INFO: 44.75 MB #Memory Used# [2025-02-14 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:01:05 [end_date_ymd] => 2025-02-14 10:01:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:01:05' and `end` < '2025-02-14 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-02-14 10:01:22] Production.INFO: count ==2278 [2025-02-14 10:01:23] Production.ERROR: pbx CDR StartTime 2025-02-14 07:01:05 - End Time 2025-02-14 10:01:05 [2025-02-14 10:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472996', 'tblTempUsageDetail_20' ) start [2025-02-14 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14472996', 'tblTempUsageDetail_20' ) end [2025-02-14 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472996', 'tblTempVendorCDR_20' ) start [2025-02-14 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14472996', 'tblTempVendorCDR_20' ) end [2025-02-14 10:01:23] Production.INFO: ProcessCDR(1,14472996,1,1,2) [2025-02-14 10:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14472996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14472996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14472996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14472996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472996', 'tblTempUsageDetail_20' ) start [2025-02-14 10:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14472996', 'tblTempUsageDetail_20' ) end [2025-02-14 10:01:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:01:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:01:28] Production.INFO: ==7456== Releasing lock... [2025-02-14 10:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:01:28] Production.INFO: 45.25 MB #Memory Used# [2025-02-14 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:02:05 [end_date_ymd] => 2025-02-14 10:02:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:02:05' and `end` < '2025-02-14 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-02-14 10:02:20] Production.INFO: count ==2282 [2025-02-14 10:02:20] Production.ERROR: pbx CDR StartTime 2025-02-14 07:02:05 - End Time 2025-02-14 10:02:05 [2025-02-14 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473001', 'tblTempUsageDetail_20' ) start [2025-02-14 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473001', 'tblTempUsageDetail_20' ) end [2025-02-14 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473001', 'tblTempVendorCDR_20' ) start [2025-02-14 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473001', 'tblTempVendorCDR_20' ) end [2025-02-14 10:02:21] Production.INFO: ProcessCDR(1,14473001,1,1,2) [2025-02-14 10:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473001', 'tblTempUsageDetail_20' ) start [2025-02-14 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473001', 'tblTempUsageDetail_20' ) end [2025-02-14 10:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:02:26] Production.INFO: ==7525== Releasing lock... [2025-02-14 10:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:02:26] Production.INFO: 45.25 MB #Memory Used# [2025-02-14 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:03:05 [end_date_ymd] => 2025-02-14 10:03:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:03:05' and `end` < '2025-02-14 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-02-14 10:03:19] Production.INFO: count ==2289 [2025-02-14 10:03:20] Production.ERROR: pbx CDR StartTime 2025-02-14 07:03:05 - End Time 2025-02-14 10:03:05 [2025-02-14 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473006', 'tblTempUsageDetail_20' ) start [2025-02-14 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473006', 'tblTempUsageDetail_20' ) end [2025-02-14 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473006', 'tblTempVendorCDR_20' ) start [2025-02-14 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473006', 'tblTempVendorCDR_20' ) end [2025-02-14 10:03:20] Production.INFO: ProcessCDR(1,14473006,1,1,2) [2025-02-14 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473006', 'tblTempUsageDetail_20' ) start [2025-02-14 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473006', 'tblTempUsageDetail_20' ) end [2025-02-14 10:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:03:26] Production.INFO: ==7601== Releasing lock... [2025-02-14 10:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:03:26] Production.INFO: 45.25 MB #Memory Used# [2025-02-14 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:04:06 [end_date_ymd] => 2025-02-14 10:04:06 [RateCDR] => 1 ) [2025-02-14 10:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:04:06' and `end` < '2025-02-14 10:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:04:24] Production.INFO: count ==2317 [2025-02-14 10:04:25] Production.ERROR: pbx CDR StartTime 2025-02-14 07:04:06 - End Time 2025-02-14 10:04:06 [2025-02-14 10:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473011', 'tblTempUsageDetail_20' ) start [2025-02-14 10:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473011', 'tblTempUsageDetail_20' ) end [2025-02-14 10:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473011', 'tblTempVendorCDR_20' ) start [2025-02-14 10:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473011', 'tblTempVendorCDR_20' ) end [2025-02-14 10:04:25] Production.INFO: ProcessCDR(1,14473011,1,1,2) [2025-02-14 10:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473011', 'tblTempUsageDetail_20' ) start [2025-02-14 10:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473011', 'tblTempUsageDetail_20' ) end [2025-02-14 10:04:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:04:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:04:30] Production.INFO: ==7672== Releasing lock... [2025-02-14 10:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:04:30] Production.INFO: 45.5 MB #Memory Used# [2025-02-14 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:05:05 [end_date_ymd] => 2025-02-14 10:05:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:05:05' and `end` < '2025-02-14 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-02-14 10:05:22] Production.INFO: count ==2330 [2025-02-14 10:05:23] Production.ERROR: pbx CDR StartTime 2025-02-14 07:05:05 - End Time 2025-02-14 10:05:05 [2025-02-14 10:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473016', 'tblTempUsageDetail_20' ) start [2025-02-14 10:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473016', 'tblTempUsageDetail_20' ) end [2025-02-14 10:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473016', 'tblTempVendorCDR_20' ) start [2025-02-14 10:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473016', 'tblTempVendorCDR_20' ) end [2025-02-14 10:05:23] Production.INFO: ProcessCDR(1,14473016,1,1,2) [2025-02-14 10:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473016', 'tblTempUsageDetail_20' ) start [2025-02-14 10:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473016', 'tblTempUsageDetail_20' ) end [2025-02-14 10:05:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:05:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:05:28] Production.INFO: ==7742== Releasing lock... [2025-02-14 10:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:05:28] Production.INFO: 45.5 MB #Memory Used# [2025-02-14 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:06:06 [end_date_ymd] => 2025-02-14 10:06:06 [RateCDR] => 1 ) [2025-02-14 10: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-02-14 07:06:06' and `end` < '2025-02-14 10: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-02-14 10:06:22] Production.INFO: count ==2358 [2025-02-14 10:06:23] Production.ERROR: pbx CDR StartTime 2025-02-14 07:06:06 - End Time 2025-02-14 10:06:06 [2025-02-14 10:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473021', 'tblTempUsageDetail_20' ) start [2025-02-14 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473021', 'tblTempUsageDetail_20' ) end [2025-02-14 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473021', 'tblTempVendorCDR_20' ) start [2025-02-14 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473021', 'tblTempVendorCDR_20' ) end [2025-02-14 10:06:23] Production.INFO: ProcessCDR(1,14473021,1,1,2) [2025-02-14 10:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473021', 'tblTempUsageDetail_20' ) start [2025-02-14 10:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473021', 'tblTempUsageDetail_20' ) end [2025-02-14 10:06:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:06:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:06:28] Production.INFO: ==7858== Releasing lock... [2025-02-14 10:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:06:28] Production.INFO: 45.75 MB #Memory Used# [2025-02-14 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:07:05 [end_date_ymd] => 2025-02-14 10:07:05 [RateCDR] => 1 ) [2025-02-14 10: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-02-14 07:07:05' and `end` < '2025-02-14 10: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-02-14 10:07:20] Production.INFO: count ==2364 [2025-02-14 10:07:21] Production.ERROR: pbx CDR StartTime 2025-02-14 07:07:05 - End Time 2025-02-14 10:07:05 [2025-02-14 10:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473026', 'tblTempUsageDetail_20' ) start [2025-02-14 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473026', 'tblTempUsageDetail_20' ) end [2025-02-14 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473026', 'tblTempVendorCDR_20' ) start [2025-02-14 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473026', 'tblTempVendorCDR_20' ) end [2025-02-14 10:07:21] Production.INFO: ProcessCDR(1,14473026,1,1,2) [2025-02-14 10:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473026', 'tblTempUsageDetail_20' ) start [2025-02-14 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473026', 'tblTempUsageDetail_20' ) end [2025-02-14 10:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:07:26] Production.INFO: ==7929== Releasing lock... [2025-02-14 10:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:07:26] Production.INFO: 45.75 MB #Memory Used# [2025-02-14 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:08:06 [end_date_ymd] => 2025-02-14 10:08:06 [RateCDR] => 1 ) [2025-02-14 10: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-02-14 07:08:06' and `end` < '2025-02-14 10: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-02-14 10:08:23] Production.INFO: count ==2399 [2025-02-14 10:08:24] Production.ERROR: pbx CDR StartTime 2025-02-14 07:08:06 - End Time 2025-02-14 10:08:06 [2025-02-14 10:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473031', 'tblTempUsageDetail_20' ) start [2025-02-14 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473031', 'tblTempUsageDetail_20' ) end [2025-02-14 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473031', 'tblTempVendorCDR_20' ) start [2025-02-14 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473031', 'tblTempVendorCDR_20' ) end [2025-02-14 10:08:25] Production.INFO: ProcessCDR(1,14473031,1,1,2) [2025-02-14 10:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473031', 'tblTempUsageDetail_20' ) start [2025-02-14 10:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473031', 'tblTempUsageDetail_20' ) end [2025-02-14 10:08:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:08:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:08:30] Production.INFO: ==8001== Releasing lock... [2025-02-14 10:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:08:30] Production.INFO: 46 MB #Memory Used# [2025-02-14 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:09:05 [end_date_ymd] => 2025-02-14 10:09:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:09:05' and `end` < '2025-02-14 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-02-14 10:09:27] Production.INFO: count ==2410 [2025-02-14 10:09:28] Production.ERROR: pbx CDR StartTime 2025-02-14 07:09:05 - End Time 2025-02-14 10:09:05 [2025-02-14 10:09:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473036', 'tblTempUsageDetail_20' ) start [2025-02-14 10:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473036', 'tblTempUsageDetail_20' ) end [2025-02-14 10:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473036', 'tblTempVendorCDR_20' ) start [2025-02-14 10:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473036', 'tblTempVendorCDR_20' ) end [2025-02-14 10:09:28] Production.INFO: ProcessCDR(1,14473036,1,1,2) [2025-02-14 10:09:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:09:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:09:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:09:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473036', 'tblTempUsageDetail_20' ) start [2025-02-14 10:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473036', 'tblTempUsageDetail_20' ) end [2025-02-14 10:09:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:09:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:09:34] Production.INFO: ==8070== Releasing lock... [2025-02-14 10:09:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:09:34] Production.INFO: 46.25 MB #Memory Used# [2025-02-14 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:10:07 [end_date_ymd] => 2025-02-14 10:10:07 [RateCDR] => 1 ) [2025-02-14 10:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:10:07' and `end` < '2025-02-14 10:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:10:27] Production.INFO: count ==2456 [2025-02-14 10:10:28] Production.ERROR: pbx CDR StartTime 2025-02-14 07:10:07 - End Time 2025-02-14 10:10:07 [2025-02-14 10:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473041', 'tblTempUsageDetail_20' ) start [2025-02-14 10:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473041', 'tblTempUsageDetail_20' ) end [2025-02-14 10:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473041', 'tblTempVendorCDR_20' ) start [2025-02-14 10:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473041', 'tblTempVendorCDR_20' ) end [2025-02-14 10:10:28] Production.INFO: ProcessCDR(1,14473041,1,1,2) [2025-02-14 10:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473041', 'tblTempUsageDetail_20' ) start [2025-02-14 10:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473041', 'tblTempUsageDetail_20' ) end [2025-02-14 10:10:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:10:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:10:33] Production.INFO: ==8143== Releasing lock... [2025-02-14 10:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:10:33] Production.INFO: 46.5 MB #Memory Used# [2025-02-14 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:11:06 [end_date_ymd] => 2025-02-14 10:11:06 [RateCDR] => 1 ) [2025-02-14 10:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:11:06' and `end` < '2025-02-14 10:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:11:23] Production.INFO: count ==2556 [2025-02-14 10:11:24] Production.ERROR: pbx CDR StartTime 2025-02-14 07:11:06 - End Time 2025-02-14 10:11:06 [2025-02-14 10:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473047', 'tblTempUsageDetail_20' ) start [2025-02-14 10:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473047', 'tblTempUsageDetail_20' ) end [2025-02-14 10:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473047', 'tblTempVendorCDR_20' ) start [2025-02-14 10:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473047', 'tblTempVendorCDR_20' ) end [2025-02-14 10:11:24] Production.INFO: ProcessCDR(1,14473047,1,1,2) [2025-02-14 10:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473047', 'tblTempUsageDetail_20' ) start [2025-02-14 10:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473047', 'tblTempUsageDetail_20' ) end [2025-02-14 10:11:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:11:30] Production.INFO: ==8218== Releasing lock... [2025-02-14 10:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:11:30] Production.INFO: 47.25 MB #Memory Used# [2025-02-14 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:12:06 [end_date_ymd] => 2025-02-14 10:12:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:12:06' and `end` < '2025-02-14 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-02-14 10:12:28] Production.INFO: count ==2572 [2025-02-14 10:12:29] Production.ERROR: pbx CDR StartTime 2025-02-14 07:12:06 - End Time 2025-02-14 10:12:06 [2025-02-14 10:12:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473052', 'tblTempUsageDetail_20' ) start [2025-02-14 10:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473052', 'tblTempUsageDetail_20' ) end [2025-02-14 10:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473052', 'tblTempVendorCDR_20' ) start [2025-02-14 10:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473052', 'tblTempVendorCDR_20' ) end [2025-02-14 10:12:29] Production.INFO: ProcessCDR(1,14473052,1,1,2) [2025-02-14 10:12:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:12:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:12:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:12:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473052', 'tblTempUsageDetail_20' ) start [2025-02-14 10:12:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473052', 'tblTempUsageDetail_20' ) end [2025-02-14 10:12:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:12:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:12:35] Production.INFO: ==8288== Releasing lock... [2025-02-14 10:12:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:12:35] Production.INFO: 47.25 MB #Memory Used# [2025-02-14 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:13:05 [end_date_ymd] => 2025-02-14 10:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:13:05' and `end` < '2025-02-14 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-02-14 10:13:23] Production.INFO: count ==2590 [2025-02-14 10:13:24] Production.ERROR: pbx CDR StartTime 2025-02-14 07:13:05 - End Time 2025-02-14 10:13:05 [2025-02-14 10:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473057', 'tblTempUsageDetail_20' ) start [2025-02-14 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473057', 'tblTempUsageDetail_20' ) end [2025-02-14 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473057', 'tblTempVendorCDR_20' ) start [2025-02-14 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473057', 'tblTempVendorCDR_20' ) end [2025-02-14 10:13:24] Production.INFO: ProcessCDR(1,14473057,1,1,2) [2025-02-14 10:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473057', 'tblTempUsageDetail_20' ) start [2025-02-14 10:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473057', 'tblTempUsageDetail_20' ) end [2025-02-14 10:13:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:13:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:13:30] Production.INFO: ==8359== Releasing lock... [2025-02-14 10:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:13:30] Production.INFO: 47.5 MB #Memory Used# [2025-02-14 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:14:05 [end_date_ymd] => 2025-02-14 10:14:05 [RateCDR] => 1 ) [2025-02-14 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:14:05' and `end` < '2025-02-14 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:14:27] Production.INFO: count ==2608 [2025-02-14 10:14:28] Production.ERROR: pbx CDR StartTime 2025-02-14 07:14:05 - End Time 2025-02-14 10:14:05 [2025-02-14 10:14:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473062', 'tblTempUsageDetail_20' ) start [2025-02-14 10:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473062', 'tblTempUsageDetail_20' ) end [2025-02-14 10:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473062', 'tblTempVendorCDR_20' ) start [2025-02-14 10:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473062', 'tblTempVendorCDR_20' ) end [2025-02-14 10:14:28] Production.INFO: ProcessCDR(1,14473062,1,1,2) [2025-02-14 10:14:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:14:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:14:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:14:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473062', 'tblTempUsageDetail_20' ) start [2025-02-14 10:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473062', 'tblTempUsageDetail_20' ) end [2025-02-14 10:14:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:14:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:14:34] Production.INFO: ==8428== Releasing lock... [2025-02-14 10:14:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:14:34] Production.INFO: 47.75 MB #Memory Used# [2025-02-14 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:15:05 [end_date_ymd] => 2025-02-14 10:15:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:15:05' and `end` < '2025-02-14 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-02-14 10:15:25] Production.INFO: count ==2624 [2025-02-14 10:15:26] Production.ERROR: pbx CDR StartTime 2025-02-14 07:15:05 - End Time 2025-02-14 10:15:05 [2025-02-14 10:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473067', 'tblTempUsageDetail_20' ) start [2025-02-14 10:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473067', 'tblTempUsageDetail_20' ) end [2025-02-14 10:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473067', 'tblTempVendorCDR_20' ) start [2025-02-14 10:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473067', 'tblTempVendorCDR_20' ) end [2025-02-14 10:15:26] Production.INFO: ProcessCDR(1,14473067,1,1,2) [2025-02-14 10:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473067', 'tblTempUsageDetail_20' ) start [2025-02-14 10:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473067', 'tblTempUsageDetail_20' ) end [2025-02-14 10:15:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:15:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:15:32] Production.INFO: ==8499== Releasing lock... [2025-02-14 10:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:15:32] Production.INFO: 47.75 MB #Memory Used# [2025-02-14 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:16:05 [end_date_ymd] => 2025-02-14 10:16:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:16:05' and `end` < '2025-02-14 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-02-14 10:16:23] Production.INFO: count ==2657 [2025-02-14 10:16:24] Production.ERROR: pbx CDR StartTime 2025-02-14 07:16:05 - End Time 2025-02-14 10:16:05 [2025-02-14 10:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473072', 'tblTempUsageDetail_20' ) start [2025-02-14 10:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473072', 'tblTempUsageDetail_20' ) end [2025-02-14 10:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473072', 'tblTempVendorCDR_20' ) start [2025-02-14 10:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473072', 'tblTempVendorCDR_20' ) end [2025-02-14 10:16:24] Production.INFO: ProcessCDR(1,14473072,1,1,2) [2025-02-14 10:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473072', 'tblTempUsageDetail_20' ) start [2025-02-14 10:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473072', 'tblTempUsageDetail_20' ) end [2025-02-14 10:16:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:16:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:16:29] Production.INFO: ==8569== Releasing lock... [2025-02-14 10:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:16:29] Production.INFO: 48 MB #Memory Used# [2025-02-14 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:17:05 [end_date_ymd] => 2025-02-14 10:17:05 [RateCDR] => 1 ) [2025-02-14 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:17:05' and `end` < '2025-02-14 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:17:20] Production.INFO: count ==2665 [2025-02-14 10:17:21] Production.ERROR: pbx CDR StartTime 2025-02-14 07:17:05 - End Time 2025-02-14 10:17:05 [2025-02-14 10:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473073', 'tblTempUsageDetail_20' ) start [2025-02-14 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473073', 'tblTempUsageDetail_20' ) end [2025-02-14 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473073', 'tblTempVendorCDR_20' ) start [2025-02-14 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473073', 'tblTempVendorCDR_20' ) end [2025-02-14 10:17:22] Production.INFO: ProcessCDR(1,14473073,1,1,2) [2025-02-14 10:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473073', 'tblTempUsageDetail_20' ) start [2025-02-14 10:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473073', 'tblTempUsageDetail_20' ) end [2025-02-14 10:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:17:27] Production.INFO: ==8641== Releasing lock... [2025-02-14 10:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:17:27] Production.INFO: 48 MB #Memory Used# [2025-02-14 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:18:05 [end_date_ymd] => 2025-02-14 10:18:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:18:05' and `end` < '2025-02-14 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-02-14 10:18:20] Production.INFO: count ==2680 [2025-02-14 10:18:22] Production.ERROR: pbx CDR StartTime 2025-02-14 07:18:05 - End Time 2025-02-14 10:18:05 [2025-02-14 10:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473082', 'tblTempUsageDetail_20' ) start [2025-02-14 10:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473082', 'tblTempUsageDetail_20' ) end [2025-02-14 10:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473082', 'tblTempVendorCDR_20' ) start [2025-02-14 10:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473082', 'tblTempVendorCDR_20' ) end [2025-02-14 10:18:22] Production.INFO: ProcessCDR(1,14473082,1,1,2) [2025-02-14 10:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473082', 'tblTempUsageDetail_20' ) start [2025-02-14 10:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473082', 'tblTempUsageDetail_20' ) end [2025-02-14 10:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:18:27] Production.INFO: ==8710== Releasing lock... [2025-02-14 10:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:18:27] Production.INFO: 48.25 MB #Memory Used# [2025-02-14 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:19:06 [end_date_ymd] => 2025-02-14 10:19:06 [RateCDR] => 1 ) [2025-02-14 10:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:19:06' and `end` < '2025-02-14 10:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:19:21] Production.INFO: count ==2707 [2025-02-14 10:19:23] Production.ERROR: pbx CDR StartTime 2025-02-14 07:19:06 - End Time 2025-02-14 10:19:06 [2025-02-14 10:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473087', 'tblTempUsageDetail_20' ) start [2025-02-14 10:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473087', 'tblTempUsageDetail_20' ) end [2025-02-14 10:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473087', 'tblTempVendorCDR_20' ) start [2025-02-14 10:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473087', 'tblTempVendorCDR_20' ) end [2025-02-14 10:19:23] Production.INFO: ProcessCDR(1,14473087,1,1,2) [2025-02-14 10:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473087', 'tblTempUsageDetail_20' ) start [2025-02-14 10:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473087', 'tblTempUsageDetail_20' ) end [2025-02-14 10:19:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:19:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:19:28] Production.INFO: ==8783== Releasing lock... [2025-02-14 10:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:19:28] Production.INFO: 48.5 MB #Memory Used# [2025-02-14 10:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:20:07 [end_date_ymd] => 2025-02-14 10:20:07 [RateCDR] => 1 ) [2025-02-14 10:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:20:07' and `end` < '2025-02-14 10:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:20:20] Production.INFO: count ==2718 [2025-02-14 10:20:21] Production.ERROR: pbx CDR StartTime 2025-02-14 07:20:07 - End Time 2025-02-14 10:20:07 [2025-02-14 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473093', 'tblTempUsageDetail_20' ) start [2025-02-14 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473093', 'tblTempUsageDetail_20' ) end [2025-02-14 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473093', 'tblTempVendorCDR_20' ) start [2025-02-14 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473093', 'tblTempVendorCDR_20' ) end [2025-02-14 10:20:22] Production.INFO: ProcessCDR(1,14473093,1,1,2) [2025-02-14 10:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473093', 'tblTempUsageDetail_20' ) start [2025-02-14 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473093', 'tblTempUsageDetail_20' ) end [2025-02-14 10:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:20:27] Production.INFO: ==8856== Releasing lock... [2025-02-14 10:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:20:27] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:21:06 [end_date_ymd] => 2025-02-14 10:21:06 [RateCDR] => 1 ) [2025-02-14 10:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:21:06' and `end` < '2025-02-14 10:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:21:30] Production.INFO: count ==2813 [2025-02-14 10:21:31] Production.ERROR: pbx CDR StartTime 2025-02-14 07:21:06 - End Time 2025-02-14 10:21:06 [2025-02-14 10:21:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473098', 'tblTempUsageDetail_20' ) start [2025-02-14 10:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473098', 'tblTempUsageDetail_20' ) end [2025-02-14 10:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473098', 'tblTempVendorCDR_20' ) start [2025-02-14 10:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473098', 'tblTempVendorCDR_20' ) end [2025-02-14 10:21:31] Production.INFO: ProcessCDR(1,14473098,1,1,2) [2025-02-14 10:21:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:21:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:21:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:21:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473098', 'tblTempUsageDetail_20' ) start [2025-02-14 10:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473098', 'tblTempUsageDetail_20' ) end [2025-02-14 10:21:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:21:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:21:36] Production.INFO: ==8928== Releasing lock... [2025-02-14 10:21:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:21:36] Production.INFO: 49.25 MB #Memory Used# [2025-02-14 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:22:05 [end_date_ymd] => 2025-02-14 10:22:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:22:05' and `end` < '2025-02-14 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-02-14 10:22:26] Production.INFO: count ==2828 [2025-02-14 10:22:28] Production.ERROR: pbx CDR StartTime 2025-02-14 07:22:05 - End Time 2025-02-14 10:22:05 [2025-02-14 10:22:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473103', 'tblTempUsageDetail_20' ) start [2025-02-14 10:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473103', 'tblTempUsageDetail_20' ) end [2025-02-14 10:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473103', 'tblTempVendorCDR_20' ) start [2025-02-14 10:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473103', 'tblTempVendorCDR_20' ) end [2025-02-14 10:22:28] Production.INFO: ProcessCDR(1,14473103,1,1,2) [2025-02-14 10:22:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:22:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:22:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:22:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473103', 'tblTempUsageDetail_20' ) start [2025-02-14 10:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473103', 'tblTempUsageDetail_20' ) end [2025-02-14 10:22:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:22:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:22:33] Production.INFO: ==9038== Releasing lock... [2025-02-14 10:22:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:22:33] Production.INFO: 49.25 MB #Memory Used# [2025-02-14 10:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:23:06 [end_date_ymd] => 2025-02-14 10:23:06 [RateCDR] => 1 ) [2025-02-14 10:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:23:06' and `end` < '2025-02-14 10:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:23:22] Production.INFO: count ==2836 [2025-02-14 10:23:23] Production.ERROR: pbx CDR StartTime 2025-02-14 07:23:06 - End Time 2025-02-14 10:23:06 [2025-02-14 10:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473108', 'tblTempUsageDetail_20' ) start [2025-02-14 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473108', 'tblTempUsageDetail_20' ) end [2025-02-14 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473108', 'tblTempVendorCDR_20' ) start [2025-02-14 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473108', 'tblTempVendorCDR_20' ) end [2025-02-14 10:23:24] Production.INFO: ProcessCDR(1,14473108,1,1,2) [2025-02-14 10:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473108', 'tblTempUsageDetail_20' ) start [2025-02-14 10:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473108', 'tblTempUsageDetail_20' ) end [2025-02-14 10:23:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:23:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:23:29] Production.INFO: ==9111== Releasing lock... [2025-02-14 10:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:23:29] Production.INFO: 49.75 MB #Memory Used# [2025-02-14 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:24:05 [end_date_ymd] => 2025-02-14 10:24:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:24:05' and `end` < '2025-02-14 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-02-14 10:24:27] Production.INFO: count ==2843 [2025-02-14 10:24:29] Production.ERROR: pbx CDR StartTime 2025-02-14 07:24:05 - End Time 2025-02-14 10:24:05 [2025-02-14 10:24:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473113', 'tblTempUsageDetail_20' ) start [2025-02-14 10:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473113', 'tblTempUsageDetail_20' ) end [2025-02-14 10:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473113', 'tblTempVendorCDR_20' ) start [2025-02-14 10:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473113', 'tblTempVendorCDR_20' ) end [2025-02-14 10:24:29] Production.INFO: ProcessCDR(1,14473113,1,1,2) [2025-02-14 10:24:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:24:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473113', 'tblTempUsageDetail_20' ) start [2025-02-14 10:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473113', 'tblTempUsageDetail_20' ) end [2025-02-14 10:24:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:24:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:24:34] Production.INFO: ==9181== Releasing lock... [2025-02-14 10:24:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:24:34] Production.INFO: 50.25 MB #Memory Used# [2025-02-14 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:25:06 [end_date_ymd] => 2025-02-14 10:25:06 [RateCDR] => 1 ) [2025-02-14 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:25:06' and `end` < '2025-02-14 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:25:26] Production.INFO: count ==2869 [2025-02-14 10:25:27] Production.ERROR: pbx CDR StartTime 2025-02-14 07:25:06 - End Time 2025-02-14 10:25:06 [2025-02-14 10:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473118', 'tblTempUsageDetail_20' ) start [2025-02-14 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473118', 'tblTempUsageDetail_20' ) end [2025-02-14 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473118', 'tblTempVendorCDR_20' ) start [2025-02-14 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473118', 'tblTempVendorCDR_20' ) end [2025-02-14 10:25:27] Production.INFO: ProcessCDR(1,14473118,1,1,2) [2025-02-14 10:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473118', 'tblTempUsageDetail_20' ) start [2025-02-14 10:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473118', 'tblTempUsageDetail_20' ) end [2025-02-14 10:25:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:25:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:25:33] Production.INFO: ==9258== Releasing lock... [2025-02-14 10:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:25:33] Production.INFO: 50.25 MB #Memory Used# [2025-02-14 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:26:05 [end_date_ymd] => 2025-02-14 10:26:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:26:05' and `end` < '2025-02-14 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-02-14 10:26:29] Production.INFO: count ==2898 [2025-02-14 10:26:30] Production.ERROR: pbx CDR StartTime 2025-02-14 07:26:05 - End Time 2025-02-14 10:26:05 [2025-02-14 10:26:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473123', 'tblTempUsageDetail_20' ) start [2025-02-14 10:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473123', 'tblTempUsageDetail_20' ) end [2025-02-14 10:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473123', 'tblTempVendorCDR_20' ) start [2025-02-14 10:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473123', 'tblTempVendorCDR_20' ) end [2025-02-14 10:26:30] Production.INFO: ProcessCDR(1,14473123,1,1,2) [2025-02-14 10:26:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:26:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:26:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:26:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473123', 'tblTempUsageDetail_20' ) start [2025-02-14 10:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473123', 'tblTempUsageDetail_20' ) end [2025-02-14 10:26:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:26:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:26:35] Production.INFO: ==9329== Releasing lock... [2025-02-14 10:26:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:26:35] Production.INFO: 50.25 MB #Memory Used# [2025-02-14 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:27:05 [end_date_ymd] => 2025-02-14 10:27:05 [RateCDR] => 1 ) [2025-02-14 10:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:27:05' and `end` < '2025-02-14 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-02-14 10:27:24] Production.INFO: count ==2907 [2025-02-14 10:27:25] Production.ERROR: pbx CDR StartTime 2025-02-14 07:27:05 - End Time 2025-02-14 10:27:05 [2025-02-14 10:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473128', 'tblTempUsageDetail_20' ) start [2025-02-14 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473128', 'tblTempUsageDetail_20' ) end [2025-02-14 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473128', 'tblTempVendorCDR_20' ) start [2025-02-14 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473128', 'tblTempVendorCDR_20' ) end [2025-02-14 10:27:26] Production.INFO: ProcessCDR(1,14473128,1,1,2) [2025-02-14 10:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473128', 'tblTempUsageDetail_20' ) start [2025-02-14 10:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473128', 'tblTempUsageDetail_20' ) end [2025-02-14 10:27:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:27:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:27:31] Production.INFO: ==9401== Releasing lock... [2025-02-14 10:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:27:31] Production.INFO: 50 MB #Memory Used# [2025-02-14 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:28:05 [end_date_ymd] => 2025-02-14 10:28:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:28:05' and `end` < '2025-02-14 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-02-14 10:28:19] Production.INFO: count ==2933 [2025-02-14 10:28:20] Production.ERROR: pbx CDR StartTime 2025-02-14 07:28:05 - End Time 2025-02-14 10:28:05 [2025-02-14 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473133', 'tblTempUsageDetail_20' ) start [2025-02-14 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473133', 'tblTempUsageDetail_20' ) end [2025-02-14 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473133', 'tblTempVendorCDR_20' ) start [2025-02-14 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473133', 'tblTempVendorCDR_20' ) end [2025-02-14 10:28:20] Production.INFO: ProcessCDR(1,14473133,1,1,2) [2025-02-14 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473133', 'tblTempUsageDetail_20' ) start [2025-02-14 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473133', 'tblTempUsageDetail_20' ) end [2025-02-14 10:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:28:26] Production.INFO: ==9472== Releasing lock... [2025-02-14 10:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:28:26] Production.INFO: 50.5 MB #Memory Used# [2025-02-14 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:29:06 [end_date_ymd] => 2025-02-14 10:29:06 [RateCDR] => 1 ) [2025-02-14 10:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:29:06' and `end` < '2025-02-14 10:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:29:21] Production.INFO: count ==2950 [2025-02-14 10:29:22] Production.ERROR: pbx CDR StartTime 2025-02-14 07:29:06 - End Time 2025-02-14 10:29:06 [2025-02-14 10:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473138', 'tblTempUsageDetail_20' ) start [2025-02-14 10:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473138', 'tblTempUsageDetail_20' ) end [2025-02-14 10:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473138', 'tblTempVendorCDR_20' ) start [2025-02-14 10:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473138', 'tblTempVendorCDR_20' ) end [2025-02-14 10:29:22] Production.INFO: ProcessCDR(1,14473138,1,1,2) [2025-02-14 10:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473138', 'tblTempUsageDetail_20' ) start [2025-02-14 10:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473138', 'tblTempUsageDetail_20' ) end [2025-02-14 10:29:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:29:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:29:27] Production.INFO: ==9543== Releasing lock... [2025-02-14 10:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:29:27] Production.INFO: 50.75 MB #Memory Used# [2025-02-14 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:30:06 [end_date_ymd] => 2025-02-14 10:30:06 [RateCDR] => 1 ) [2025-02-14 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:30:06' and `end` < '2025-02-14 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:30:20] Production.INFO: count ==2978 [2025-02-14 10:30:21] Production.ERROR: pbx CDR StartTime 2025-02-14 07:30:06 - End Time 2025-02-14 10:30:06 [2025-02-14 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473144', 'tblTempUsageDetail_20' ) start [2025-02-14 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473144', 'tblTempUsageDetail_20' ) end [2025-02-14 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473144', 'tblTempVendorCDR_20' ) start [2025-02-14 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473144', 'tblTempVendorCDR_20' ) end [2025-02-14 10:30:21] Production.INFO: ProcessCDR(1,14473144,1,1,2) [2025-02-14 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473144', 'tblTempUsageDetail_20' ) start [2025-02-14 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473144', 'tblTempUsageDetail_20' ) end [2025-02-14 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:30:26] Production.INFO: ==9616== Releasing lock... [2025-02-14 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:30:26] Production.INFO: 50 MB #Memory Used# [2025-02-14 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:31:06 [end_date_ymd] => 2025-02-14 10:31:06 [RateCDR] => 1 ) [2025-02-14 10:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:31:06' and `end` < '2025-02-14 10:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:31:21] Production.INFO: count ==3077 [2025-02-14 10:31:22] Production.ERROR: pbx CDR StartTime 2025-02-14 07:31:06 - End Time 2025-02-14 10:31:06 [2025-02-14 10:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473149', 'tblTempUsageDetail_20' ) start [2025-02-14 10:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473149', 'tblTempUsageDetail_20' ) end [2025-02-14 10:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473149', 'tblTempVendorCDR_20' ) start [2025-02-14 10:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473149', 'tblTempVendorCDR_20' ) end [2025-02-14 10:31:22] Production.INFO: ProcessCDR(1,14473149,1,1,2) [2025-02-14 10:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473149', 'tblTempUsageDetail_20' ) start [2025-02-14 10:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473149', 'tblTempUsageDetail_20' ) end [2025-02-14 10:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:31:27] Production.INFO: ==9688== Releasing lock... [2025-02-14 10:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:31:27] Production.INFO: 51.25 MB #Memory Used# [2025-02-14 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:32:05 [end_date_ymd] => 2025-02-14 10:32:05 [RateCDR] => 1 ) [2025-02-14 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:32:05' and `end` < '2025-02-14 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:32:36] Production.INFO: count ==3067 [2025-02-14 10:32:37] Production.ERROR: pbx CDR StartTime 2025-02-14 07:32:05 - End Time 2025-02-14 10:32:05 [2025-02-14 10:32:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:32:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473154', 'tblTempUsageDetail_20' ) start [2025-02-14 10:32:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473154', 'tblTempUsageDetail_20' ) end [2025-02-14 10:32:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473154', 'tblTempVendorCDR_20' ) start [2025-02-14 10:32:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473154', 'tblTempVendorCDR_20' ) end [2025-02-14 10:32:37] Production.INFO: ProcessCDR(1,14473154,1,1,2) [2025-02-14 10:32:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:32:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:32:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:32:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:32:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473154', 'tblTempUsageDetail_20' ) start [2025-02-14 10:32:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473154', 'tblTempUsageDetail_20' ) end [2025-02-14 10:32:43] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:32:43] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:32:43] Production.INFO: ==9760== Releasing lock... [2025-02-14 10:32:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:32:43] Production.INFO: 51.75 MB #Memory Used# [2025-02-14 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:33:05 [end_date_ymd] => 2025-02-14 10:33:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:33:05' and `end` < '2025-02-14 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-02-14 10:33:27] Production.INFO: count ==3074 [2025-02-14 10:33:28] Production.ERROR: pbx CDR StartTime 2025-02-14 07:33:05 - End Time 2025-02-14 10:33:05 [2025-02-14 10:33:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473159', 'tblTempUsageDetail_20' ) start [2025-02-14 10:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473159', 'tblTempUsageDetail_20' ) end [2025-02-14 10:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473159', 'tblTempVendorCDR_20' ) start [2025-02-14 10:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473159', 'tblTempVendorCDR_20' ) end [2025-02-14 10:33:28] Production.INFO: ProcessCDR(1,14473159,1,1,2) [2025-02-14 10:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:33:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:33:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:33:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473159', 'tblTempUsageDetail_20' ) start [2025-02-14 10:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473159', 'tblTempUsageDetail_20' ) end [2025-02-14 10:33:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:33:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:33:34] Production.INFO: ==9829== Releasing lock... [2025-02-14 10:33:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:33:34] Production.INFO: 52 MB #Memory Used# [2025-02-14 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:34:05 [end_date_ymd] => 2025-02-14 10:34:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:34:05' and `end` < '2025-02-14 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-02-14 10:34:25] Production.INFO: count ==3094 [2025-02-14 10:34:27] Production.ERROR: pbx CDR StartTime 2025-02-14 07:34:05 - End Time 2025-02-14 10:34:05 [2025-02-14 10:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473164', 'tblTempUsageDetail_20' ) start [2025-02-14 10:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473164', 'tblTempUsageDetail_20' ) end [2025-02-14 10:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473164', 'tblTempVendorCDR_20' ) start [2025-02-14 10:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473164', 'tblTempVendorCDR_20' ) end [2025-02-14 10:34:27] Production.INFO: ProcessCDR(1,14473164,1,1,2) [2025-02-14 10:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473164', 'tblTempUsageDetail_20' ) start [2025-02-14 10:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473164', 'tblTempUsageDetail_20' ) end [2025-02-14 10:34:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:34:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:34:32] Production.INFO: ==9900== Releasing lock... [2025-02-14 10:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:34:32] Production.INFO: 51 MB #Memory Used# [2025-02-14 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:35:06 [end_date_ymd] => 2025-02-14 10:35:06 [RateCDR] => 1 ) [2025-02-14 10:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:35:06' and `end` < '2025-02-14 10:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:35:26] Production.INFO: count ==3102 [2025-02-14 10:35:27] Production.ERROR: pbx CDR StartTime 2025-02-14 07:35:06 - End Time 2025-02-14 10:35:06 [2025-02-14 10:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473169', 'tblTempUsageDetail_20' ) start [2025-02-14 10:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473169', 'tblTempUsageDetail_20' ) end [2025-02-14 10:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473169', 'tblTempVendorCDR_20' ) start [2025-02-14 10:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473169', 'tblTempVendorCDR_20' ) end [2025-02-14 10:35:27] Production.INFO: ProcessCDR(1,14473169,1,1,2) [2025-02-14 10:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473169', 'tblTempUsageDetail_20' ) start [2025-02-14 10:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473169', 'tblTempUsageDetail_20' ) end [2025-02-14 10:35:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:35:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:35:33] Production.INFO: ==9972== Releasing lock... [2025-02-14 10:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:35:33] Production.INFO: 52 MB #Memory Used# [2025-02-14 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:36:05 [end_date_ymd] => 2025-02-14 10:36:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:36:05' and `end` < '2025-02-14 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-02-14 10:36:19] Production.INFO: count ==3107 [2025-02-14 10:36:20] Production.ERROR: pbx CDR StartTime 2025-02-14 07:36:05 - End Time 2025-02-14 10:36:05 [2025-02-14 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473174', 'tblTempUsageDetail_20' ) start [2025-02-14 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473174', 'tblTempUsageDetail_20' ) end [2025-02-14 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473174', 'tblTempVendorCDR_20' ) start [2025-02-14 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473174', 'tblTempVendorCDR_20' ) end [2025-02-14 10:36:20] Production.INFO: ProcessCDR(1,14473174,1,1,2) [2025-02-14 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473174', 'tblTempUsageDetail_20' ) start [2025-02-14 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473174', 'tblTempUsageDetail_20' ) end [2025-02-14 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:36:25] Production.INFO: ==10042== Releasing lock... [2025-02-14 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:36:25] Production.INFO: 52 MB #Memory Used# [2025-02-14 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:37:06 [end_date_ymd] => 2025-02-14 10:37:06 [RateCDR] => 1 ) [2025-02-14 10: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-02-14 07:37:06' and `end` < '2025-02-14 10: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-02-14 10:37:27] Production.INFO: count ==3128 [2025-02-14 10:37:28] Production.ERROR: pbx CDR StartTime 2025-02-14 07:37:06 - End Time 2025-02-14 10:37:06 [2025-02-14 10:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473179', 'tblTempUsageDetail_20' ) start [2025-02-14 10:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473179', 'tblTempUsageDetail_20' ) end [2025-02-14 10:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473179', 'tblTempVendorCDR_20' ) start [2025-02-14 10:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473179', 'tblTempVendorCDR_20' ) end [2025-02-14 10:37:28] Production.INFO: ProcessCDR(1,14473179,1,1,2) [2025-02-14 10:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473179', 'tblTempUsageDetail_20' ) start [2025-02-14 10:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473179', 'tblTempUsageDetail_20' ) end [2025-02-14 10:37:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:37:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:37:33] Production.INFO: ==10154== Releasing lock... [2025-02-14 10:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:37:33] Production.INFO: 52.25 MB #Memory Used# [2025-02-14 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:38:05 [end_date_ymd] => 2025-02-14 10:38:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:38:05' and `end` < '2025-02-14 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-02-14 10:38:28] Production.INFO: count ==3178 [2025-02-14 10:38:29] Production.ERROR: pbx CDR StartTime 2025-02-14 07:38:05 - End Time 2025-02-14 10:38:05 [2025-02-14 10:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473184', 'tblTempUsageDetail_20' ) start [2025-02-14 10:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473184', 'tblTempUsageDetail_20' ) end [2025-02-14 10:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473184', 'tblTempVendorCDR_20' ) start [2025-02-14 10:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473184', 'tblTempVendorCDR_20' ) end [2025-02-14 10:38:29] Production.INFO: ProcessCDR(1,14473184,1,1,2) [2025-02-14 10:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:38:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:38:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:38:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473184', 'tblTempUsageDetail_20' ) start [2025-02-14 10:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473184', 'tblTempUsageDetail_20' ) end [2025-02-14 10:38:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:38:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:38:34] Production.INFO: ==10225== Releasing lock... [2025-02-14 10:38:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:38:34] Production.INFO: 52.5 MB #Memory Used# [2025-02-14 10:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:39:06 [end_date_ymd] => 2025-02-14 10:39:06 [RateCDR] => 1 ) [2025-02-14 10:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:39:06' and `end` < '2025-02-14 10:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:39:24] Production.INFO: count ==3178 [2025-02-14 10:39:25] Production.ERROR: pbx CDR StartTime 2025-02-14 07:39:06 - End Time 2025-02-14 10:39:06 [2025-02-14 10:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473189', 'tblTempUsageDetail_20' ) start [2025-02-14 10:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473189', 'tblTempUsageDetail_20' ) end [2025-02-14 10:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473189', 'tblTempVendorCDR_20' ) start [2025-02-14 10:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473189', 'tblTempVendorCDR_20' ) end [2025-02-14 10:39:26] Production.INFO: ProcessCDR(1,14473189,1,1,2) [2025-02-14 10:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473189', 'tblTempUsageDetail_20' ) start [2025-02-14 10:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473189', 'tblTempUsageDetail_20' ) end [2025-02-14 10:39:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:39:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:39:31] Production.INFO: ==10297== Releasing lock... [2025-02-14 10:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:39:31] Production.INFO: 52.25 MB #Memory Used# [2025-02-14 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:40:06 [end_date_ymd] => 2025-02-14 10:40:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:40:06' and `end` < '2025-02-14 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-02-14 10:40:24] Production.INFO: count ==3199 [2025-02-14 10:40:26] Production.ERROR: pbx CDR StartTime 2025-02-14 07:40:06 - End Time 2025-02-14 10:40:06 [2025-02-14 10:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473194', 'tblTempUsageDetail_20' ) start [2025-02-14 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473194', 'tblTempUsageDetail_20' ) end [2025-02-14 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473194', 'tblTempVendorCDR_20' ) start [2025-02-14 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473194', 'tblTempVendorCDR_20' ) end [2025-02-14 10:40:26] Production.INFO: ProcessCDR(1,14473194,1,1,2) [2025-02-14 10:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473194', 'tblTempUsageDetail_20' ) start [2025-02-14 10:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473194', 'tblTempUsageDetail_20' ) end [2025-02-14 10:40:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:40:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:40:31] Production.INFO: ==10369== Releasing lock... [2025-02-14 10:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:40:31] Production.INFO: 52.25 MB #Memory Used# [2025-02-14 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:41:06 [end_date_ymd] => 2025-02-14 10:41:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:41:06' and `end` < '2025-02-14 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-02-14 10:41:20] Production.INFO: count ==3302 [2025-02-14 10:41:21] Production.ERROR: pbx CDR StartTime 2025-02-14 07:41:06 - End Time 2025-02-14 10:41:06 [2025-02-14 10:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473200', 'tblTempUsageDetail_20' ) start [2025-02-14 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473200', 'tblTempUsageDetail_20' ) end [2025-02-14 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473200', 'tblTempVendorCDR_20' ) start [2025-02-14 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473200', 'tblTempVendorCDR_20' ) end [2025-02-14 10:41:21] Production.INFO: ProcessCDR(1,14473200,1,1,2) [2025-02-14 10:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473200', 'tblTempUsageDetail_20' ) start [2025-02-14 10:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473200', 'tblTempUsageDetail_20' ) end [2025-02-14 10:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:41:27] Production.INFO: ==10446== Releasing lock... [2025-02-14 10:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:41:27] Production.INFO: 53 MB #Memory Used# [2025-02-14 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:42:05 [end_date_ymd] => 2025-02-14 10:42:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:42:05' and `end` < '2025-02-14 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-02-14 10:42:24] Production.INFO: count ==3321 [2025-02-14 10:42:26] Production.ERROR: pbx CDR StartTime 2025-02-14 07:42:05 - End Time 2025-02-14 10:42:05 [2025-02-14 10:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473205', 'tblTempUsageDetail_20' ) start [2025-02-14 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473205', 'tblTempUsageDetail_20' ) end [2025-02-14 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473205', 'tblTempVendorCDR_20' ) start [2025-02-14 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473205', 'tblTempVendorCDR_20' ) end [2025-02-14 10:42:26] Production.INFO: ProcessCDR(1,14473205,1,1,2) [2025-02-14 10:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473205', 'tblTempUsageDetail_20' ) start [2025-02-14 10:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473205', 'tblTempUsageDetail_20' ) end [2025-02-14 10:42:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:42:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:42:31] Production.INFO: ==10515== Releasing lock... [2025-02-14 10:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:42:31] Production.INFO: 53.25 MB #Memory Used# [2025-02-14 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:43:06 [end_date_ymd] => 2025-02-14 10:43:06 [RateCDR] => 1 ) [2025-02-14 10:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:43:06' and `end` < '2025-02-14 10:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:43:21] Production.INFO: count ==3342 [2025-02-14 10:43:22] Production.ERROR: pbx CDR StartTime 2025-02-14 07:43:06 - End Time 2025-02-14 10:43:06 [2025-02-14 10:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473210', 'tblTempUsageDetail_20' ) start [2025-02-14 10:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473210', 'tblTempUsageDetail_20' ) end [2025-02-14 10:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473210', 'tblTempVendorCDR_20' ) start [2025-02-14 10:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473210', 'tblTempVendorCDR_20' ) end [2025-02-14 10:43:22] Production.INFO: ProcessCDR(1,14473210,1,1,2) [2025-02-14 10:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473210', 'tblTempUsageDetail_20' ) start [2025-02-14 10:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473210', 'tblTempUsageDetail_20' ) end [2025-02-14 10:43:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:43:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:43:28] Production.INFO: ==10587== Releasing lock... [2025-02-14 10:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:43:28] Production.INFO: 54 MB #Memory Used# [2025-02-14 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:44:06 [end_date_ymd] => 2025-02-14 10:44:06 [RateCDR] => 1 ) [2025-02-14 10:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:44:06' and `end` < '2025-02-14 10:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:44:22] Production.INFO: count ==3390 [2025-02-14 10:44:23] Production.ERROR: pbx CDR StartTime 2025-02-14 07:44:06 - End Time 2025-02-14 10:44:06 [2025-02-14 10:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473215', 'tblTempUsageDetail_20' ) start [2025-02-14 10:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473215', 'tblTempUsageDetail_20' ) end [2025-02-14 10:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473215', 'tblTempVendorCDR_20' ) start [2025-02-14 10:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473215', 'tblTempVendorCDR_20' ) end [2025-02-14 10:44:24] Production.INFO: ProcessCDR(1,14473215,1,1,2) [2025-02-14 10:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473215', 'tblTempUsageDetail_20' ) start [2025-02-14 10:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473215', 'tblTempUsageDetail_20' ) end [2025-02-14 10:44:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:44:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:44:29] Production.INFO: ==10662== Releasing lock... [2025-02-14 10:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:44:29] Production.INFO: 53.25 MB #Memory Used# [2025-02-14 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:45:06 [end_date_ymd] => 2025-02-14 10:45:06 [RateCDR] => 1 ) [2025-02-14 10:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:45:06' and `end` < '2025-02-14 10:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:45:28] Production.INFO: count ==3416 [2025-02-14 10:45:29] Production.ERROR: pbx CDR StartTime 2025-02-14 07:45:06 - End Time 2025-02-14 10:45:06 [2025-02-14 10:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473220', 'tblTempUsageDetail_20' ) start [2025-02-14 10:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473220', 'tblTempUsageDetail_20' ) end [2025-02-14 10:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473220', 'tblTempVendorCDR_20' ) start [2025-02-14 10:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473220', 'tblTempVendorCDR_20' ) end [2025-02-14 10:45:29] Production.INFO: ProcessCDR(1,14473220,1,1,2) [2025-02-14 10:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:45:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:45:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:45:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473220', 'tblTempUsageDetail_20' ) start [2025-02-14 10:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473220', 'tblTempUsageDetail_20' ) end [2025-02-14 10:45:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:45:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:45:35] Production.INFO: ==10734== Releasing lock... [2025-02-14 10:45:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:45:35] Production.INFO: 53.75 MB #Memory Used# [2025-02-14 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:46:05 [end_date_ymd] => 2025-02-14 10:46:05 [RateCDR] => 1 ) [2025-02-14 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:46:05' and `end` < '2025-02-14 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:46:24] Production.INFO: count ==3431 [2025-02-14 10:46:26] Production.ERROR: pbx CDR StartTime 2025-02-14 07:46:05 - End Time 2025-02-14 10:46:05 [2025-02-14 10:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473225', 'tblTempUsageDetail_20' ) start [2025-02-14 10:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473225', 'tblTempUsageDetail_20' ) end [2025-02-14 10:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473225', 'tblTempVendorCDR_20' ) start [2025-02-14 10:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473225', 'tblTempVendorCDR_20' ) end [2025-02-14 10:46:26] Production.INFO: ProcessCDR(1,14473225,1,1,2) [2025-02-14 10:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473225', 'tblTempUsageDetail_20' ) start [2025-02-14 10:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473225', 'tblTempUsageDetail_20' ) end [2025-02-14 10:46:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:46:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:46:32] Production.INFO: ==10806== Releasing lock... [2025-02-14 10:46:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:46:32] Production.INFO: 53.75 MB #Memory Used# [2025-02-14 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:47:05 [end_date_ymd] => 2025-02-14 10:47:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:47:05' and `end` < '2025-02-14 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-02-14 10:47:24] Production.INFO: count ==3439 [2025-02-14 10:47:25] Production.ERROR: pbx CDR StartTime 2025-02-14 07:47:05 - End Time 2025-02-14 10:47:05 [2025-02-14 10:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473230', 'tblTempUsageDetail_20' ) start [2025-02-14 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473230', 'tblTempUsageDetail_20' ) end [2025-02-14 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473230', 'tblTempVendorCDR_20' ) start [2025-02-14 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473230', 'tblTempVendorCDR_20' ) end [2025-02-14 10:47:25] Production.INFO: ProcessCDR(1,14473230,1,1,2) [2025-02-14 10:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:47:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473230', 'tblTempUsageDetail_20' ) start [2025-02-14 10:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473230', 'tblTempUsageDetail_20' ) end [2025-02-14 10:47:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:47:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:47:31] Production.INFO: ==10875== Releasing lock... [2025-02-14 10:47:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:47:31] Production.INFO: 54 MB #Memory Used# [2025-02-14 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:48:05 [end_date_ymd] => 2025-02-14 10:48:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:48:05' and `end` < '2025-02-14 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-02-14 10:48:31] Production.INFO: count ==3448 [2025-02-14 10:48:32] Production.ERROR: pbx CDR StartTime 2025-02-14 07:48:05 - End Time 2025-02-14 10:48:05 [2025-02-14 10:48:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473235', 'tblTempUsageDetail_20' ) start [2025-02-14 10:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473235', 'tblTempUsageDetail_20' ) end [2025-02-14 10:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473235', 'tblTempVendorCDR_20' ) start [2025-02-14 10:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473235', 'tblTempVendorCDR_20' ) end [2025-02-14 10:48:32] Production.INFO: ProcessCDR(1,14473235,1,1,2) [2025-02-14 10:48:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:48:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:48:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:48:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:48:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473235', 'tblTempUsageDetail_20' ) start [2025-02-14 10:48:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473235', 'tblTempUsageDetail_20' ) end [2025-02-14 10:48:38] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:48:38] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:48:38] Production.INFO: ==10947== Releasing lock... [2025-02-14 10:48:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:48:38] Production.INFO: 54 MB #Memory Used# [2025-02-14 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:49:06 [end_date_ymd] => 2025-02-14 10:49:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:49:06' and `end` < '2025-02-14 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-02-14 10:49:25] Production.INFO: count ==3481 [2025-02-14 10:49:27] Production.ERROR: pbx CDR StartTime 2025-02-14 07:49:06 - End Time 2025-02-14 10:49:06 [2025-02-14 10:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473240', 'tblTempUsageDetail_20' ) start [2025-02-14 10:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473240', 'tblTempUsageDetail_20' ) end [2025-02-14 10:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473240', 'tblTempVendorCDR_20' ) start [2025-02-14 10:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473240', 'tblTempVendorCDR_20' ) end [2025-02-14 10:49:27] Production.INFO: ProcessCDR(1,14473240,1,1,2) [2025-02-14 10:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473240', 'tblTempUsageDetail_20' ) start [2025-02-14 10:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473240', 'tblTempUsageDetail_20' ) end [2025-02-14 10:49:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:49:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:49:32] Production.INFO: ==11017== Releasing lock... [2025-02-14 10:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:49:32] Production.INFO: 54.25 MB #Memory Used# [2025-02-14 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:50:06 [end_date_ymd] => 2025-02-14 10:50:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:50:06' and `end` < '2025-02-14 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-02-14 10:50:27] Production.INFO: count ==3490 [2025-02-14 10:50:29] Production.ERROR: pbx CDR StartTime 2025-02-14 07:50:06 - End Time 2025-02-14 10:50:06 [2025-02-14 10:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473246', 'tblTempUsageDetail_20' ) start [2025-02-14 10:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473246', 'tblTempUsageDetail_20' ) end [2025-02-14 10:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473246', 'tblTempVendorCDR_20' ) start [2025-02-14 10:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473246', 'tblTempVendorCDR_20' ) end [2025-02-14 10:50:29] Production.INFO: ProcessCDR(1,14473246,1,1,2) [2025-02-14 10:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473246', 'tblTempUsageDetail_20' ) start [2025-02-14 10:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473246', 'tblTempUsageDetail_20' ) end [2025-02-14 10:50:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:50:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:50:34] Production.INFO: ==11089== Releasing lock... [2025-02-14 10:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:50:34] Production.INFO: 54.25 MB #Memory Used# [2025-02-14 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:51:05 [end_date_ymd] => 2025-02-14 10:51:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:51:05' and `end` < '2025-02-14 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-02-14 10:51:21] Production.INFO: count ==3614 [2025-02-14 10:51:22] Production.ERROR: pbx CDR StartTime 2025-02-14 07:51:05 - End Time 2025-02-14 10:51:05 [2025-02-14 10:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473251', 'tblTempUsageDetail_20' ) start [2025-02-14 10:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473251', 'tblTempUsageDetail_20' ) end [2025-02-14 10:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473251', 'tblTempVendorCDR_20' ) start [2025-02-14 10:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473251', 'tblTempVendorCDR_20' ) end [2025-02-14 10:51:22] Production.INFO: ProcessCDR(1,14473251,1,1,2) [2025-02-14 10:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473251', 'tblTempUsageDetail_20' ) start [2025-02-14 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473251', 'tblTempUsageDetail_20' ) end [2025-02-14 10:51:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:51:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:51:28] Production.INFO: ==11162== Releasing lock... [2025-02-14 10:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:51:28] Production.INFO: 56 MB #Memory Used# [2025-02-14 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:52:05 [end_date_ymd] => 2025-02-14 10:52:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:52:05' and `end` < '2025-02-14 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-02-14 10:52:30] Production.INFO: count ==3657 [2025-02-14 10:52:31] Production.ERROR: pbx CDR StartTime 2025-02-14 07:52:05 - End Time 2025-02-14 10:52:05 [2025-02-14 10:52:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473255', 'tblTempUsageDetail_20' ) start [2025-02-14 10:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473255', 'tblTempUsageDetail_20' ) end [2025-02-14 10:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473255', 'tblTempVendorCDR_20' ) start [2025-02-14 10:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473255', 'tblTempVendorCDR_20' ) end [2025-02-14 10:52:32] Production.INFO: ProcessCDR(1,14473255,1,1,2) [2025-02-14 10:52:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:52:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:52:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:52:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:52:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473255', 'tblTempUsageDetail_20' ) start [2025-02-14 10:52:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473255', 'tblTempUsageDetail_20' ) end [2025-02-14 10:52:37] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:52:37] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:52:37] Production.INFO: ==11231== Releasing lock... [2025-02-14 10:52:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:52:37] Production.INFO: 55.5 MB #Memory Used# [2025-02-14 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:53:05 [end_date_ymd] => 2025-02-14 10:53:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:53:05' and `end` < '2025-02-14 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-02-14 10:53:27] Production.INFO: count ==3682 [2025-02-14 10:53:28] Production.ERROR: pbx CDR StartTime 2025-02-14 07:53:05 - End Time 2025-02-14 10:53:05 [2025-02-14 10:53:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473261', 'tblTempUsageDetail_20' ) start [2025-02-14 10:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473261', 'tblTempUsageDetail_20' ) end [2025-02-14 10:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473261', 'tblTempVendorCDR_20' ) start [2025-02-14 10:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473261', 'tblTempVendorCDR_20' ) end [2025-02-14 10:53:28] Production.INFO: ProcessCDR(1,14473261,1,1,2) [2025-02-14 10:53:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:53:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:53:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:53:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473261', 'tblTempUsageDetail_20' ) start [2025-02-14 10:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473261', 'tblTempUsageDetail_20' ) end [2025-02-14 10:53:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:53:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:53:34] Production.INFO: ==11342== Releasing lock... [2025-02-14 10:53:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:53:34] Production.INFO: 56 MB #Memory Used# [2025-02-14 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:54:06 [end_date_ymd] => 2025-02-14 10:54:06 [RateCDR] => 1 ) [2025-02-14 10: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-02-14 07:54:06' and `end` < '2025-02-14 10: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-02-14 10:54:27] Production.INFO: count ==3700 [2025-02-14 10:54:28] Production.ERROR: pbx CDR StartTime 2025-02-14 07:54:06 - End Time 2025-02-14 10:54:06 [2025-02-14 10:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473266', 'tblTempUsageDetail_20' ) start [2025-02-14 10:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473266', 'tblTempUsageDetail_20' ) end [2025-02-14 10:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473266', 'tblTempVendorCDR_20' ) start [2025-02-14 10:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473266', 'tblTempVendorCDR_20' ) end [2025-02-14 10:54:29] Production.INFO: ProcessCDR(1,14473266,1,1,2) [2025-02-14 10:54:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473266', 'tblTempUsageDetail_20' ) start [2025-02-14 10:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473266', 'tblTempUsageDetail_20' ) end [2025-02-14 10:54:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:54:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:54:34] Production.INFO: ==11412== Releasing lock... [2025-02-14 10:54:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:54:34] Production.INFO: 55.75 MB #Memory Used# [2025-02-14 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:55:05 [end_date_ymd] => 2025-02-14 10:55:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:55:05' and `end` < '2025-02-14 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-02-14 10:55:27] Production.INFO: count ==3713 [2025-02-14 10:55:29] Production.ERROR: pbx CDR StartTime 2025-02-14 07:55:05 - End Time 2025-02-14 10:55:05 [2025-02-14 10:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473271', 'tblTempUsageDetail_20' ) start [2025-02-14 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473271', 'tblTempUsageDetail_20' ) end [2025-02-14 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473271', 'tblTempVendorCDR_20' ) start [2025-02-14 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473271', 'tblTempVendorCDR_20' ) end [2025-02-14 10:55:29] Production.INFO: ProcessCDR(1,14473271,1,1,2) [2025-02-14 10:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:55:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:55:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:55:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473271', 'tblTempUsageDetail_20' ) start [2025-02-14 10:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473271', 'tblTempUsageDetail_20' ) end [2025-02-14 10:55:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:55:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:55:35] Production.INFO: ==11482== Releasing lock... [2025-02-14 10:55:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:55:35] Production.INFO: 55.75 MB #Memory Used# [2025-02-14 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:56:05 [end_date_ymd] => 2025-02-14 10:56:05 [RateCDR] => 1 ) [2025-02-14 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 07:56:05' and `end` < '2025-02-14 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 10:56:23] Production.INFO: count ==3724 [2025-02-14 10:56:24] Production.ERROR: pbx CDR StartTime 2025-02-14 07:56:05 - End Time 2025-02-14 10:56:05 [2025-02-14 10:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473276', 'tblTempUsageDetail_20' ) start [2025-02-14 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473276', 'tblTempUsageDetail_20' ) end [2025-02-14 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473276', 'tblTempVendorCDR_20' ) start [2025-02-14 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473276', 'tblTempVendorCDR_20' ) end [2025-02-14 10:56:24] Production.INFO: ProcessCDR(1,14473276,1,1,2) [2025-02-14 10:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473276', 'tblTempUsageDetail_20' ) start [2025-02-14 10:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473276', 'tblTempUsageDetail_20' ) end [2025-02-14 10:56:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:56:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:56:29] Production.INFO: ==11556== Releasing lock... [2025-02-14 10:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:56:29] Production.INFO: 56.25 MB #Memory Used# [2025-02-14 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:57:05 [end_date_ymd] => 2025-02-14 10:57:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:57:05' and `end` < '2025-02-14 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-02-14 10:57:20] Production.INFO: count ==3727 [2025-02-14 10:57:22] Production.ERROR: pbx CDR StartTime 2025-02-14 07:57:05 - End Time 2025-02-14 10:57:05 [2025-02-14 10:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473281', 'tblTempUsageDetail_20' ) start [2025-02-14 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473281', 'tblTempUsageDetail_20' ) end [2025-02-14 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473281', 'tblTempVendorCDR_20' ) start [2025-02-14 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473281', 'tblTempVendorCDR_20' ) end [2025-02-14 10:57:22] Production.INFO: ProcessCDR(1,14473281,1,1,2) [2025-02-14 10:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473281', 'tblTempUsageDetail_20' ) start [2025-02-14 10:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473281', 'tblTempUsageDetail_20' ) end [2025-02-14 10:57:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:57:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:57:27] Production.INFO: ==11642== Releasing lock... [2025-02-14 10:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:57:27] Production.INFO: 55.75 MB #Memory Used# [2025-02-14 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:58:06 [end_date_ymd] => 2025-02-14 10:58:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:58:06' and `end` < '2025-02-14 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-02-14 10:58:23] Production.INFO: count ==3752 [2025-02-14 10:58:25] Production.ERROR: pbx CDR StartTime 2025-02-14 07:58:06 - End Time 2025-02-14 10:58:06 [2025-02-14 10:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473286', 'tblTempUsageDetail_20' ) start [2025-02-14 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473286', 'tblTempUsageDetail_20' ) end [2025-02-14 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473286', 'tblTempVendorCDR_20' ) start [2025-02-14 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473286', 'tblTempVendorCDR_20' ) end [2025-02-14 10:58:25] Production.INFO: ProcessCDR(1,14473286,1,1,2) [2025-02-14 10:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473286', 'tblTempUsageDetail_20' ) start [2025-02-14 10:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473286', 'tblTempUsageDetail_20' ) end [2025-02-14 10:58:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:58:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:58:30] Production.INFO: ==11822== Releasing lock... [2025-02-14 10:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:58:30] Production.INFO: 56.5 MB #Memory Used# [2025-02-14 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 07:59:05 [end_date_ymd] => 2025-02-14 10:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 07:59:05' and `end` < '2025-02-14 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-02-14 10:59:28] Production.INFO: count ==3760 [2025-02-14 10:59:30] Production.ERROR: pbx CDR StartTime 2025-02-14 07:59:05 - End Time 2025-02-14 10:59:05 [2025-02-14 10:59:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 10:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473291', 'tblTempUsageDetail_20' ) start [2025-02-14 10:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473291', 'tblTempUsageDetail_20' ) end [2025-02-14 10:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473291', 'tblTempVendorCDR_20' ) start [2025-02-14 10:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473291', 'tblTempVendorCDR_20' ) end [2025-02-14 10:59:30] Production.INFO: ProcessCDR(1,14473291,1,1,2) [2025-02-14 10:59:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:59:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 10:59:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:59:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 10:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473291', 'tblTempUsageDetail_20' ) start [2025-02-14 10:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473291', 'tblTempUsageDetail_20' ) end [2025-02-14 10:59:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 10:59:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 10:59:35] Production.INFO: ==11893== Releasing lock... [2025-02-14 10:59:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 10:59:35] Production.INFO: 56.25 MB #Memory Used# [2025-02-14 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:00:07 [end_date_ymd] => 2025-02-14 11:00:07 [RateCDR] => 1 ) [2025-02-14 11:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:00:07' and `end` < '2025-02-14 11:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:00:37] Production.INFO: count ==3766 [2025-02-14 11:00:39] Production.ERROR: pbx CDR StartTime 2025-02-14 08:00:07 - End Time 2025-02-14 11:00:07 [2025-02-14 11:00:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:00:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473297', 'tblTempUsageDetail_20' ) start [2025-02-14 11:00:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473297', 'tblTempUsageDetail_20' ) end [2025-02-14 11:00:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473297', 'tblTempVendorCDR_20' ) start [2025-02-14 11:00:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473297', 'tblTempVendorCDR_20' ) end [2025-02-14 11:00:39] Production.INFO: ProcessCDR(1,14473297,1,1,2) [2025-02-14 11:00:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:00:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:00:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:00:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:00:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473297', 'tblTempUsageDetail_20' ) start [2025-02-14 11:00:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473297', 'tblTempUsageDetail_20' ) end [2025-02-14 11:00:44] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:00:44] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:00:44] Production.INFO: ==11966== Releasing lock... [2025-02-14 11:00:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:00:44] Production.INFO: 56 MB #Memory Used# [2025-02-14 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:01:05 [end_date_ymd] => 2025-02-14 11:01:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:01:05' and `end` < '2025-02-14 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-02-14 11:01:25] Production.INFO: count ==3851 [2025-02-14 11:01:27] Production.ERROR: pbx CDR StartTime 2025-02-14 08:01:05 - End Time 2025-02-14 11:01:05 [2025-02-14 11:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473302', 'tblTempUsageDetail_20' ) start [2025-02-14 11:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473302', 'tblTempUsageDetail_20' ) end [2025-02-14 11:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473302', 'tblTempVendorCDR_20' ) start [2025-02-14 11:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473302', 'tblTempVendorCDR_20' ) end [2025-02-14 11:01:27] Production.INFO: ProcessCDR(1,14473302,1,1,2) [2025-02-14 11:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473302', 'tblTempUsageDetail_20' ) start [2025-02-14 11:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473302', 'tblTempUsageDetail_20' ) end [2025-02-14 11:01:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:01:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:01:32] Production.INFO: ==12127== Releasing lock... [2025-02-14 11:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:01:32] Production.INFO: 57 MB #Memory Used# [2025-02-14 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:02:06 [end_date_ymd] => 2025-02-14 11:02:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:02:06' and `end` < '2025-02-14 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-02-14 11:02:26] Production.INFO: count ==3869 [2025-02-14 11:02:28] Production.ERROR: pbx CDR StartTime 2025-02-14 08:02:06 - End Time 2025-02-14 11:02:06 [2025-02-14 11:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473307', 'tblTempUsageDetail_20' ) start [2025-02-14 11:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473307', 'tblTempUsageDetail_20' ) end [2025-02-14 11:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473307', 'tblTempVendorCDR_20' ) start [2025-02-14 11:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473307', 'tblTempVendorCDR_20' ) end [2025-02-14 11:02:28] Production.INFO: ProcessCDR(1,14473307,1,1,2) [2025-02-14 11:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473307', 'tblTempUsageDetail_20' ) start [2025-02-14 11:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473307', 'tblTempUsageDetail_20' ) end [2025-02-14 11:02:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:02:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:02:33] Production.INFO: ==12198== Releasing lock... [2025-02-14 11:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:02:33] Production.INFO: 56.75 MB #Memory Used# [2025-02-14 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:03:05 [end_date_ymd] => 2025-02-14 11:03:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:03:05' and `end` < '2025-02-14 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-02-14 11:03:20] Production.INFO: count ==3873 [2025-02-14 11:03:22] Production.ERROR: pbx CDR StartTime 2025-02-14 08:03:05 - End Time 2025-02-14 11:03:05 [2025-02-14 11:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473308', 'tblTempUsageDetail_20' ) start [2025-02-14 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473308', 'tblTempUsageDetail_20' ) end [2025-02-14 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473308', 'tblTempVendorCDR_20' ) start [2025-02-14 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473308', 'tblTempVendorCDR_20' ) end [2025-02-14 11:03:22] Production.INFO: ProcessCDR(1,14473308,1,1,2) [2025-02-14 11:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473308', 'tblTempUsageDetail_20' ) start [2025-02-14 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473308', 'tblTempUsageDetail_20' ) end [2025-02-14 11:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:03:27] Production.INFO: ==12270== Releasing lock... [2025-02-14 11:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:03:27] Production.INFO: 57 MB #Memory Used# [2025-02-14 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:04:06 [end_date_ymd] => 2025-02-14 11:04:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:04:06' and `end` < '2025-02-14 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-02-14 11:04:28] Production.INFO: count ==3899 [2025-02-14 11:04:30] Production.ERROR: pbx CDR StartTime 2025-02-14 08:04:06 - End Time 2025-02-14 11:04:06 [2025-02-14 11:04:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473317', 'tblTempUsageDetail_20' ) start [2025-02-14 11:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473317', 'tblTempUsageDetail_20' ) end [2025-02-14 11:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473317', 'tblTempVendorCDR_20' ) start [2025-02-14 11:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473317', 'tblTempVendorCDR_20' ) end [2025-02-14 11:04:30] Production.INFO: ProcessCDR(1,14473317,1,1,2) [2025-02-14 11:04:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:04:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473317', 'tblTempUsageDetail_20' ) start [2025-02-14 11:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473317', 'tblTempUsageDetail_20' ) end [2025-02-14 11:04:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:04:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:04:35] Production.INFO: ==12366== Releasing lock... [2025-02-14 11:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:04:35] Production.INFO: 57 MB #Memory Used# [2025-02-14 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:05:06 [end_date_ymd] => 2025-02-14 11:05:06 [RateCDR] => 1 ) [2025-02-14 11: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-02-14 08:05:06' and `end` < '2025-02-14 11: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-02-14 11:05:26] Production.INFO: count ==3903 [2025-02-14 11:05:28] Production.ERROR: pbx CDR StartTime 2025-02-14 08:05:06 - End Time 2025-02-14 11:05:06 [2025-02-14 11:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473322', 'tblTempUsageDetail_20' ) start [2025-02-14 11:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473322', 'tblTempUsageDetail_20' ) end [2025-02-14 11:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473322', 'tblTempVendorCDR_20' ) start [2025-02-14 11:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473322', 'tblTempVendorCDR_20' ) end [2025-02-14 11:05:28] Production.INFO: ProcessCDR(1,14473322,1,1,2) [2025-02-14 11:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473322', 'tblTempUsageDetail_20' ) start [2025-02-14 11:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473322', 'tblTempUsageDetail_20' ) end [2025-02-14 11:05:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:05:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:05:34] Production.INFO: ==12516== Releasing lock... [2025-02-14 11:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:05:34] Production.INFO: 57.25 MB #Memory Used# [2025-02-14 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:06:06 [end_date_ymd] => 2025-02-14 11:06:06 [RateCDR] => 1 ) [2025-02-14 11:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:06:06' and `end` < '2025-02-14 11:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:06:23] Production.INFO: count ==3898 [2025-02-14 11:06:25] Production.ERROR: pbx CDR StartTime 2025-02-14 08:06:06 - End Time 2025-02-14 11:06:06 [2025-02-14 11:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473327', 'tblTempUsageDetail_20' ) start [2025-02-14 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473327', 'tblTempUsageDetail_20' ) end [2025-02-14 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473327', 'tblTempVendorCDR_20' ) start [2025-02-14 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473327', 'tblTempVendorCDR_20' ) end [2025-02-14 11:06:25] Production.INFO: ProcessCDR(1,14473327,1,1,2) [2025-02-14 11:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473327', 'tblTempUsageDetail_20' ) start [2025-02-14 11:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473327', 'tblTempUsageDetail_20' ) end [2025-02-14 11:06:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:06:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:06:30] Production.INFO: ==12589== Releasing lock... [2025-02-14 11:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:06:30] Production.INFO: 57 MB #Memory Used# [2025-02-14 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:07:05 [end_date_ymd] => 2025-02-14 11:07:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:07:05' and `end` < '2025-02-14 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-02-14 11:07:19] Production.INFO: count ==3899 [2025-02-14 11:07:21] Production.ERROR: pbx CDR StartTime 2025-02-14 08:07:05 - End Time 2025-02-14 11:07:05 [2025-02-14 11:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473332', 'tblTempUsageDetail_20' ) start [2025-02-14 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473332', 'tblTempUsageDetail_20' ) end [2025-02-14 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473332', 'tblTempVendorCDR_20' ) start [2025-02-14 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473332', 'tblTempVendorCDR_20' ) end [2025-02-14 11:07:21] Production.INFO: ProcessCDR(1,14473332,1,1,2) [2025-02-14 11:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473332', 'tblTempUsageDetail_20' ) start [2025-02-14 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473332', 'tblTempUsageDetail_20' ) end [2025-02-14 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:07:26] Production.INFO: ==12660== Releasing lock... [2025-02-14 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:07:26] Production.INFO: 57 MB #Memory Used# [2025-02-14 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:08:05 [end_date_ymd] => 2025-02-14 11:08:05 [RateCDR] => 1 ) [2025-02-14 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:08:05' and `end` < '2025-02-14 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:08:29] Production.INFO: count ==3905 [2025-02-14 11:08:31] Production.ERROR: pbx CDR StartTime 2025-02-14 08:08:05 - End Time 2025-02-14 11:08:05 [2025-02-14 11:08:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473337', 'tblTempUsageDetail_20' ) start [2025-02-14 11:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473337', 'tblTempUsageDetail_20' ) end [2025-02-14 11:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473337', 'tblTempVendorCDR_20' ) start [2025-02-14 11:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473337', 'tblTempVendorCDR_20' ) end [2025-02-14 11:08:31] Production.INFO: ProcessCDR(1,14473337,1,1,2) [2025-02-14 11:08:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:08:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:08:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:08:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473337', 'tblTempUsageDetail_20' ) start [2025-02-14 11:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473337', 'tblTempUsageDetail_20' ) end [2025-02-14 11:08:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:08:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:08:36] Production.INFO: ==12846== Releasing lock... [2025-02-14 11:08:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:08:36] Production.INFO: 57.25 MB #Memory Used# [2025-02-14 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:09:05 [end_date_ymd] => 2025-02-14 11:09:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:09:05' and `end` < '2025-02-14 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-02-14 11:09:24] Production.INFO: count ==3907 [2025-02-14 11:09:25] Production.ERROR: pbx CDR StartTime 2025-02-14 08:09:05 - End Time 2025-02-14 11:09:05 [2025-02-14 11:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473342', 'tblTempUsageDetail_20' ) start [2025-02-14 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473342', 'tblTempUsageDetail_20' ) end [2025-02-14 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473342', 'tblTempVendorCDR_20' ) start [2025-02-14 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473342', 'tblTempVendorCDR_20' ) end [2025-02-14 11:09:26] Production.INFO: ProcessCDR(1,14473342,1,1,2) [2025-02-14 11:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473342', 'tblTempUsageDetail_20' ) start [2025-02-14 11:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473342', 'tblTempUsageDetail_20' ) end [2025-02-14 11:09:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:09:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:09:31] Production.INFO: ==12919== Releasing lock... [2025-02-14 11:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:09:31] Production.INFO: 57.25 MB #Memory Used# [2025-02-14 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:10:06 [end_date_ymd] => 2025-02-14 11:10:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:10:06' and `end` < '2025-02-14 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-02-14 11:10:26] Production.INFO: count ==3909 [2025-02-14 11:10:28] Production.ERROR: pbx CDR StartTime 2025-02-14 08:10:06 - End Time 2025-02-14 11:10:06 [2025-02-14 11:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473348', 'tblTempUsageDetail_20' ) start [2025-02-14 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473348', 'tblTempUsageDetail_20' ) end [2025-02-14 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473348', 'tblTempVendorCDR_20' ) start [2025-02-14 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473348', 'tblTempVendorCDR_20' ) end [2025-02-14 11:10:28] Production.INFO: ProcessCDR(1,14473348,1,1,2) [2025-02-14 11:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473348', 'tblTempUsageDetail_20' ) start [2025-02-14 11:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473348', 'tblTempUsageDetail_20' ) end [2025-02-14 11:10:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:10:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:10:34] Production.INFO: ==12994== Releasing lock... [2025-02-14 11:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:10:34] Production.INFO: 57.5 MB #Memory Used# [2025-02-14 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:11:05 [end_date_ymd] => 2025-02-14 11:11:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:11:05' and `end` < '2025-02-14 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-02-14 11:11:27] Production.INFO: count ==3996 [2025-02-14 11:11:29] Production.ERROR: pbx CDR StartTime 2025-02-14 08:11:05 - End Time 2025-02-14 11:11:05 [2025-02-14 11:11:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473353', 'tblTempUsageDetail_20' ) start [2025-02-14 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473353', 'tblTempUsageDetail_20' ) end [2025-02-14 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473353', 'tblTempVendorCDR_20' ) start [2025-02-14 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473353', 'tblTempVendorCDR_20' ) end [2025-02-14 11:11:29] Production.INFO: ProcessCDR(1,14473353,1,1,2) [2025-02-14 11:11:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:11:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473353', 'tblTempUsageDetail_20' ) start [2025-02-14 11:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473353', 'tblTempUsageDetail_20' ) end [2025-02-14 11:11:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:11:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:11:34] Production.INFO: ==13070== Releasing lock... [2025-02-14 11:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:11:34] Production.INFO: 57.75 MB #Memory Used# [2025-02-14 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:12:05 [end_date_ymd] => 2025-02-14 11:12:05 [RateCDR] => 1 ) [2025-02-14 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:12:05' and `end` < '2025-02-14 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:12:23] Production.INFO: count ==3999 [2025-02-14 11:12:25] Production.ERROR: pbx CDR StartTime 2025-02-14 08:12:05 - End Time 2025-02-14 11:12:05 [2025-02-14 11:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473358', 'tblTempUsageDetail_20' ) start [2025-02-14 11:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473358', 'tblTempUsageDetail_20' ) end [2025-02-14 11:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473358', 'tblTempVendorCDR_20' ) start [2025-02-14 11:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473358', 'tblTempVendorCDR_20' ) end [2025-02-14 11:12:25] Production.INFO: ProcessCDR(1,14473358,1,1,2) [2025-02-14 11:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473358', 'tblTempUsageDetail_20' ) start [2025-02-14 11:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473358', 'tblTempUsageDetail_20' ) end [2025-02-14 11:12:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:12:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:12:30] Production.INFO: ==13218== Releasing lock... [2025-02-14 11:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:12:30] Production.INFO: 58 MB #Memory Used# [2025-02-14 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:13:05 [end_date_ymd] => 2025-02-14 11:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:13:05' and `end` < '2025-02-14 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-02-14 11:13:19] Production.INFO: count ==4001 [2025-02-14 11:13:21] Production.ERROR: pbx CDR StartTime 2025-02-14 08:13:05 - End Time 2025-02-14 11:13:05 [2025-02-14 11:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473363', 'tblTempUsageDetail_20' ) start [2025-02-14 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473363', 'tblTempUsageDetail_20' ) end [2025-02-14 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473363', 'tblTempVendorCDR_20' ) start [2025-02-14 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473363', 'tblTempVendorCDR_20' ) end [2025-02-14 11:13:21] Production.INFO: ProcessCDR(1,14473363,1,1,2) [2025-02-14 11:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473363', 'tblTempUsageDetail_20' ) start [2025-02-14 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473363', 'tblTempUsageDetail_20' ) end [2025-02-14 11:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:13:26] Production.INFO: ==13292== Releasing lock... [2025-02-14 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:13:26] Production.INFO: 58 MB #Memory Used# [2025-02-14 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:14:05 [end_date_ymd] => 2025-02-14 11:14:05 [RateCDR] => 1 ) [2025-02-14 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:14:05' and `end` < '2025-02-14 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:14:24] Production.INFO: count ==4028 [2025-02-14 11:14:25] Production.ERROR: pbx CDR StartTime 2025-02-14 08:14:05 - End Time 2025-02-14 11:14:05 [2025-02-14 11:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473368', 'tblTempUsageDetail_20' ) start [2025-02-14 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473368', 'tblTempUsageDetail_20' ) end [2025-02-14 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473368', 'tblTempVendorCDR_20' ) start [2025-02-14 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473368', 'tblTempVendorCDR_20' ) end [2025-02-14 11:14:25] Production.INFO: ProcessCDR(1,14473368,1,1,2) [2025-02-14 11:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473368', 'tblTempUsageDetail_20' ) start [2025-02-14 11:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473368', 'tblTempUsageDetail_20' ) end [2025-02-14 11:14:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:14:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:14:31] Production.INFO: ==13362== Releasing lock... [2025-02-14 11:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:14:31] Production.INFO: 58 MB #Memory Used# [2025-02-14 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:15:06 [end_date_ymd] => 2025-02-14 11:15:06 [RateCDR] => 1 ) [2025-02-14 11:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:15:06' and `end` < '2025-02-14 11:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:15:29] Production.INFO: count ==4042 [2025-02-14 11:15:31] Production.ERROR: pbx CDR StartTime 2025-02-14 08:15:06 - End Time 2025-02-14 11:15:06 [2025-02-14 11:15:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473373', 'tblTempUsageDetail_20' ) start [2025-02-14 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473373', 'tblTempUsageDetail_20' ) end [2025-02-14 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473373', 'tblTempVendorCDR_20' ) start [2025-02-14 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473373', 'tblTempVendorCDR_20' ) end [2025-02-14 11:15:31] Production.INFO: ProcessCDR(1,14473373,1,1,2) [2025-02-14 11:15:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:15:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:15:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:15:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473373', 'tblTempUsageDetail_20' ) start [2025-02-14 11:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473373', 'tblTempUsageDetail_20' ) end [2025-02-14 11:15:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:15:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:15:36] Production.INFO: ==13512== Releasing lock... [2025-02-14 11:15:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:15:36] Production.INFO: 58.25 MB #Memory Used# [2025-02-14 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:16:05 [end_date_ymd] => 2025-02-14 11:16:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:16:05' and `end` < '2025-02-14 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-02-14 11:16:25] Production.INFO: count ==4065 [2025-02-14 11:16:27] Production.ERROR: pbx CDR StartTime 2025-02-14 08:16:05 - End Time 2025-02-14 11:16:05 [2025-02-14 11:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473378', 'tblTempUsageDetail_20' ) start [2025-02-14 11:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473378', 'tblTempUsageDetail_20' ) end [2025-02-14 11:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473378', 'tblTempVendorCDR_20' ) start [2025-02-14 11:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473378', 'tblTempVendorCDR_20' ) end [2025-02-14 11:16:27] Production.INFO: ProcessCDR(1,14473378,1,1,2) [2025-02-14 11:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:16:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:16:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:16:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473378', 'tblTempUsageDetail_20' ) start [2025-02-14 11:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473378', 'tblTempUsageDetail_20' ) end [2025-02-14 11:16:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:16:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:16:32] Production.INFO: ==13583== Releasing lock... [2025-02-14 11:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:16:32] Production.INFO: 58.25 MB #Memory Used# [2025-02-14 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:17:05 [end_date_ymd] => 2025-02-14 11:17:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:17:05' and `end` < '2025-02-14 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-02-14 11:17:25] Production.INFO: count ==4073 [2025-02-14 11:17:27] Production.ERROR: pbx CDR StartTime 2025-02-14 08:17:05 - End Time 2025-02-14 11:17:05 [2025-02-14 11:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473383', 'tblTempUsageDetail_20' ) start [2025-02-14 11:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473383', 'tblTempUsageDetail_20' ) end [2025-02-14 11:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473383', 'tblTempVendorCDR_20' ) start [2025-02-14 11:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473383', 'tblTempVendorCDR_20' ) end [2025-02-14 11:17:27] Production.INFO: ProcessCDR(1,14473383,1,1,2) [2025-02-14 11:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473383', 'tblTempUsageDetail_20' ) start [2025-02-14 11:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473383', 'tblTempUsageDetail_20' ) end [2025-02-14 11:17:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:17:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:17:32] Production.INFO: ==13652== Releasing lock... [2025-02-14 11:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:17:32] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:18:05 [end_date_ymd] => 2025-02-14 11:18:05 [RateCDR] => 1 ) [2025-02-14 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:18:05' and `end` < '2025-02-14 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-02-14 11:18:29] Production.INFO: count ==4091 [2025-02-14 11:18:31] Production.ERROR: pbx CDR StartTime 2025-02-14 08:18:05 - End Time 2025-02-14 11:18:05 [2025-02-14 11:18:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:18:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473388', 'tblTempUsageDetail_20' ) start [2025-02-14 11:18:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473388', 'tblTempUsageDetail_20' ) end [2025-02-14 11:18:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473388', 'tblTempVendorCDR_20' ) start [2025-02-14 11:18:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473388', 'tblTempVendorCDR_20' ) end [2025-02-14 11:18:31] Production.INFO: ProcessCDR(1,14473388,1,1,2) [2025-02-14 11:18:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:18:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:18:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:18:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:18:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473388', 'tblTempUsageDetail_20' ) start [2025-02-14 11:18:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473388', 'tblTempUsageDetail_20' ) end [2025-02-14 11:18:37] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:18:37] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:18:37] Production.INFO: ==13724== Releasing lock... [2025-02-14 11:18:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:18:37] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:19:05 [end_date_ymd] => 2025-02-14 11:19:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:19:05' and `end` < '2025-02-14 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-02-14 11:19:24] Production.INFO: count ==4098 [2025-02-14 11:19:26] Production.ERROR: pbx CDR StartTime 2025-02-14 08:19:05 - End Time 2025-02-14 11:19:05 [2025-02-14 11:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473393', 'tblTempUsageDetail_20' ) start [2025-02-14 11:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473393', 'tblTempUsageDetail_20' ) end [2025-02-14 11:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473393', 'tblTempVendorCDR_20' ) start [2025-02-14 11:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473393', 'tblTempVendorCDR_20' ) end [2025-02-14 11:19:26] Production.INFO: ProcessCDR(1,14473393,1,1,2) [2025-02-14 11:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:19:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:19:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:19:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473393', 'tblTempUsageDetail_20' ) start [2025-02-14 11:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473393', 'tblTempUsageDetail_20' ) end [2025-02-14 11:19:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:19:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:19:31] Production.INFO: ==13795== Releasing lock... [2025-02-14 11:19:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:19:31] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:20:06 [end_date_ymd] => 2025-02-14 11:20:06 [RateCDR] => 1 ) [2025-02-14 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:20:06' and `end` < '2025-02-14 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:20:20] Production.INFO: count ==4084 [2025-02-14 11:20:22] Production.ERROR: pbx CDR StartTime 2025-02-14 08:20:06 - End Time 2025-02-14 11:20:06 [2025-02-14 11:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473399', 'tblTempUsageDetail_20' ) start [2025-02-14 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473399', 'tblTempUsageDetail_20' ) end [2025-02-14 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473399', 'tblTempVendorCDR_20' ) start [2025-02-14 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473399', 'tblTempVendorCDR_20' ) end [2025-02-14 11:20:22] Production.INFO: ProcessCDR(1,14473399,1,1,2) [2025-02-14 11:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473399', 'tblTempUsageDetail_20' ) start [2025-02-14 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473399', 'tblTempUsageDetail_20' ) end [2025-02-14 11:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:20:27] Production.INFO: ==13866== Releasing lock... [2025-02-14 11:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:20:27] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:21:06 [end_date_ymd] => 2025-02-14 11:21:06 [RateCDR] => 1 ) [2025-02-14 11:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:21:06' and `end` < '2025-02-14 11:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:21:36] Production.INFO: count ==4163 [2025-02-14 11:21:38] Production.ERROR: pbx CDR StartTime 2025-02-14 08:21:06 - End Time 2025-02-14 11:21:06 [2025-02-14 11:21:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:21:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473404', 'tblTempUsageDetail_20' ) start [2025-02-14 11:21:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473404', 'tblTempUsageDetail_20' ) end [2025-02-14 11:21:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473404', 'tblTempVendorCDR_20' ) start [2025-02-14 11:21:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473404', 'tblTempVendorCDR_20' ) end [2025-02-14 11:21:38] Production.INFO: ProcessCDR(1,14473404,1,1,2) [2025-02-14 11:21:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:21:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:21:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:21:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:21:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473404', 'tblTempUsageDetail_20' ) start [2025-02-14 11:21:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473404', 'tblTempUsageDetail_20' ) end [2025-02-14 11:21:44] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:21:44] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:21:44] Production.INFO: ==13938== Releasing lock... [2025-02-14 11:21:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:21:44] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:22:05 [end_date_ymd] => 2025-02-14 11:22:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:22:05' and `end` < '2025-02-14 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-02-14 11:22:33] Production.INFO: count ==4180 [2025-02-14 11:22:35] Production.ERROR: pbx CDR StartTime 2025-02-14 08:22:05 - End Time 2025-02-14 11:22:05 [2025-02-14 11:22:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:22:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473409', 'tblTempUsageDetail_20' ) start [2025-02-14 11:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473409', 'tblTempUsageDetail_20' ) end [2025-02-14 11:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473409', 'tblTempVendorCDR_20' ) start [2025-02-14 11:22:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473409', 'tblTempVendorCDR_20' ) end [2025-02-14 11:22:36] Production.INFO: ProcessCDR(1,14473409,1,1,2) [2025-02-14 11:22:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:22:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:22:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:22:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:22:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473409', 'tblTempUsageDetail_20' ) start [2025-02-14 11:22:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473409', 'tblTempUsageDetail_20' ) end [2025-02-14 11:22:41] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:22:41] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:22:41] Production.INFO: ==14008== Releasing lock... [2025-02-14 11:22:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:22:41] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:23:06 [end_date_ymd] => 2025-02-14 11:23:06 [RateCDR] => 1 ) [2025-02-14 11:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:23:06' and `end` < '2025-02-14 11:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:23:32] Production.INFO: count ==4167 [2025-02-14 11:23:34] Production.ERROR: pbx CDR StartTime 2025-02-14 08:23:06 - End Time 2025-02-14 11:23:06 [2025-02-14 11:23:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:23:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473414', 'tblTempUsageDetail_20' ) start [2025-02-14 11:23:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473414', 'tblTempUsageDetail_20' ) end [2025-02-14 11:23:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473414', 'tblTempVendorCDR_20' ) start [2025-02-14 11:23:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473414', 'tblTempVendorCDR_20' ) end [2025-02-14 11:23:34] Production.INFO: ProcessCDR(1,14473414,1,1,2) [2025-02-14 11:23:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:23:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:23:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:23:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:23:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473414', 'tblTempUsageDetail_20' ) start [2025-02-14 11:23:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473414', 'tblTempUsageDetail_20' ) end [2025-02-14 11:23:40] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:23:40] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:23:40] Production.INFO: ==14086== Releasing lock... [2025-02-14 11:23:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:23:40] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:24:05 [end_date_ymd] => 2025-02-14 11:24:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:24:05' and `end` < '2025-02-14 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-02-14 11:24:34] Production.INFO: count ==4174 [2025-02-14 11:24:36] Production.ERROR: pbx CDR StartTime 2025-02-14 08:24:05 - End Time 2025-02-14 11:24:05 [2025-02-14 11:24:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:24:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473419', 'tblTempUsageDetail_20' ) start [2025-02-14 11:24:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473419', 'tblTempUsageDetail_20' ) end [2025-02-14 11:24:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473419', 'tblTempVendorCDR_20' ) start [2025-02-14 11:24:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473419', 'tblTempVendorCDR_20' ) end [2025-02-14 11:24:36] Production.INFO: ProcessCDR(1,14473419,1,1,2) [2025-02-14 11:24:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:24:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:24:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:24:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:24:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473419', 'tblTempUsageDetail_20' ) start [2025-02-14 11:24:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473419', 'tblTempUsageDetail_20' ) end [2025-02-14 11:24:42] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:24:42] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:24:42] Production.INFO: ==14195== Releasing lock... [2025-02-14 11:24:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:24:42] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:25:06 [end_date_ymd] => 2025-02-14 11:25:06 [RateCDR] => 1 ) [2025-02-14 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:25:06' and `end` < '2025-02-14 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:25:28] Production.INFO: count ==4192 [2025-02-14 11:25:30] Production.ERROR: pbx CDR StartTime 2025-02-14 08:25:06 - End Time 2025-02-14 11:25:06 [2025-02-14 11:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473424', 'tblTempUsageDetail_20' ) start [2025-02-14 11:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473424', 'tblTempUsageDetail_20' ) end [2025-02-14 11:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473424', 'tblTempVendorCDR_20' ) start [2025-02-14 11:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473424', 'tblTempVendorCDR_20' ) end [2025-02-14 11:25:30] Production.INFO: ProcessCDR(1,14473424,1,1,2) [2025-02-14 11:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473424', 'tblTempUsageDetail_20' ) start [2025-02-14 11:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473424', 'tblTempUsageDetail_20' ) end [2025-02-14 11:25:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:25:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:25:36] Production.INFO: ==14267== Releasing lock... [2025-02-14 11:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:25:36] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:26:06 [end_date_ymd] => 2025-02-14 11:26:06 [RateCDR] => 1 ) [2025-02-14 11:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:26:06' and `end` < '2025-02-14 11:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:26:30] Production.INFO: count ==4214 [2025-02-14 11:26:32] Production.ERROR: pbx CDR StartTime 2025-02-14 08:26:06 - End Time 2025-02-14 11:26:06 [2025-02-14 11:26:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473429', 'tblTempUsageDetail_20' ) start [2025-02-14 11:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473429', 'tblTempUsageDetail_20' ) end [2025-02-14 11:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473429', 'tblTempVendorCDR_20' ) start [2025-02-14 11:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473429', 'tblTempVendorCDR_20' ) end [2025-02-14 11:26:32] Production.INFO: ProcessCDR(1,14473429,1,1,2) [2025-02-14 11:26:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:26:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:26:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:26:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473429', 'tblTempUsageDetail_20' ) start [2025-02-14 11:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473429', 'tblTempUsageDetail_20' ) end [2025-02-14 11:26:37] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:26:38] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:26:38] Production.INFO: ==14337== Releasing lock... [2025-02-14 11:26:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:26:38] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:27:06 [end_date_ymd] => 2025-02-14 11:27:06 [RateCDR] => 1 ) [2025-02-14 11:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:27:06' and `end` < '2025-02-14 11:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:27:27] Production.INFO: count ==4230 [2025-02-14 11:27:29] Production.ERROR: pbx CDR StartTime 2025-02-14 08:27:06 - End Time 2025-02-14 11:27:06 [2025-02-14 11:27:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473434', 'tblTempUsageDetail_20' ) start [2025-02-14 11:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473434', 'tblTempUsageDetail_20' ) end [2025-02-14 11:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473434', 'tblTempVendorCDR_20' ) start [2025-02-14 11:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473434', 'tblTempVendorCDR_20' ) end [2025-02-14 11:27:30] Production.INFO: ProcessCDR(1,14473434,1,1,2) [2025-02-14 11:27:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:27:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:27:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:27:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:27:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473434', 'tblTempUsageDetail_20' ) start [2025-02-14 11:27:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473434', 'tblTempUsageDetail_20' ) end [2025-02-14 11:27:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:27:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:27:35] Production.INFO: ==14409== Releasing lock... [2025-02-14 11:27:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:27:35] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:28:05 [end_date_ymd] => 2025-02-14 11:28:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:28:05' and `end` < '2025-02-14 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-02-14 11:28:25] Production.INFO: count ==4249 [2025-02-14 11:28:27] Production.ERROR: pbx CDR StartTime 2025-02-14 08:28:05 - End Time 2025-02-14 11:28:05 [2025-02-14 11:28:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473439', 'tblTempUsageDetail_20' ) start [2025-02-14 11:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473439', 'tblTempUsageDetail_20' ) end [2025-02-14 11:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473439', 'tblTempVendorCDR_20' ) start [2025-02-14 11:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473439', 'tblTempVendorCDR_20' ) end [2025-02-14 11:28:27] Production.INFO: ProcessCDR(1,14473439,1,1,2) [2025-02-14 11:28:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:28:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:28:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:28:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473439', 'tblTempUsageDetail_20' ) start [2025-02-14 11:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473439', 'tblTempUsageDetail_20' ) end [2025-02-14 11:28:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:28:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:28:33] Production.INFO: ==14481== Releasing lock... [2025-02-14 11:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:28:33] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:29:06 [end_date_ymd] => 2025-02-14 11:29:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:29:06' and `end` < '2025-02-14 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-02-14 11:29:24] Production.INFO: count ==4271 [2025-02-14 11:29:27] Production.ERROR: pbx CDR StartTime 2025-02-14 08:29:06 - End Time 2025-02-14 11:29:06 [2025-02-14 11:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473444', 'tblTempUsageDetail_20' ) start [2025-02-14 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473444', 'tblTempUsageDetail_20' ) end [2025-02-14 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473444', 'tblTempVendorCDR_20' ) start [2025-02-14 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473444', 'tblTempVendorCDR_20' ) end [2025-02-14 11:29:27] Production.INFO: ProcessCDR(1,14473444,1,1,2) [2025-02-14 11:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473444', 'tblTempUsageDetail_20' ) start [2025-02-14 11:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473444', 'tblTempUsageDetail_20' ) end [2025-02-14 11:29:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:29:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:29:32] Production.INFO: ==14555== Releasing lock... [2025-02-14 11:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:29:32] Production.INFO: 60 MB #Memory Used# [2025-02-14 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:30:06 [end_date_ymd] => 2025-02-14 11:30:06 [RateCDR] => 1 ) [2025-02-14 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:30:06' and `end` < '2025-02-14 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:30:21] Production.INFO: count ==4267 [2025-02-14 11:30:23] Production.ERROR: pbx CDR StartTime 2025-02-14 08:30:06 - End Time 2025-02-14 11:30:06 [2025-02-14 11:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473450', 'tblTempUsageDetail_20' ) start [2025-02-14 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473450', 'tblTempUsageDetail_20' ) end [2025-02-14 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473450', 'tblTempVendorCDR_20' ) start [2025-02-14 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473450', 'tblTempVendorCDR_20' ) end [2025-02-14 11:30:23] Production.INFO: ProcessCDR(1,14473450,1,1,2) [2025-02-14 11:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473450', 'tblTempUsageDetail_20' ) start [2025-02-14 11:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473450', 'tblTempUsageDetail_20' ) end [2025-02-14 11:30:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:30:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:30:29] Production.INFO: ==14631== Releasing lock... [2025-02-14 11:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:30:29] Production.INFO: 60 MB #Memory Used# [2025-02-14 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:31:05 [end_date_ymd] => 2025-02-14 11:31:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:31:05' and `end` < '2025-02-14 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-02-14 11:31:19] Production.INFO: count ==4287 [2025-02-14 11:31:21] Production.ERROR: pbx CDR StartTime 2025-02-14 08:31:05 - End Time 2025-02-14 11:31:05 [2025-02-14 11:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473455', 'tblTempUsageDetail_20' ) start [2025-02-14 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473455', 'tblTempUsageDetail_20' ) end [2025-02-14 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473455', 'tblTempVendorCDR_20' ) start [2025-02-14 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473455', 'tblTempVendorCDR_20' ) end [2025-02-14 11:31:21] Production.INFO: ProcessCDR(1,14473455,1,1,2) [2025-02-14 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473455', 'tblTempUsageDetail_20' ) start [2025-02-14 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473455', 'tblTempUsageDetail_20' ) end [2025-02-14 11:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:31:26] Production.INFO: ==14706== Releasing lock... [2025-02-14 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:31:26] Production.INFO: 60 MB #Memory Used# [2025-02-14 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:32:05 [end_date_ymd] => 2025-02-14 11:32:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:32:05' and `end` < '2025-02-14 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-02-14 11:32:19] Production.INFO: count ==4288 [2025-02-14 11:32:22] Production.ERROR: pbx CDR StartTime 2025-02-14 08:32:05 - End Time 2025-02-14 11:32:05 [2025-02-14 11:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473460', 'tblTempUsageDetail_20' ) start [2025-02-14 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473460', 'tblTempUsageDetail_20' ) end [2025-02-14 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473460', 'tblTempVendorCDR_20' ) start [2025-02-14 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473460', 'tblTempVendorCDR_20' ) end [2025-02-14 11:32:22] Production.INFO: ProcessCDR(1,14473460,1,1,2) [2025-02-14 11:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473460', 'tblTempUsageDetail_20' ) start [2025-02-14 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473460', 'tblTempUsageDetail_20' ) end [2025-02-14 11:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:32:27] Production.INFO: ==14775== Releasing lock... [2025-02-14 11:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:32:27] Production.INFO: 60 MB #Memory Used# [2025-02-14 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:33:06 [end_date_ymd] => 2025-02-14 11:33:06 [RateCDR] => 1 ) [2025-02-14 11:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:33:06' and `end` < '2025-02-14 11:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:33:21] Production.INFO: count ==4336 [2025-02-14 11:33:23] Production.ERROR: pbx CDR StartTime 2025-02-14 08:33:06 - End Time 2025-02-14 11:33:06 [2025-02-14 11:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473465', 'tblTempUsageDetail_20' ) start [2025-02-14 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473465', 'tblTempUsageDetail_20' ) end [2025-02-14 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473465', 'tblTempVendorCDR_20' ) start [2025-02-14 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473465', 'tblTempVendorCDR_20' ) end [2025-02-14 11:33:23] Production.INFO: ProcessCDR(1,14473465,1,1,2) [2025-02-14 11:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473465', 'tblTempUsageDetail_20' ) start [2025-02-14 11:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473465', 'tblTempUsageDetail_20' ) end [2025-02-14 11:33:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:33:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:33:29] Production.INFO: ==14844== Releasing lock... [2025-02-14 11:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:33:29] Production.INFO: 60.5 MB #Memory Used# [2025-02-14 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:34:06 [end_date_ymd] => 2025-02-14 11:34:06 [RateCDR] => 1 ) [2025-02-14 11: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-02-14 08:34:06' and `end` < '2025-02-14 11: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-02-14 11:34:21] Production.INFO: count ==4343 [2025-02-14 11:34:23] Production.ERROR: pbx CDR StartTime 2025-02-14 08:34:06 - End Time 2025-02-14 11:34:06 [2025-02-14 11:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473470', 'tblTempUsageDetail_20' ) start [2025-02-14 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473470', 'tblTempUsageDetail_20' ) end [2025-02-14 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473470', 'tblTempVendorCDR_20' ) start [2025-02-14 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473470', 'tblTempVendorCDR_20' ) end [2025-02-14 11:34:23] Production.INFO: ProcessCDR(1,14473470,1,1,2) [2025-02-14 11:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473470', 'tblTempUsageDetail_20' ) start [2025-02-14 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473470', 'tblTempUsageDetail_20' ) end [2025-02-14 11:34:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:34:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:34:28] Production.INFO: ==14924== Releasing lock... [2025-02-14 11:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:34:28] Production.INFO: 60.5 MB #Memory Used# [2025-02-14 11:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:35:06 [end_date_ymd] => 2025-02-14 11:35:06 [RateCDR] => 1 ) [2025-02-14 11: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-02-14 08:35:06' and `end` < '2025-02-14 11: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-02-14 11:35:20] Production.INFO: count ==4351 [2025-02-14 11:35:22] Production.ERROR: pbx CDR StartTime 2025-02-14 08:35:06 - End Time 2025-02-14 11:35:06 [2025-02-14 11:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473475', 'tblTempUsageDetail_20' ) start [2025-02-14 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473475', 'tblTempUsageDetail_20' ) end [2025-02-14 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473475', 'tblTempVendorCDR_20' ) start [2025-02-14 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473475', 'tblTempVendorCDR_20' ) end [2025-02-14 11:35:22] Production.INFO: ProcessCDR(1,14473475,1,1,2) [2025-02-14 11:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473475', 'tblTempUsageDetail_20' ) start [2025-02-14 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473475', 'tblTempUsageDetail_20' ) end [2025-02-14 11:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:35:27] Production.INFO: ==15000== Releasing lock... [2025-02-14 11:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:35:27] Production.INFO: 60.5 MB #Memory Used# [2025-02-14 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:36:05 [end_date_ymd] => 2025-02-14 11:36:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:36:05' and `end` < '2025-02-14 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-02-14 11:36:23] Production.INFO: count ==4370 [2025-02-14 11:36:25] Production.ERROR: pbx CDR StartTime 2025-02-14 08:36:05 - End Time 2025-02-14 11:36:05 [2025-02-14 11:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473480', 'tblTempUsageDetail_20' ) start [2025-02-14 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473480', 'tblTempUsageDetail_20' ) end [2025-02-14 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473480', 'tblTempVendorCDR_20' ) start [2025-02-14 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473480', 'tblTempVendorCDR_20' ) end [2025-02-14 11:36:26] Production.INFO: ProcessCDR(1,14473480,1,1,2) [2025-02-14 11:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473480', 'tblTempUsageDetail_20' ) start [2025-02-14 11:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473480', 'tblTempUsageDetail_20' ) end [2025-02-14 11:36:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:36:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:36:31] Production.INFO: ==15079== Releasing lock... [2025-02-14 11:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:36:31] Production.INFO: 60.75 MB #Memory Used# [2025-02-14 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:37:06 [end_date_ymd] => 2025-02-14 11:37:06 [RateCDR] => 1 ) [2025-02-14 11: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-02-14 08:37:06' and `end` < '2025-02-14 11: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-02-14 11:37:26] Production.INFO: count ==4408 [2025-02-14 11:37:28] Production.ERROR: pbx CDR StartTime 2025-02-14 08:37:06 - End Time 2025-02-14 11:37:06 [2025-02-14 11:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473485', 'tblTempUsageDetail_20' ) start [2025-02-14 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473485', 'tblTempUsageDetail_20' ) end [2025-02-14 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473485', 'tblTempVendorCDR_20' ) start [2025-02-14 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473485', 'tblTempVendorCDR_20' ) end [2025-02-14 11:37:28] Production.INFO: ProcessCDR(1,14473485,1,1,2) [2025-02-14 11:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473485', 'tblTempUsageDetail_20' ) start [2025-02-14 11:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473485', 'tblTempUsageDetail_20' ) end [2025-02-14 11:37:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:37:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:37:34] Production.INFO: ==15156== Releasing lock... [2025-02-14 11:37:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:37:34] Production.INFO: 61 MB #Memory Used# [2025-02-14 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:38:05 [end_date_ymd] => 2025-02-14 11:38:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:38:05' and `end` < '2025-02-14 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-02-14 11:38:27] Production.INFO: count ==4449 [2025-02-14 11:38:29] Production.ERROR: pbx CDR StartTime 2025-02-14 08:38:05 - End Time 2025-02-14 11:38:05 [2025-02-14 11:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473490', 'tblTempUsageDetail_20' ) start [2025-02-14 11:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473490', 'tblTempUsageDetail_20' ) end [2025-02-14 11:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473490', 'tblTempVendorCDR_20' ) start [2025-02-14 11:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473490', 'tblTempVendorCDR_20' ) end [2025-02-14 11:38:30] Production.INFO: ProcessCDR(1,14473490,1,1,2) [2025-02-14 11:38:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:38:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:38:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:38:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473490', 'tblTempUsageDetail_20' ) start [2025-02-14 11:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473490', 'tblTempUsageDetail_20' ) end [2025-02-14 11:38:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:38:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:38:35] Production.INFO: ==15238== Releasing lock... [2025-02-14 11:38:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:38:35] Production.INFO: 61.25 MB #Memory Used# [2025-02-14 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:39:06 [end_date_ymd] => 2025-02-14 11:39:06 [RateCDR] => 1 ) [2025-02-14 11:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:39:06' and `end` < '2025-02-14 11:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:39:26] Production.INFO: count ==4508 [2025-02-14 11:39:28] Production.ERROR: pbx CDR StartTime 2025-02-14 08:39:06 - End Time 2025-02-14 11:39:06 [2025-02-14 11:39:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473495', 'tblTempUsageDetail_20' ) start [2025-02-14 11:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473495', 'tblTempUsageDetail_20' ) end [2025-02-14 11:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473495', 'tblTempVendorCDR_20' ) start [2025-02-14 11:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473495', 'tblTempVendorCDR_20' ) end [2025-02-14 11:39:28] Production.INFO: ProcessCDR(1,14473495,1,1,2) [2025-02-14 11:39:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:39:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:39:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:39:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473495', 'tblTempUsageDetail_20' ) start [2025-02-14 11:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473495', 'tblTempUsageDetail_20' ) end [2025-02-14 11:39:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:39:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:39:34] Production.INFO: ==15354== Releasing lock... [2025-02-14 11:39:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:39:34] Production.INFO: 61.75 MB #Memory Used# [2025-02-14 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:40:06 [end_date_ymd] => 2025-02-14 11:40:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:40:06' and `end` < '2025-02-14 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-02-14 11:40:25] Production.INFO: count ==4626 [2025-02-14 11:40:27] Production.ERROR: pbx CDR StartTime 2025-02-14 08:40:06 - End Time 2025-02-14 11:40:06 [2025-02-14 11:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473500', 'tblTempUsageDetail_20' ) start [2025-02-14 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473500', 'tblTempUsageDetail_20' ) end [2025-02-14 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473500', 'tblTempVendorCDR_20' ) start [2025-02-14 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473500', 'tblTempVendorCDR_20' ) end [2025-02-14 11:40:27] Production.INFO: ProcessCDR(1,14473500,1,1,2) [2025-02-14 11:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473500', 'tblTempUsageDetail_20' ) start [2025-02-14 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473500', 'tblTempUsageDetail_20' ) end [2025-02-14 11:40:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:40:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:40:32] Production.INFO: ==15433== Releasing lock... [2025-02-14 11:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:40:32] Production.INFO: 62.5 MB #Memory Used# [2025-02-14 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:41:06 [end_date_ymd] => 2025-02-14 11:41:06 [RateCDR] => 1 ) [2025-02-14 11: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-02-14 08:41:06' and `end` < '2025-02-14 11: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-02-14 11:41:34] Production.INFO: count ==4768 [2025-02-14 11:41:36] Production.ERROR: pbx CDR StartTime 2025-02-14 08:41:06 - End Time 2025-02-14 11:41:06 [2025-02-14 11:41:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:41:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473506', 'tblTempUsageDetail_20' ) start [2025-02-14 11:41:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473506', 'tblTempUsageDetail_20' ) end [2025-02-14 11:41:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473506', 'tblTempVendorCDR_20' ) start [2025-02-14 11:41:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473506', 'tblTempVendorCDR_20' ) end [2025-02-14 11:41:36] Production.INFO: ProcessCDR(1,14473506,1,1,2) [2025-02-14 11:41:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:41:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:41:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:41:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:41:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473506', 'tblTempUsageDetail_20' ) start [2025-02-14 11:41:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473506', 'tblTempUsageDetail_20' ) end [2025-02-14 11:41:42] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:41:42] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:41:42] Production.INFO: ==15512== Releasing lock... [2025-02-14 11:41:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:41:42] Production.INFO: 63.75 MB #Memory Used# [2025-02-14 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:42:05 [end_date_ymd] => 2025-02-14 11:42:05 [RateCDR] => 1 ) [2025-02-14 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:42:05' and `end` < '2025-02-14 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:42:26] Production.INFO: count ==4814 [2025-02-14 11:42:28] Production.ERROR: pbx CDR StartTime 2025-02-14 08:42:05 - End Time 2025-02-14 11:42:05 [2025-02-14 11:42:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473511', 'tblTempUsageDetail_20' ) start [2025-02-14 11:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473511', 'tblTempUsageDetail_20' ) end [2025-02-14 11:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473511', 'tblTempVendorCDR_20' ) start [2025-02-14 11:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473511', 'tblTempVendorCDR_20' ) end [2025-02-14 11:42:28] Production.INFO: ProcessCDR(1,14473511,1,1,2) [2025-02-14 11:42:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:42:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:42:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:42:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473511', 'tblTempUsageDetail_20' ) start [2025-02-14 11:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473511', 'tblTempUsageDetail_20' ) end [2025-02-14 11:42:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:42:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:42:33] Production.INFO: ==15598== Releasing lock... [2025-02-14 11:42:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:42:33] Production.INFO: 64 MB #Memory Used# [2025-02-14 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:43:06 [end_date_ymd] => 2025-02-14 11:43:06 [RateCDR] => 1 ) [2025-02-14 11:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:43:06' and `end` < '2025-02-14 11:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:43:27] Production.INFO: count ==4861 [2025-02-14 11:43:29] Production.ERROR: pbx CDR StartTime 2025-02-14 08:43:06 - End Time 2025-02-14 11:43:06 [2025-02-14 11:43:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473516', 'tblTempUsageDetail_20' ) start [2025-02-14 11:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473516', 'tblTempUsageDetail_20' ) end [2025-02-14 11:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473516', 'tblTempVendorCDR_20' ) start [2025-02-14 11:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473516', 'tblTempVendorCDR_20' ) end [2025-02-14 11:43:30] Production.INFO: ProcessCDR(1,14473516,1,1,2) [2025-02-14 11:43:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:43:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:43:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:43:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473516', 'tblTempUsageDetail_20' ) start [2025-02-14 11:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473516', 'tblTempUsageDetail_20' ) end [2025-02-14 11:43:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:43:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:43:35] Production.INFO: ==15675== Releasing lock... [2025-02-14 11:43:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:43:35] Production.INFO: 64.25 MB #Memory Used# [2025-02-14 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:44:05 [end_date_ymd] => 2025-02-14 11:44:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:44:05' and `end` < '2025-02-14 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-02-14 11:44:33] Production.INFO: count ==4920 [2025-02-14 11:44:35] Production.ERROR: pbx CDR StartTime 2025-02-14 08:44:05 - End Time 2025-02-14 11:44:05 [2025-02-14 11:44:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:44:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473521', 'tblTempUsageDetail_20' ) start [2025-02-14 11:44:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473521', 'tblTempUsageDetail_20' ) end [2025-02-14 11:44:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473521', 'tblTempVendorCDR_20' ) start [2025-02-14 11:44:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473521', 'tblTempVendorCDR_20' ) end [2025-02-14 11:44:35] Production.INFO: ProcessCDR(1,14473521,1,1,2) [2025-02-14 11:44:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:44:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:44:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:44:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:44:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473521', 'tblTempUsageDetail_20' ) start [2025-02-14 11:44:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473521', 'tblTempUsageDetail_20' ) end [2025-02-14 11:44:41] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:44:41] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:44:41] Production.INFO: ==15752== Releasing lock... [2025-02-14 11:44:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:44:41] Production.INFO: 64.75 MB #Memory Used# [2025-02-14 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:45:06 [end_date_ymd] => 2025-02-14 11:45:06 [RateCDR] => 1 ) [2025-02-14 11: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-02-14 08:45:06' and `end` < '2025-02-14 11: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-02-14 11:45:34] Production.INFO: count ==4963 [2025-02-14 11:45:37] Production.ERROR: pbx CDR StartTime 2025-02-14 08:45:06 - End Time 2025-02-14 11:45:06 [2025-02-14 11:45:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:45:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473526', 'tblTempUsageDetail_20' ) start [2025-02-14 11:45:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473526', 'tblTempUsageDetail_20' ) end [2025-02-14 11:45:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473526', 'tblTempVendorCDR_20' ) start [2025-02-14 11:45:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473526', 'tblTempVendorCDR_20' ) end [2025-02-14 11:45:37] Production.INFO: ProcessCDR(1,14473526,1,1,2) [2025-02-14 11:45:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:45:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:45:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:45:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:45:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473526', 'tblTempUsageDetail_20' ) start [2025-02-14 11:45:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473526', 'tblTempUsageDetail_20' ) end [2025-02-14 11:45:42] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:45:42] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:45:42] Production.INFO: ==15834== Releasing lock... [2025-02-14 11:45:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:45:42] Production.INFO: 65.25 MB #Memory Used# [2025-02-14 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:46:06 [end_date_ymd] => 2025-02-14 11:46:06 [RateCDR] => 1 ) [2025-02-14 11:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:46:06' and `end` < '2025-02-14 11:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:46:27] Production.INFO: count ==5182 [2025-02-14 11:46:30] Production.ERROR: pbx CDR StartTime 2025-02-14 08:46:06 - End Time 2025-02-14 11:46:06 [2025-02-14 11:46:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473531', 'tblTempUsageDetail_20' ) start [2025-02-14 11:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473531', 'tblTempUsageDetail_20' ) end [2025-02-14 11:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473531', 'tblTempVendorCDR_20' ) start [2025-02-14 11:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473531', 'tblTempVendorCDR_20' ) end [2025-02-14 11:46:30] Production.INFO: ProcessCDR(1,14473531,1,1,2) [2025-02-14 11:46:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:46:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:46:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:46:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473531', 'tblTempUsageDetail_20' ) start [2025-02-14 11:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473531', 'tblTempUsageDetail_20' ) end [2025-02-14 11:46:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:46:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:46:36] Production.INFO: ==15912== Releasing lock... [2025-02-14 11:46:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:46:36] Production.INFO: 66.75 MB #Memory Used# [2025-02-14 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:47:06 [end_date_ymd] => 2025-02-14 11:47:06 [RateCDR] => 1 ) [2025-02-14 11:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:47:06' and `end` < '2025-02-14 11:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:47:26] Production.INFO: count ==5192 [2025-02-14 11:47:28] Production.ERROR: pbx CDR StartTime 2025-02-14 08:47:06 - End Time 2025-02-14 11:47:06 [2025-02-14 11:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473536', 'tblTempUsageDetail_20' ) start [2025-02-14 11:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473536', 'tblTempUsageDetail_20' ) end [2025-02-14 11:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473536', 'tblTempVendorCDR_20' ) start [2025-02-14 11:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473536', 'tblTempVendorCDR_20' ) end [2025-02-14 11:47:29] Production.INFO: ProcessCDR(1,14473536,1,1,2) [2025-02-14 11:47:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:47:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473536', 'tblTempUsageDetail_20' ) start [2025-02-14 11:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473536', 'tblTempUsageDetail_20' ) end [2025-02-14 11:47:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:47:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:47:34] Production.INFO: ==15995== Releasing lock... [2025-02-14 11:47:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:47:34] Production.INFO: 66.75 MB #Memory Used# [2025-02-14 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:48:06 [end_date_ymd] => 2025-02-14 11:48:06 [RateCDR] => 1 ) [2025-02-14 11:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:48:06' and `end` < '2025-02-14 11:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:48:32] Production.INFO: count ==5249 [2025-02-14 11:48:34] Production.ERROR: pbx CDR StartTime 2025-02-14 08:48:06 - End Time 2025-02-14 11:48:06 [2025-02-14 11:48:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:48:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473541', 'tblTempUsageDetail_20' ) start [2025-02-14 11:48:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473541', 'tblTempUsageDetail_20' ) end [2025-02-14 11:48:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473541', 'tblTempVendorCDR_20' ) start [2025-02-14 11:48:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473541', 'tblTempVendorCDR_20' ) end [2025-02-14 11:48:35] Production.INFO: ProcessCDR(1,14473541,1,1,2) [2025-02-14 11:48:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:48:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:48:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:48:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:48:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473541', 'tblTempUsageDetail_20' ) start [2025-02-14 11:48:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473541', 'tblTempUsageDetail_20' ) end [2025-02-14 11:48:40] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:48:40] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:48:40] Production.INFO: ==16081== Releasing lock... [2025-02-14 11:48:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:48:40] Production.INFO: 67.25 MB #Memory Used# [2025-02-14 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:49:05 [end_date_ymd] => 2025-02-14 11:49:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:49:05' and `end` < '2025-02-14 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-02-14 11:49:28] Production.INFO: count ==5299 [2025-02-14 11:49:30] Production.ERROR: pbx CDR StartTime 2025-02-14 08:49:05 - End Time 2025-02-14 11:49:05 [2025-02-14 11:49:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:49:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473546', 'tblTempUsageDetail_20' ) start [2025-02-14 11:49:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473546', 'tblTempUsageDetail_20' ) end [2025-02-14 11:49:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473546', 'tblTempVendorCDR_20' ) start [2025-02-14 11:49:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473546', 'tblTempVendorCDR_20' ) end [2025-02-14 11:49:30] Production.INFO: ProcessCDR(1,14473546,1,1,2) [2025-02-14 11:49:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:49:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:49:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:49:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:49:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473546', 'tblTempUsageDetail_20' ) start [2025-02-14 11:49:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473546', 'tblTempUsageDetail_20' ) end [2025-02-14 11:49:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:49:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:49:36] Production.INFO: ==16172== Releasing lock... [2025-02-14 11:49:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:49:36] Production.INFO: 67.75 MB #Memory Used# [2025-02-14 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:50:06 [end_date_ymd] => 2025-02-14 11:50:06 [RateCDR] => 1 ) [2025-02-14 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:50:06' and `end` < '2025-02-14 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:50:26] Production.INFO: count ==5405 [2025-02-14 11:50:29] Production.ERROR: pbx CDR StartTime 2025-02-14 08:50:06 - End Time 2025-02-14 11:50:06 [2025-02-14 11:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473552', 'tblTempUsageDetail_20' ) start [2025-02-14 11:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473552', 'tblTempUsageDetail_20' ) end [2025-02-14 11:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473552', 'tblTempVendorCDR_20' ) start [2025-02-14 11:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473552', 'tblTempVendorCDR_20' ) end [2025-02-14 11:50:29] Production.INFO: ProcessCDR(1,14473552,1,1,2) [2025-02-14 11:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473552', 'tblTempUsageDetail_20' ) start [2025-02-14 11:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473552', 'tblTempUsageDetail_20' ) end [2025-02-14 11:50:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:50:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:50:35] Production.INFO: ==16258== Releasing lock... [2025-02-14 11:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:50:35] Production.INFO: 68.5 MB #Memory Used# [2025-02-14 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:51:05 [end_date_ymd] => 2025-02-14 11:51:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:51:05' and `end` < '2025-02-14 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-02-14 11:51:29] Production.INFO: count ==5462 [2025-02-14 11:51:32] Production.ERROR: pbx CDR StartTime 2025-02-14 08:51:05 - End Time 2025-02-14 11:51:05 [2025-02-14 11:51:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473557', 'tblTempUsageDetail_20' ) start [2025-02-14 11:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473557', 'tblTempUsageDetail_20' ) end [2025-02-14 11:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473557', 'tblTempVendorCDR_20' ) start [2025-02-14 11:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473557', 'tblTempVendorCDR_20' ) end [2025-02-14 11:51:32] Production.INFO: ProcessCDR(1,14473557,1,1,2) [2025-02-14 11:51:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:51:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:51:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:51:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473557', 'tblTempUsageDetail_20' ) start [2025-02-14 11:51:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473557', 'tblTempUsageDetail_20' ) end [2025-02-14 11:51:38] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:51:38] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:51:38] Production.INFO: ==16344== Releasing lock... [2025-02-14 11:51:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:51:38] Production.INFO: 68.75 MB #Memory Used# [2025-02-14 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:52:05 [end_date_ymd] => 2025-02-14 11:52:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:52:05' and `end` < '2025-02-14 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-02-14 11:52:24] Production.INFO: count ==5471 [2025-02-14 11:52:27] Production.ERROR: pbx CDR StartTime 2025-02-14 08:52:05 - End Time 2025-02-14 11:52:05 [2025-02-14 11:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473562', 'tblTempUsageDetail_20' ) start [2025-02-14 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473562', 'tblTempUsageDetail_20' ) end [2025-02-14 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473562', 'tblTempVendorCDR_20' ) start [2025-02-14 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473562', 'tblTempVendorCDR_20' ) end [2025-02-14 11:52:27] Production.INFO: ProcessCDR(1,14473562,1,1,2) [2025-02-14 11:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473562', 'tblTempUsageDetail_20' ) start [2025-02-14 11:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473562', 'tblTempUsageDetail_20' ) end [2025-02-14 11:52:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:52:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:52:33] Production.INFO: ==16425== Releasing lock... [2025-02-14 11:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:52:33] Production.INFO: 69 MB #Memory Used# [2025-02-14 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:53:05 [end_date_ymd] => 2025-02-14 11:53:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:53:05' and `end` < '2025-02-14 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-02-14 11:53:19] Production.INFO: count ==5481 [2025-02-14 11:53:22] Production.ERROR: pbx CDR StartTime 2025-02-14 08:53:05 - End Time 2025-02-14 11:53:05 [2025-02-14 11:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473567', 'tblTempUsageDetail_20' ) start [2025-02-14 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473567', 'tblTempUsageDetail_20' ) end [2025-02-14 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473567', 'tblTempVendorCDR_20' ) start [2025-02-14 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473567', 'tblTempVendorCDR_20' ) end [2025-02-14 11:53:22] Production.INFO: ProcessCDR(1,14473567,1,1,2) [2025-02-14 11:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473567', 'tblTempUsageDetail_20' ) start [2025-02-14 11:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473567', 'tblTempUsageDetail_20' ) end [2025-02-14 11:53:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:53:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:53:28] Production.INFO: ==16509== Releasing lock... [2025-02-14 11:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:53:28] Production.INFO: 69 MB #Memory Used# [2025-02-14 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:54:05 [end_date_ymd] => 2025-02-14 11:54:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:54:05' and `end` < '2025-02-14 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-02-14 11:54:21] Production.INFO: count ==5482 [2025-02-14 11:54:24] Production.ERROR: pbx CDR StartTime 2025-02-14 08:54:05 - End Time 2025-02-14 11:54:05 [2025-02-14 11:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473572', 'tblTempUsageDetail_20' ) start [2025-02-14 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473572', 'tblTempUsageDetail_20' ) end [2025-02-14 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473572', 'tblTempVendorCDR_20' ) start [2025-02-14 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473572', 'tblTempVendorCDR_20' ) end [2025-02-14 11:54:24] Production.INFO: ProcessCDR(1,14473572,1,1,2) [2025-02-14 11:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473572', 'tblTempUsageDetail_20' ) start [2025-02-14 11:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473572', 'tblTempUsageDetail_20' ) end [2025-02-14 11:54:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:54:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:54:29] Production.INFO: ==16592== Releasing lock... [2025-02-14 11:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:54:29] Production.INFO: 69 MB #Memory Used# [2025-02-14 11:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:55:06 [end_date_ymd] => 2025-02-14 11:55:06 [RateCDR] => 1 ) [2025-02-14 11: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-02-14 08:55:06' and `end` < '2025-02-14 11: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-02-14 11:55:20] Production.INFO: count ==5483 [2025-02-14 11:55:23] Production.ERROR: pbx CDR StartTime 2025-02-14 08:55:06 - End Time 2025-02-14 11:55:06 [2025-02-14 11:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473577', 'tblTempUsageDetail_20' ) start [2025-02-14 11:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473577', 'tblTempUsageDetail_20' ) end [2025-02-14 11:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473577', 'tblTempVendorCDR_20' ) start [2025-02-14 11:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473577', 'tblTempVendorCDR_20' ) end [2025-02-14 11:55:23] Production.INFO: ProcessCDR(1,14473577,1,1,2) [2025-02-14 11:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473577', 'tblTempUsageDetail_20' ) start [2025-02-14 11:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473577', 'tblTempUsageDetail_20' ) end [2025-02-14 11:55:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:55:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:55:29] Production.INFO: ==16717== Releasing lock... [2025-02-14 11:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:55:29] Production.INFO: 69 MB #Memory Used# [2025-02-14 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:56:05 [end_date_ymd] => 2025-02-14 11:56:05 [RateCDR] => 1 ) [2025-02-14 11:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:56:05' and `end` < '2025-02-14 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:56:23] Production.INFO: count ==5480 [2025-02-14 11:56:26] Production.ERROR: pbx CDR StartTime 2025-02-14 08:56:05 - End Time 2025-02-14 11:56:05 [2025-02-14 11:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473582', 'tblTempUsageDetail_20' ) start [2025-02-14 11:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473582', 'tblTempUsageDetail_20' ) end [2025-02-14 11:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473582', 'tblTempVendorCDR_20' ) start [2025-02-14 11:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473582', 'tblTempVendorCDR_20' ) end [2025-02-14 11:56:26] Production.INFO: ProcessCDR(1,14473582,1,1,2) [2025-02-14 11:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473582', 'tblTempUsageDetail_20' ) start [2025-02-14 11:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473582', 'tblTempUsageDetail_20' ) end [2025-02-14 11:56:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:56:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:56:32] Production.INFO: ==16802== Releasing lock... [2025-02-14 11:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:56:32] Production.INFO: 69 MB #Memory Used# [2025-02-14 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:57:05 [end_date_ymd] => 2025-02-14 11:57:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:57:05' and `end` < '2025-02-14 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-02-14 11:57:21] Production.INFO: count ==5476 [2025-02-14 11:57:24] Production.ERROR: pbx CDR StartTime 2025-02-14 08:57:05 - End Time 2025-02-14 11:57:05 [2025-02-14 11:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473587', 'tblTempUsageDetail_20' ) start [2025-02-14 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473587', 'tblTempUsageDetail_20' ) end [2025-02-14 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473587', 'tblTempVendorCDR_20' ) start [2025-02-14 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473587', 'tblTempVendorCDR_20' ) end [2025-02-14 11:57:24] Production.INFO: ProcessCDR(1,14473587,1,1,2) [2025-02-14 11:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473587', 'tblTempUsageDetail_20' ) start [2025-02-14 11:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473587', 'tblTempUsageDetail_20' ) end [2025-02-14 11:57:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:57:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:57:29] Production.INFO: ==16887== Releasing lock... [2025-02-14 11:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:57:29] Production.INFO: 69 MB #Memory Used# [2025-02-14 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:58:06 [end_date_ymd] => 2025-02-14 11:58:06 [RateCDR] => 1 ) [2025-02-14 11:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 08:58:06' and `end` < '2025-02-14 11:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 11:58:26] Production.INFO: count ==5476 [2025-02-14 11:58:29] Production.ERROR: pbx CDR StartTime 2025-02-14 08:58:06 - End Time 2025-02-14 11:58:06 [2025-02-14 11:58:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473592', 'tblTempUsageDetail_20' ) start [2025-02-14 11:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473592', 'tblTempUsageDetail_20' ) end [2025-02-14 11:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473592', 'tblTempVendorCDR_20' ) start [2025-02-14 11:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473592', 'tblTempVendorCDR_20' ) end [2025-02-14 11:58:29] Production.INFO: ProcessCDR(1,14473592,1,1,2) [2025-02-14 11:58:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:58:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:58:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:58:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473592', 'tblTempUsageDetail_20' ) start [2025-02-14 11:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473592', 'tblTempUsageDetail_20' ) end [2025-02-14 11:58:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:58:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:58:34] Production.INFO: ==16972== Releasing lock... [2025-02-14 11:58:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:58:34] Production.INFO: 69 MB #Memory Used# [2025-02-14 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 08:59:06 [end_date_ymd] => 2025-02-14 11:59:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 08:59:06' and `end` < '2025-02-14 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-02-14 11:59:23] Production.INFO: count ==5471 [2025-02-14 11:59:26] Production.ERROR: pbx CDR StartTime 2025-02-14 08:59:06 - End Time 2025-02-14 11:59:06 [2025-02-14 11:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 11:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473597', 'tblTempUsageDetail_20' ) start [2025-02-14 11:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473597', 'tblTempUsageDetail_20' ) end [2025-02-14 11:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473597', 'tblTempVendorCDR_20' ) start [2025-02-14 11:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473597', 'tblTempVendorCDR_20' ) end [2025-02-14 11:59:26] Production.INFO: ProcessCDR(1,14473597,1,1,2) [2025-02-14 11:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 11:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 11:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473597', 'tblTempUsageDetail_20' ) start [2025-02-14 11:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473597', 'tblTempUsageDetail_20' ) end [2025-02-14 11:59:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 11:59:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 11:59:31] Production.INFO: ==17068== Releasing lock... [2025-02-14 11:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 11:59:31] Production.INFO: 69 MB #Memory Used# [2025-02-14 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:00:06 [end_date_ymd] => 2025-02-14 12:00:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:00:06' and `end` < '2025-02-14 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-02-14 12:00:20] Production.INFO: count ==5461 [2025-02-14 12:00:23] Production.ERROR: pbx CDR StartTime 2025-02-14 09:00:06 - End Time 2025-02-14 12:00:06 [2025-02-14 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473603', 'tblTempUsageDetail_20' ) start [2025-02-14 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473603', 'tblTempUsageDetail_20' ) end [2025-02-14 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473603', 'tblTempVendorCDR_20' ) start [2025-02-14 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473603', 'tblTempVendorCDR_20' ) end [2025-02-14 12:00:23] Production.INFO: ProcessCDR(1,14473603,1,1,2) [2025-02-14 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473603', 'tblTempUsageDetail_20' ) start [2025-02-14 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473603', 'tblTempUsageDetail_20' ) end [2025-02-14 12:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:00:29] Production.INFO: ==17154== Releasing lock... [2025-02-14 12:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:00:29] Production.INFO: 68.75 MB #Memory Used# [2025-02-14 12:01:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:01:07 [end_date_ymd] => 2025-02-14 12:01:07 [RateCDR] => 1 ) [2025-02-14 12:01: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-02-14 09:01:07' and `end` < '2025-02-14 12:01: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-02-14 12:01:21] Production.INFO: count ==5445 [2025-02-14 12:01:23] Production.ERROR: pbx CDR StartTime 2025-02-14 09:01:07 - End Time 2025-02-14 12:01:07 [2025-02-14 12:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473608', 'tblTempUsageDetail_20' ) start [2025-02-14 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473608', 'tblTempUsageDetail_20' ) end [2025-02-14 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473608', 'tblTempVendorCDR_20' ) start [2025-02-14 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473608', 'tblTempVendorCDR_20' ) end [2025-02-14 12:01:24] Production.INFO: ProcessCDR(1,14473608,1,1,2) [2025-02-14 12:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473608', 'tblTempUsageDetail_20' ) start [2025-02-14 12:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473608', 'tblTempUsageDetail_20' ) end [2025-02-14 12:01:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:01:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:01:29] Production.INFO: ==17254== Releasing lock... [2025-02-14 12:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:01:29] Production.INFO: 68.75 MB #Memory Used# [2025-02-14 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:02:06 [end_date_ymd] => 2025-02-14 12:02:06 [RateCDR] => 1 ) [2025-02-14 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:02:06' and `end` < '2025-02-14 12:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:02:20] Production.INFO: count ==5431 [2025-02-14 12:02:23] Production.ERROR: pbx CDR StartTime 2025-02-14 09:02:06 - End Time 2025-02-14 12:02:06 [2025-02-14 12:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473613', 'tblTempUsageDetail_20' ) start [2025-02-14 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473613', 'tblTempUsageDetail_20' ) end [2025-02-14 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473613', 'tblTempVendorCDR_20' ) start [2025-02-14 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473613', 'tblTempVendorCDR_20' ) end [2025-02-14 12:02:23] Production.INFO: ProcessCDR(1,14473613,1,1,2) [2025-02-14 12:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473613', 'tblTempUsageDetail_20' ) start [2025-02-14 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473613', 'tblTempUsageDetail_20' ) end [2025-02-14 12:02:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:02:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:02:28] Production.INFO: ==17342== Releasing lock... [2025-02-14 12:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:02:28] Production.INFO: 68.75 MB #Memory Used# [2025-02-14 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:03:05 [end_date_ymd] => 2025-02-14 12:03:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:03:05' and `end` < '2025-02-14 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-02-14 12:03:30] Production.INFO: count ==5418 [2025-02-14 12:03:33] Production.ERROR: pbx CDR StartTime 2025-02-14 09:03:05 - End Time 2025-02-14 12:03:05 [2025-02-14 12:03:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473618', 'tblTempUsageDetail_20' ) start [2025-02-14 12:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473618', 'tblTempUsageDetail_20' ) end [2025-02-14 12:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473618', 'tblTempVendorCDR_20' ) start [2025-02-14 12:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473618', 'tblTempVendorCDR_20' ) end [2025-02-14 12:03:34] Production.INFO: ProcessCDR(1,14473618,1,1,2) [2025-02-14 12:03:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:03:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:03:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:03:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473618', 'tblTempUsageDetail_20' ) start [2025-02-14 12:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473618', 'tblTempUsageDetail_20' ) end [2025-02-14 12:03:39] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:03:39] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:03:39] Production.INFO: ==17422== Releasing lock... [2025-02-14 12:03:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:03:39] Production.INFO: 68.5 MB #Memory Used# [2025-02-14 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:04:05 [end_date_ymd] => 2025-02-14 12:04:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:04:05' and `end` < '2025-02-14 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-02-14 12:04:30] Production.INFO: count ==5407 [2025-02-14 12:04:33] Production.ERROR: pbx CDR StartTime 2025-02-14 09:04:05 - End Time 2025-02-14 12:04:05 [2025-02-14 12:04:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473623', 'tblTempUsageDetail_20' ) start [2025-02-14 12:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473623', 'tblTempUsageDetail_20' ) end [2025-02-14 12:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473623', 'tblTempVendorCDR_20' ) start [2025-02-14 12:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473623', 'tblTempVendorCDR_20' ) end [2025-02-14 12:04:33] Production.INFO: ProcessCDR(1,14473623,1,1,2) [2025-02-14 12:04:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:04:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:04:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:04:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473623', 'tblTempUsageDetail_20' ) start [2025-02-14 12:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473623', 'tblTempUsageDetail_20' ) end [2025-02-14 12:04:39] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:04:39] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:04:39] Production.INFO: ==17510== Releasing lock... [2025-02-14 12:04:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:04:39] Production.INFO: 68.5 MB #Memory Used# [2025-02-14 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:05:06 [end_date_ymd] => 2025-02-14 12:05:06 [RateCDR] => 1 ) [2025-02-14 12:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:05:06' and `end` < '2025-02-14 12:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:05:33] Production.INFO: count ==5387 [2025-02-14 12:05:36] Production.ERROR: pbx CDR StartTime 2025-02-14 09:05:06 - End Time 2025-02-14 12:05:06 [2025-02-14 12:05:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473628', 'tblTempUsageDetail_20' ) start [2025-02-14 12:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473628', 'tblTempUsageDetail_20' ) end [2025-02-14 12:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473628', 'tblTempVendorCDR_20' ) start [2025-02-14 12:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473628', 'tblTempVendorCDR_20' ) end [2025-02-14 12:05:36] Production.INFO: ProcessCDR(1,14473628,1,1,2) [2025-02-14 12:05:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:05:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:05:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:05:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:05:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473628', 'tblTempUsageDetail_20' ) start [2025-02-14 12:05:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473628', 'tblTempUsageDetail_20' ) end [2025-02-14 12:05:41] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:05:41] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:05:41] Production.INFO: ==17596== Releasing lock... [2025-02-14 12:05:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:05:41] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:06:05 [end_date_ymd] => 2025-02-14 12:06:05 [RateCDR] => 1 ) [2025-02-14 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:06:05' and `end` < '2025-02-14 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:06:25] Production.INFO: count ==5383 [2025-02-14 12:06:28] Production.ERROR: pbx CDR StartTime 2025-02-14 09:06:05 - End Time 2025-02-14 12:06:05 [2025-02-14 12:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473633', 'tblTempUsageDetail_20' ) start [2025-02-14 12:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473633', 'tblTempUsageDetail_20' ) end [2025-02-14 12:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473633', 'tblTempVendorCDR_20' ) start [2025-02-14 12:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473633', 'tblTempVendorCDR_20' ) end [2025-02-14 12:06:28] Production.INFO: ProcessCDR(1,14473633,1,1,2) [2025-02-14 12:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473633', 'tblTempUsageDetail_20' ) start [2025-02-14 12:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473633', 'tblTempUsageDetail_20' ) end [2025-02-14 12:06:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:06:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:06:33] Production.INFO: ==17678== Releasing lock... [2025-02-14 12:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:06:33] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:07:06 [end_date_ymd] => 2025-02-14 12:07:06 [RateCDR] => 1 ) [2025-02-14 12:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:07:06' and `end` < '2025-02-14 12:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:07:21] Production.INFO: count ==5375 [2025-02-14 12:07:24] Production.ERROR: pbx CDR StartTime 2025-02-14 09:07:06 - End Time 2025-02-14 12:07:06 [2025-02-14 12:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473638', 'tblTempUsageDetail_20' ) start [2025-02-14 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473638', 'tblTempUsageDetail_20' ) end [2025-02-14 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473638', 'tblTempVendorCDR_20' ) start [2025-02-14 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473638', 'tblTempVendorCDR_20' ) end [2025-02-14 12:07:24] Production.INFO: ProcessCDR(1,14473638,1,1,2) [2025-02-14 12:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473638', 'tblTempUsageDetail_20' ) start [2025-02-14 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473638', 'tblTempUsageDetail_20' ) end [2025-02-14 12:07:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:07:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:07:30] Production.INFO: ==17763== Releasing lock... [2025-02-14 12:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:07:30] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:08:05 [end_date_ymd] => 2025-02-14 12:08:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:08:05' and `end` < '2025-02-14 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-02-14 12:08:26] Production.INFO: count ==5380 [2025-02-14 12:08:28] Production.ERROR: pbx CDR StartTime 2025-02-14 09:08:05 - End Time 2025-02-14 12:08:05 [2025-02-14 12:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473643', 'tblTempUsageDetail_20' ) start [2025-02-14 12:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473643', 'tblTempUsageDetail_20' ) end [2025-02-14 12:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473643', 'tblTempVendorCDR_20' ) start [2025-02-14 12:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473643', 'tblTempVendorCDR_20' ) end [2025-02-14 12:08:29] Production.INFO: ProcessCDR(1,14473643,1,1,2) [2025-02-14 12:08:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:08:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:08:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:08:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473643', 'tblTempUsageDetail_20' ) start [2025-02-14 12:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473643', 'tblTempUsageDetail_20' ) end [2025-02-14 12:08:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:08:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:08:34] Production.INFO: ==17852== Releasing lock... [2025-02-14 12:08:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:08:34] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:09:06 [end_date_ymd] => 2025-02-14 12:09:06 [RateCDR] => 1 ) [2025-02-14 12:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:09:06' and `end` < '2025-02-14 12:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:09:25] Production.INFO: count ==5385 [2025-02-14 12:09:27] Production.ERROR: pbx CDR StartTime 2025-02-14 09:09:06 - End Time 2025-02-14 12:09:06 [2025-02-14 12:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473648', 'tblTempUsageDetail_20' ) start [2025-02-14 12:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473648', 'tblTempUsageDetail_20' ) end [2025-02-14 12:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473648', 'tblTempVendorCDR_20' ) start [2025-02-14 12:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473648', 'tblTempVendorCDR_20' ) end [2025-02-14 12:09:28] Production.INFO: ProcessCDR(1,14473648,1,1,2) [2025-02-14 12:09:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:09:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:09:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:09:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473648', 'tblTempUsageDetail_20' ) start [2025-02-14 12:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473648', 'tblTempUsageDetail_20' ) end [2025-02-14 12:09:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:09:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:09:33] Production.INFO: ==17942== Releasing lock... [2025-02-14 12:09:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:09:33] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:10:06 [end_date_ymd] => 2025-02-14 12:10:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:10:06' and `end` < '2025-02-14 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-02-14 12:10:28] Production.INFO: count ==5386 [2025-02-14 12:10:31] Production.ERROR: pbx CDR StartTime 2025-02-14 09:10:06 - End Time 2025-02-14 12:10:06 [2025-02-14 12:10:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473654', 'tblTempUsageDetail_20' ) start [2025-02-14 12:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473654', 'tblTempUsageDetail_20' ) end [2025-02-14 12:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473654', 'tblTempVendorCDR_20' ) start [2025-02-14 12:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473654', 'tblTempVendorCDR_20' ) end [2025-02-14 12:10:31] Production.INFO: ProcessCDR(1,14473654,1,1,2) [2025-02-14 12:10:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:10:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:10:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:10:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473654', 'tblTempUsageDetail_20' ) start [2025-02-14 12:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473654', 'tblTempUsageDetail_20' ) end [2025-02-14 12:10:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:10:37] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:10:37] Production.INFO: ==18063== Releasing lock... [2025-02-14 12:10:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:10:37] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:11:06 [end_date_ymd] => 2025-02-14 12:11:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:11:06' and `end` < '2025-02-14 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-02-14 12:11:20] Production.INFO: count ==5429 [2025-02-14 12:11:23] Production.ERROR: pbx CDR StartTime 2025-02-14 09:11:06 - End Time 2025-02-14 12:11:06 [2025-02-14 12:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473659', 'tblTempUsageDetail_20' ) start [2025-02-14 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473659', 'tblTempUsageDetail_20' ) end [2025-02-14 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473659', 'tblTempVendorCDR_20' ) start [2025-02-14 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473659', 'tblTempVendorCDR_20' ) end [2025-02-14 12:11:23] Production.INFO: ProcessCDR(1,14473659,1,1,2) [2025-02-14 12:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473659', 'tblTempUsageDetail_20' ) start [2025-02-14 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473659', 'tblTempUsageDetail_20' ) end [2025-02-14 12:11:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:11:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:11:28] Production.INFO: ==18153== Releasing lock... [2025-02-14 12:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:11:28] Production.INFO: 68.75 MB #Memory Used# [2025-02-14 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:12:06 [end_date_ymd] => 2025-02-14 12:12:06 [RateCDR] => 1 ) [2025-02-14 12:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:12:06' and `end` < '2025-02-14 12:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:12:23] Production.INFO: count ==5401 [2025-02-14 12:12:26] Production.ERROR: pbx CDR StartTime 2025-02-14 09:12:06 - End Time 2025-02-14 12:12:06 [2025-02-14 12:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473664', 'tblTempUsageDetail_20' ) start [2025-02-14 12:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473664', 'tblTempUsageDetail_20' ) end [2025-02-14 12:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473664', 'tblTempVendorCDR_20' ) start [2025-02-14 12:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473664', 'tblTempVendorCDR_20' ) end [2025-02-14 12:12:26] Production.INFO: ProcessCDR(1,14473664,1,1,2) [2025-02-14 12:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473664', 'tblTempUsageDetail_20' ) start [2025-02-14 12:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473664', 'tblTempUsageDetail_20' ) end [2025-02-14 12:12:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:12:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:12:32] Production.INFO: ==18240== Releasing lock... [2025-02-14 12:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:12:32] Production.INFO: 68.5 MB #Memory Used# [2025-02-14 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:13:06 [end_date_ymd] => 2025-02-14 12:13:06 [RateCDR] => 1 ) [2025-02-14 12:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:13:06' and `end` < '2025-02-14 12:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:13:20] Production.INFO: count ==5391 [2025-02-14 12:13:23] Production.ERROR: pbx CDR StartTime 2025-02-14 09:13:06 - End Time 2025-02-14 12:13:06 [2025-02-14 12:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473669', 'tblTempUsageDetail_20' ) start [2025-02-14 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473669', 'tblTempUsageDetail_20' ) end [2025-02-14 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473669', 'tblTempVendorCDR_20' ) start [2025-02-14 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473669', 'tblTempVendorCDR_20' ) end [2025-02-14 12:13:23] Production.INFO: ProcessCDR(1,14473669,1,1,2) [2025-02-14 12:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473669', 'tblTempUsageDetail_20' ) start [2025-02-14 12:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473669', 'tblTempUsageDetail_20' ) end [2025-02-14 12:13:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:13:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:13:28] Production.INFO: ==18322== Releasing lock... [2025-02-14 12:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:13:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:14:06 [end_date_ymd] => 2025-02-14 12:14:06 [RateCDR] => 1 ) [2025-02-14 12:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:14:06' and `end` < '2025-02-14 12:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:14:24] Production.INFO: count ==5361 [2025-02-14 12:14:27] Production.ERROR: pbx CDR StartTime 2025-02-14 09:14:06 - End Time 2025-02-14 12:14:06 [2025-02-14 12:14:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473674', 'tblTempUsageDetail_20' ) start [2025-02-14 12:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473674', 'tblTempUsageDetail_20' ) end [2025-02-14 12:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473674', 'tblTempVendorCDR_20' ) start [2025-02-14 12:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473674', 'tblTempVendorCDR_20' ) end [2025-02-14 12:14:27] Production.INFO: ProcessCDR(1,14473674,1,1,2) [2025-02-14 12:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473674', 'tblTempUsageDetail_20' ) start [2025-02-14 12:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473674', 'tblTempUsageDetail_20' ) end [2025-02-14 12:14:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:14:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:14:32] Production.INFO: ==18409== Releasing lock... [2025-02-14 12:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:14:32] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:15:06 [end_date_ymd] => 2025-02-14 12:15:06 [RateCDR] => 1 ) [2025-02-14 12:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:15:06' and `end` < '2025-02-14 12:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:15:28] Production.INFO: count ==5357 [2025-02-14 12:15:30] Production.ERROR: pbx CDR StartTime 2025-02-14 09:15:06 - End Time 2025-02-14 12:15:06 [2025-02-14 12:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473679', 'tblTempUsageDetail_20' ) start [2025-02-14 12:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473679', 'tblTempUsageDetail_20' ) end [2025-02-14 12:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473679', 'tblTempVendorCDR_20' ) start [2025-02-14 12:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473679', 'tblTempVendorCDR_20' ) end [2025-02-14 12:15:31] Production.INFO: ProcessCDR(1,14473679,1,1,2) [2025-02-14 12:15:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:15:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473679', 'tblTempUsageDetail_20' ) start [2025-02-14 12:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473679', 'tblTempUsageDetail_20' ) end [2025-02-14 12:15:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:15:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:15:36] Production.INFO: ==18494== Releasing lock... [2025-02-14 12:15:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:15:36] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:16:05 [end_date_ymd] => 2025-02-14 12:16:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:16:05' and `end` < '2025-02-14 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-02-14 12:16:21] Production.INFO: count ==5347 [2025-02-14 12:16:24] Production.ERROR: pbx CDR StartTime 2025-02-14 09:16:05 - End Time 2025-02-14 12:16:05 [2025-02-14 12:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473684', 'tblTempUsageDetail_20' ) start [2025-02-14 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473684', 'tblTempUsageDetail_20' ) end [2025-02-14 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473684', 'tblTempVendorCDR_20' ) start [2025-02-14 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473684', 'tblTempVendorCDR_20' ) end [2025-02-14 12:16:24] Production.INFO: ProcessCDR(1,14473684,1,1,2) [2025-02-14 12:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473684', 'tblTempUsageDetail_20' ) start [2025-02-14 12:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473684', 'tblTempUsageDetail_20' ) end [2025-02-14 12:16:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:16:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:16:29] Production.INFO: ==18570== Releasing lock... [2025-02-14 12:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:16:29] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:17:06 [end_date_ymd] => 2025-02-14 12:17:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:17:06' and `end` < '2025-02-14 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-02-14 12:17:25] Production.INFO: count ==5343 [2025-02-14 12:17:28] Production.ERROR: pbx CDR StartTime 2025-02-14 09:17:06 - End Time 2025-02-14 12:17:06 [2025-02-14 12:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473689', 'tblTempUsageDetail_20' ) start [2025-02-14 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473689', 'tblTempUsageDetail_20' ) end [2025-02-14 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473689', 'tblTempVendorCDR_20' ) start [2025-02-14 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473689', 'tblTempVendorCDR_20' ) end [2025-02-14 12:17:28] Production.INFO: ProcessCDR(1,14473689,1,1,2) [2025-02-14 12:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473689', 'tblTempUsageDetail_20' ) start [2025-02-14 12:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473689', 'tblTempUsageDetail_20' ) end [2025-02-14 12:17:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:17:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:17:34] Production.INFO: ==18652== Releasing lock... [2025-02-14 12:17:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:17:34] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:18:05 [end_date_ymd] => 2025-02-14 12:18:05 [RateCDR] => 1 ) [2025-02-14 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:18:05' and `end` < '2025-02-14 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:18:23] Production.INFO: count ==5330 [2025-02-14 12:18:26] Production.ERROR: pbx CDR StartTime 2025-02-14 09:18:05 - End Time 2025-02-14 12:18:05 [2025-02-14 12:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473694', 'tblTempUsageDetail_20' ) start [2025-02-14 12:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473694', 'tblTempUsageDetail_20' ) end [2025-02-14 12:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473694', 'tblTempVendorCDR_20' ) start [2025-02-14 12:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473694', 'tblTempVendorCDR_20' ) end [2025-02-14 12:18:26] Production.INFO: ProcessCDR(1,14473694,1,1,2) [2025-02-14 12:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:18:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:18:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473694', 'tblTempUsageDetail_20' ) start [2025-02-14 12:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473694', 'tblTempUsageDetail_20' ) end [2025-02-14 12:18:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:18:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:18:31] Production.INFO: ==18746== Releasing lock... [2025-02-14 12:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:18:31] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:19:05 [end_date_ymd] => 2025-02-14 12:19:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:19:05' and `end` < '2025-02-14 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-02-14 12:19:20] Production.INFO: count ==5330 [2025-02-14 12:19:22] Production.ERROR: pbx CDR StartTime 2025-02-14 09:19:05 - End Time 2025-02-14 12:19:05 [2025-02-14 12:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473699', 'tblTempUsageDetail_20' ) start [2025-02-14 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473699', 'tblTempUsageDetail_20' ) end [2025-02-14 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473699', 'tblTempVendorCDR_20' ) start [2025-02-14 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473699', 'tblTempVendorCDR_20' ) end [2025-02-14 12:19:23] Production.INFO: ProcessCDR(1,14473699,1,1,2) [2025-02-14 12:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473699', 'tblTempUsageDetail_20' ) start [2025-02-14 12:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473699', 'tblTempUsageDetail_20' ) end [2025-02-14 12:19:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:19:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:19:28] Production.INFO: ==18831== Releasing lock... [2025-02-14 12:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:19:28] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:20:05 [end_date_ymd] => 2025-02-14 12:20:05 [RateCDR] => 1 ) [2025-02-14 12:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:20:05' and `end` < '2025-02-14 12:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:20:25] Production.INFO: count ==5338 [2025-02-14 12:20:27] Production.ERROR: pbx CDR StartTime 2025-02-14 09:20:05 - End Time 2025-02-14 12:20:05 [2025-02-14 12:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473704', 'tblTempUsageDetail_20' ) start [2025-02-14 12:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473704', 'tblTempUsageDetail_20' ) end [2025-02-14 12:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473704', 'tblTempVendorCDR_20' ) start [2025-02-14 12:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473704', 'tblTempVendorCDR_20' ) end [2025-02-14 12:20:28] Production.INFO: ProcessCDR(1,14473704,1,1,2) [2025-02-14 12:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:20:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473704', 'tblTempUsageDetail_20' ) start [2025-02-14 12:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473704', 'tblTempUsageDetail_20' ) end [2025-02-14 12:20:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:20:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:20:33] Production.INFO: ==18908== Releasing lock... [2025-02-14 12:20:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:20:33] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:21:05 [end_date_ymd] => 2025-02-14 12:21:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:21:05' and `end` < '2025-02-14 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-02-14 12:21:19] Production.INFO: count ==5389 [2025-02-14 12:21:22] Production.ERROR: pbx CDR StartTime 2025-02-14 09:21:05 - End Time 2025-02-14 12:21:05 [2025-02-14 12:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473710', 'tblTempUsageDetail_20' ) start [2025-02-14 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473710', 'tblTempUsageDetail_20' ) end [2025-02-14 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473710', 'tblTempVendorCDR_20' ) start [2025-02-14 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473710', 'tblTempVendorCDR_20' ) end [2025-02-14 12:21:22] Production.INFO: ProcessCDR(1,14473710,1,1,2) [2025-02-14 12:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473710', 'tblTempUsageDetail_20' ) start [2025-02-14 12:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473710', 'tblTempUsageDetail_20' ) end [2025-02-14 12:21:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:21:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:21:28] Production.INFO: ==18989== Releasing lock... [2025-02-14 12:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:21:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:22:05 [end_date_ymd] => 2025-02-14 12:22:05 [RateCDR] => 1 ) [2025-02-14 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:22:05' and `end` < '2025-02-14 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:22:19] Production.INFO: count ==5364 [2025-02-14 12:22:22] Production.ERROR: pbx CDR StartTime 2025-02-14 09:22:05 - End Time 2025-02-14 12:22:05 [2025-02-14 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473715', 'tblTempUsageDetail_20' ) start [2025-02-14 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473715', 'tblTempUsageDetail_20' ) end [2025-02-14 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473715', 'tblTempVendorCDR_20' ) start [2025-02-14 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473715', 'tblTempVendorCDR_20' ) end [2025-02-14 12:22:22] Production.INFO: ProcessCDR(1,14473715,1,1,2) [2025-02-14 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473715', 'tblTempUsageDetail_20' ) start [2025-02-14 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473715', 'tblTempUsageDetail_20' ) end [2025-02-14 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:22:27] Production.INFO: ==19070== Releasing lock... [2025-02-14 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:22:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 12:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:23:06 [end_date_ymd] => 2025-02-14 12:23:06 [RateCDR] => 1 ) [2025-02-14 12:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:23:06' and `end` < '2025-02-14 12:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:23:20] Production.INFO: count ==5340 [2025-02-14 12:23:22] Production.ERROR: pbx CDR StartTime 2025-02-14 09:23:06 - End Time 2025-02-14 12:23:06 [2025-02-14 12:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473720', 'tblTempUsageDetail_20' ) start [2025-02-14 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473720', 'tblTempUsageDetail_20' ) end [2025-02-14 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473720', 'tblTempVendorCDR_20' ) start [2025-02-14 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473720', 'tblTempVendorCDR_20' ) end [2025-02-14 12:23:23] Production.INFO: ProcessCDR(1,14473720,1,1,2) [2025-02-14 12:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473720', 'tblTempUsageDetail_20' ) start [2025-02-14 12:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473720', 'tblTempUsageDetail_20' ) end [2025-02-14 12:23:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:23:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:23:28] Production.INFO: ==19158== Releasing lock... [2025-02-14 12:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:23:28] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:24:06 [end_date_ymd] => 2025-02-14 12:24:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:24:06' and `end` < '2025-02-14 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-02-14 12:24:20] Production.INFO: count ==5338 [2025-02-14 12:24:23] Production.ERROR: pbx CDR StartTime 2025-02-14 09:24:06 - End Time 2025-02-14 12:24:06 [2025-02-14 12:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473725', 'tblTempUsageDetail_20' ) start [2025-02-14 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473725', 'tblTempUsageDetail_20' ) end [2025-02-14 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473725', 'tblTempVendorCDR_20' ) start [2025-02-14 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473725', 'tblTempVendorCDR_20' ) end [2025-02-14 12:24:23] Production.INFO: ProcessCDR(1,14473725,1,1,2) [2025-02-14 12:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473725', 'tblTempUsageDetail_20' ) start [2025-02-14 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473725', 'tblTempUsageDetail_20' ) end [2025-02-14 12:24:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:24:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:24:29] Production.INFO: ==19237== Releasing lock... [2025-02-14 12:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:24:29] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:25:06 [end_date_ymd] => 2025-02-14 12:25:06 [RateCDR] => 1 ) [2025-02-14 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:25:06' and `end` < '2025-02-14 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:25:21] Production.INFO: count ==5356 [2025-02-14 12:25:24] Production.ERROR: pbx CDR StartTime 2025-02-14 09:25:06 - End Time 2025-02-14 12:25:06 [2025-02-14 12:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473730', 'tblTempUsageDetail_20' ) start [2025-02-14 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473730', 'tblTempUsageDetail_20' ) end [2025-02-14 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473730', 'tblTempVendorCDR_20' ) start [2025-02-14 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473730', 'tblTempVendorCDR_20' ) end [2025-02-14 12:25:24] Production.INFO: ProcessCDR(1,14473730,1,1,2) [2025-02-14 12:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473730', 'tblTempUsageDetail_20' ) start [2025-02-14 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473730', 'tblTempUsageDetail_20' ) end [2025-02-14 12:25:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:25:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:25:30] Production.INFO: ==19348== Releasing lock... [2025-02-14 12:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:25:30] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:26:05 [end_date_ymd] => 2025-02-14 12:26:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:26:05' and `end` < '2025-02-14 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-02-14 12:26:19] Production.INFO: count ==5363 [2025-02-14 12:26:22] Production.ERROR: pbx CDR StartTime 2025-02-14 09:26:05 - End Time 2025-02-14 12:26:05 [2025-02-14 12:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473735', 'tblTempUsageDetail_20' ) start [2025-02-14 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473735', 'tblTempUsageDetail_20' ) end [2025-02-14 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473735', 'tblTempVendorCDR_20' ) start [2025-02-14 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473735', 'tblTempVendorCDR_20' ) end [2025-02-14 12:26:22] Production.INFO: ProcessCDR(1,14473735,1,1,2) [2025-02-14 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473735', 'tblTempUsageDetail_20' ) start [2025-02-14 12:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473735', 'tblTempUsageDetail_20' ) end [2025-02-14 12:26:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:26:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:26:28] Production.INFO: ==19431== Releasing lock... [2025-02-14 12:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:26:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:27:06 [end_date_ymd] => 2025-02-14 12:27:06 [RateCDR] => 1 ) [2025-02-14 12: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-02-14 09:27:06' and `end` < '2025-02-14 12: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-02-14 12:27:24] Production.INFO: count ==5337 [2025-02-14 12:27:26] Production.ERROR: pbx CDR StartTime 2025-02-14 09:27:06 - End Time 2025-02-14 12:27:06 [2025-02-14 12:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473740', 'tblTempUsageDetail_20' ) start [2025-02-14 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473740', 'tblTempUsageDetail_20' ) end [2025-02-14 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473740', 'tblTempVendorCDR_20' ) start [2025-02-14 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473740', 'tblTempVendorCDR_20' ) end [2025-02-14 12:27:27] Production.INFO: ProcessCDR(1,14473740,1,1,2) [2025-02-14 12:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473740', 'tblTempUsageDetail_20' ) start [2025-02-14 12:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473740', 'tblTempUsageDetail_20' ) end [2025-02-14 12:27:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:27:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:27:32] Production.INFO: ==19509== Releasing lock... [2025-02-14 12:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:27:32] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:28:06 [end_date_ymd] => 2025-02-14 12:28:06 [RateCDR] => 1 ) [2025-02-14 12:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:28:06' and `end` < '2025-02-14 12:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:28:33] Production.INFO: count ==5345 [2025-02-14 12:28:36] Production.ERROR: pbx CDR StartTime 2025-02-14 09:28:06 - End Time 2025-02-14 12:28:06 [2025-02-14 12:28:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473745', 'tblTempUsageDetail_20' ) start [2025-02-14 12:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473745', 'tblTempUsageDetail_20' ) end [2025-02-14 12:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473745', 'tblTempVendorCDR_20' ) start [2025-02-14 12:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473745', 'tblTempVendorCDR_20' ) end [2025-02-14 12:28:36] Production.INFO: ProcessCDR(1,14473745,1,1,2) [2025-02-14 12:28:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:28:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:28:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:28:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:28:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473745', 'tblTempUsageDetail_20' ) start [2025-02-14 12:28:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473745', 'tblTempUsageDetail_20' ) end [2025-02-14 12:28:42] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:28:42] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:28:42] Production.INFO: ==19590== Releasing lock... [2025-02-14 12:28:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:28:42] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:29:06 [end_date_ymd] => 2025-02-14 12:29:06 [RateCDR] => 1 ) [2025-02-14 12:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:29:06' and `end` < '2025-02-14 12:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:29:25] Production.INFO: count ==5354 [2025-02-14 12:29:28] Production.ERROR: pbx CDR StartTime 2025-02-14 09:29:06 - End Time 2025-02-14 12:29:06 [2025-02-14 12:29:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473750', 'tblTempUsageDetail_20' ) start [2025-02-14 12:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473750', 'tblTempUsageDetail_20' ) end [2025-02-14 12:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473750', 'tblTempVendorCDR_20' ) start [2025-02-14 12:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473750', 'tblTempVendorCDR_20' ) end [2025-02-14 12:29:28] Production.INFO: ProcessCDR(1,14473750,1,1,2) [2025-02-14 12:29:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:29:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:29:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:29:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473750', 'tblTempUsageDetail_20' ) start [2025-02-14 12:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473750', 'tblTempUsageDetail_20' ) end [2025-02-14 12:29:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:29:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:29:34] Production.INFO: ==19668== Releasing lock... [2025-02-14 12:29:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:29:34] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:30:06 [end_date_ymd] => 2025-02-14 12:30:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:30:06' and `end` < '2025-02-14 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-02-14 12:30:21] Production.INFO: count ==5336 [2025-02-14 12:30:24] Production.ERROR: pbx CDR StartTime 2025-02-14 09:30:06 - End Time 2025-02-14 12:30:06 [2025-02-14 12:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473756', 'tblTempUsageDetail_20' ) start [2025-02-14 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473756', 'tblTempUsageDetail_20' ) end [2025-02-14 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473756', 'tblTempVendorCDR_20' ) start [2025-02-14 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473756', 'tblTempVendorCDR_20' ) end [2025-02-14 12:30:24] Production.INFO: ProcessCDR(1,14473756,1,1,2) [2025-02-14 12:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473756', 'tblTempUsageDetail_20' ) start [2025-02-14 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473756', 'tblTempUsageDetail_20' ) end [2025-02-14 12:30:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:30:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:30:29] Production.INFO: ==19747== Releasing lock... [2025-02-14 12:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:30:29] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:31:06 [end_date_ymd] => 2025-02-14 12:31:06 [RateCDR] => 1 ) [2025-02-14 12:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:31:06' and `end` < '2025-02-14 12:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:31:25] Production.INFO: count ==5344 [2025-02-14 12:31:28] Production.ERROR: pbx CDR StartTime 2025-02-14 09:31:06 - End Time 2025-02-14 12:31:06 [2025-02-14 12:31:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473761', 'tblTempUsageDetail_20' ) start [2025-02-14 12:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473761', 'tblTempUsageDetail_20' ) end [2025-02-14 12:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473761', 'tblTempVendorCDR_20' ) start [2025-02-14 12:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473761', 'tblTempVendorCDR_20' ) end [2025-02-14 12:31:28] Production.INFO: ProcessCDR(1,14473761,1,1,2) [2025-02-14 12:31:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473761', 'tblTempUsageDetail_20' ) start [2025-02-14 12:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473761', 'tblTempUsageDetail_20' ) end [2025-02-14 12:31:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:31:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:31:33] Production.INFO: ==19827== Releasing lock... [2025-02-14 12:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:31:33] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:32:05 [end_date_ymd] => 2025-02-14 12:32:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:32:05' and `end` < '2025-02-14 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-02-14 12:32:20] Production.INFO: count ==5336 [2025-02-14 12:32:22] Production.ERROR: pbx CDR StartTime 2025-02-14 09:32:05 - End Time 2025-02-14 12:32:05 [2025-02-14 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473766', 'tblTempUsageDetail_20' ) start [2025-02-14 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473766', 'tblTempUsageDetail_20' ) end [2025-02-14 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473766', 'tblTempVendorCDR_20' ) start [2025-02-14 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473766', 'tblTempVendorCDR_20' ) end [2025-02-14 12:32:23] Production.INFO: ProcessCDR(1,14473766,1,1,2) [2025-02-14 12:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473766', 'tblTempUsageDetail_20' ) start [2025-02-14 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473766', 'tblTempUsageDetail_20' ) end [2025-02-14 12:32:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:32:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:32:28] Production.INFO: ==19908== Releasing lock... [2025-02-14 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:32:28] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:33:06 [end_date_ymd] => 2025-02-14 12:33:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:33:06' and `end` < '2025-02-14 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-02-14 12:33:24] Production.INFO: count ==5340 [2025-02-14 12:33:27] Production.ERROR: pbx CDR StartTime 2025-02-14 09:33:06 - End Time 2025-02-14 12:33:06 [2025-02-14 12:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473771', 'tblTempUsageDetail_20' ) start [2025-02-14 12:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473771', 'tblTempUsageDetail_20' ) end [2025-02-14 12:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473771', 'tblTempVendorCDR_20' ) start [2025-02-14 12:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473771', 'tblTempVendorCDR_20' ) end [2025-02-14 12:33:27] Production.INFO: ProcessCDR(1,14473771,1,1,2) [2025-02-14 12:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473771', 'tblTempUsageDetail_20' ) start [2025-02-14 12:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473771', 'tblTempUsageDetail_20' ) end [2025-02-14 12:33:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:33:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:33:32] Production.INFO: ==19983== Releasing lock... [2025-02-14 12:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:33:32] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:34:06 [end_date_ymd] => 2025-02-14 12:34:06 [RateCDR] => 1 ) [2025-02-14 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:34:06' and `end` < '2025-02-14 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:34:20] Production.INFO: count ==5328 [2025-02-14 12:34:23] Production.ERROR: pbx CDR StartTime 2025-02-14 09:34:06 - End Time 2025-02-14 12:34:06 [2025-02-14 12:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473776', 'tblTempUsageDetail_20' ) start [2025-02-14 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473776', 'tblTempUsageDetail_20' ) end [2025-02-14 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473776', 'tblTempVendorCDR_20' ) start [2025-02-14 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473776', 'tblTempVendorCDR_20' ) end [2025-02-14 12:34:23] Production.INFO: ProcessCDR(1,14473776,1,1,2) [2025-02-14 12:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473776', 'tblTempUsageDetail_20' ) start [2025-02-14 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473776', 'tblTempUsageDetail_20' ) end [2025-02-14 12:34:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:34:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:34:29] Production.INFO: ==20062== Releasing lock... [2025-02-14 12:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:34:29] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:35:06 [end_date_ymd] => 2025-02-14 12:35:06 [RateCDR] => 1 ) [2025-02-14 12:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:35:06' and `end` < '2025-02-14 12:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:35:30] Production.INFO: count ==5331 [2025-02-14 12:35:32] Production.ERROR: pbx CDR StartTime 2025-02-14 09:35:06 - End Time 2025-02-14 12:35:06 [2025-02-14 12:35:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473781', 'tblTempUsageDetail_20' ) start [2025-02-14 12:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473781', 'tblTempUsageDetail_20' ) end [2025-02-14 12:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473781', 'tblTempVendorCDR_20' ) start [2025-02-14 12:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473781', 'tblTempVendorCDR_20' ) end [2025-02-14 12:35:32] Production.INFO: ProcessCDR(1,14473781,1,1,2) [2025-02-14 12:35:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:35:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473781', 'tblTempUsageDetail_20' ) start [2025-02-14 12:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473781', 'tblTempUsageDetail_20' ) end [2025-02-14 12:35:38] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:35:38] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:35:38] Production.INFO: ==20142== Releasing lock... [2025-02-14 12:35:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:35:38] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:36:06 [end_date_ymd] => 2025-02-14 12:36:06 [RateCDR] => 1 ) [2025-02-14 12:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:36:06' and `end` < '2025-02-14 12:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:36:27] Production.INFO: count ==5341 [2025-02-14 12:36:30] Production.ERROR: pbx CDR StartTime 2025-02-14 09:36:06 - End Time 2025-02-14 12:36:06 [2025-02-14 12:36:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473786', 'tblTempUsageDetail_20' ) start [2025-02-14 12:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473786', 'tblTempUsageDetail_20' ) end [2025-02-14 12:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473786', 'tblTempVendorCDR_20' ) start [2025-02-14 12:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473786', 'tblTempVendorCDR_20' ) end [2025-02-14 12:36:30] Production.INFO: ProcessCDR(1,14473786,1,1,2) [2025-02-14 12:36:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:36:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:36:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:36:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:36:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473786', 'tblTempUsageDetail_20' ) start [2025-02-14 12:36:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473786', 'tblTempUsageDetail_20' ) end [2025-02-14 12:36:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:36:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:36:35] Production.INFO: ==20219== Releasing lock... [2025-02-14 12:36:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:36:35] Production.INFO: 68 MB #Memory Used# [2025-02-14 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:37:05 [end_date_ymd] => 2025-02-14 12:37:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:37:05' and `end` < '2025-02-14 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-02-14 12:37:24] Production.INFO: count ==5371 [2025-02-14 12:37:26] Production.ERROR: pbx CDR StartTime 2025-02-14 09:37:05 - End Time 2025-02-14 12:37:05 [2025-02-14 12:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473791', 'tblTempUsageDetail_20' ) start [2025-02-14 12:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473791', 'tblTempUsageDetail_20' ) end [2025-02-14 12:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473791', 'tblTempVendorCDR_20' ) start [2025-02-14 12:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473791', 'tblTempVendorCDR_20' ) end [2025-02-14 12:37:26] Production.INFO: ProcessCDR(1,14473791,1,1,2) [2025-02-14 12:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473791', 'tblTempUsageDetail_20' ) start [2025-02-14 12:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473791', 'tblTempUsageDetail_20' ) end [2025-02-14 12:37:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:37:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:37:32] Production.INFO: ==20292== Releasing lock... [2025-02-14 12:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:37:32] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:38:06 [end_date_ymd] => 2025-02-14 12:38:06 [RateCDR] => 1 ) [2025-02-14 12:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:38:06' and `end` < '2025-02-14 12:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:38:28] Production.INFO: count ==5386 [2025-02-14 12:38:31] Production.ERROR: pbx CDR StartTime 2025-02-14 09:38:06 - End Time 2025-02-14 12:38:06 [2025-02-14 12:38:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473796', 'tblTempUsageDetail_20' ) start [2025-02-14 12:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473796', 'tblTempUsageDetail_20' ) end [2025-02-14 12:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473796', 'tblTempVendorCDR_20' ) start [2025-02-14 12:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473796', 'tblTempVendorCDR_20' ) end [2025-02-14 12:38:31] Production.INFO: ProcessCDR(1,14473796,1,1,2) [2025-02-14 12:38:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:38:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:38:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:38:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:38:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473796', 'tblTempUsageDetail_20' ) start [2025-02-14 12:38:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473796', 'tblTempUsageDetail_20' ) end [2025-02-14 12:38:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:38:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:38:36] Production.INFO: ==20369== Releasing lock... [2025-02-14 12:38:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:38:36] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:39:05 [end_date_ymd] => 2025-02-14 12:39:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:39:05' and `end` < '2025-02-14 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-02-14 12:39:27] Production.INFO: count ==5398 [2025-02-14 12:39:30] Production.ERROR: pbx CDR StartTime 2025-02-14 09:39:05 - End Time 2025-02-14 12:39:05 [2025-02-14 12:39:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473801', 'tblTempUsageDetail_20' ) start [2025-02-14 12:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473801', 'tblTempUsageDetail_20' ) end [2025-02-14 12:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473801', 'tblTempVendorCDR_20' ) start [2025-02-14 12:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473801', 'tblTempVendorCDR_20' ) end [2025-02-14 12:39:30] Production.INFO: ProcessCDR(1,14473801,1,1,2) [2025-02-14 12:39:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:39:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:39:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:39:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473801', 'tblTempUsageDetail_20' ) start [2025-02-14 12:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473801', 'tblTempUsageDetail_20' ) end [2025-02-14 12:39:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:39:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:39:35] Production.INFO: ==20448== Releasing lock... [2025-02-14 12:39:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:39:35] Production.INFO: 68.5 MB #Memory Used# [2025-02-14 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:40:06 [end_date_ymd] => 2025-02-14 12:40:06 [RateCDR] => 1 ) [2025-02-14 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:40:06' and `end` < '2025-02-14 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:40:28] Production.INFO: count ==5398 [2025-02-14 12:40:30] Production.ERROR: pbx CDR StartTime 2025-02-14 09:40:06 - End Time 2025-02-14 12:40:06 [2025-02-14 12:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473807', 'tblTempUsageDetail_20' ) start [2025-02-14 12:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473807', 'tblTempUsageDetail_20' ) end [2025-02-14 12:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473807', 'tblTempVendorCDR_20' ) start [2025-02-14 12:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473807', 'tblTempVendorCDR_20' ) end [2025-02-14 12:40:31] Production.INFO: ProcessCDR(1,14473807,1,1,2) [2025-02-14 12:40:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:40:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:40:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:40:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473807', 'tblTempUsageDetail_20' ) start [2025-02-14 12:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473807', 'tblTempUsageDetail_20' ) end [2025-02-14 12:40:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:40:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:40:36] Production.INFO: ==20535== Releasing lock... [2025-02-14 12:40:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:40:36] Production.INFO: 68.5 MB #Memory Used# [2025-02-14 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:41:05 [end_date_ymd] => 2025-02-14 12:41:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:41:05' and `end` < '2025-02-14 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-02-14 12:41:21] Production.INFO: count ==5485 [2025-02-14 12:41:23] Production.ERROR: pbx CDR StartTime 2025-02-14 09:41:05 - End Time 2025-02-14 12:41:05 [2025-02-14 12:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473812', 'tblTempUsageDetail_20' ) start [2025-02-14 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473812', 'tblTempUsageDetail_20' ) end [2025-02-14 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473812', 'tblTempVendorCDR_20' ) start [2025-02-14 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473812', 'tblTempVendorCDR_20' ) end [2025-02-14 12:41:24] Production.INFO: ProcessCDR(1,14473812,1,1,2) [2025-02-14 12:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473812', 'tblTempUsageDetail_20' ) start [2025-02-14 12:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473812', 'tblTempUsageDetail_20' ) end [2025-02-14 12:41:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:41:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:41:29] Production.INFO: ==20649== Releasing lock... [2025-02-14 12:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:41:29] Production.INFO: 69 MB #Memory Used# [2025-02-14 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:42:05 [end_date_ymd] => 2025-02-14 12:42:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:42:05' and `end` < '2025-02-14 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-02-14 12:42:31] Production.INFO: count ==5500 [2025-02-14 12:42:34] Production.ERROR: pbx CDR StartTime 2025-02-14 09:42:05 - End Time 2025-02-14 12:42:05 [2025-02-14 12:42:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473817', 'tblTempUsageDetail_20' ) start [2025-02-14 12:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473817', 'tblTempUsageDetail_20' ) end [2025-02-14 12:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473817', 'tblTempVendorCDR_20' ) start [2025-02-14 12:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473817', 'tblTempVendorCDR_20' ) end [2025-02-14 12:42:34] Production.INFO: ProcessCDR(1,14473817,1,1,2) [2025-02-14 12:42:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:42:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:42:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:42:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:42:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473817', 'tblTempUsageDetail_20' ) start [2025-02-14 12:42:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473817', 'tblTempUsageDetail_20' ) end [2025-02-14 12:42:40] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:42:40] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:42:40] Production.INFO: ==20729== Releasing lock... [2025-02-14 12:42:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:42:40] Production.INFO: 69.25 MB #Memory Used# [2025-02-14 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:43:05 [end_date_ymd] => 2025-02-14 12:43:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:43:05' and `end` < '2025-02-14 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-02-14 12:43:28] Production.INFO: count ==5511 [2025-02-14 12:43:31] Production.ERROR: pbx CDR StartTime 2025-02-14 09:43:05 - End Time 2025-02-14 12:43:05 [2025-02-14 12:43:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473822', 'tblTempUsageDetail_20' ) start [2025-02-14 12:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473822', 'tblTempUsageDetail_20' ) end [2025-02-14 12:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473822', 'tblTempVendorCDR_20' ) start [2025-02-14 12:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473822', 'tblTempVendorCDR_20' ) end [2025-02-14 12:43:31] Production.INFO: ProcessCDR(1,14473822,1,1,2) [2025-02-14 12:43:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:43:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:43:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:43:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473822', 'tblTempUsageDetail_20' ) start [2025-02-14 12:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473822', 'tblTempUsageDetail_20' ) end [2025-02-14 12:43:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:43:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:43:36] Production.INFO: ==20807== Releasing lock... [2025-02-14 12:43:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:43:36] Production.INFO: 69.25 MB #Memory Used# [2025-02-14 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:44:06 [end_date_ymd] => 2025-02-14 12:44:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:44:06' and `end` < '2025-02-14 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-02-14 12:44:27] Production.INFO: count ==5524 [2025-02-14 12:44:29] Production.ERROR: pbx CDR StartTime 2025-02-14 09:44:06 - End Time 2025-02-14 12:44:06 [2025-02-14 12:44:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473827', 'tblTempUsageDetail_20' ) start [2025-02-14 12:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473827', 'tblTempUsageDetail_20' ) end [2025-02-14 12:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473827', 'tblTempVendorCDR_20' ) start [2025-02-14 12:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473827', 'tblTempVendorCDR_20' ) end [2025-02-14 12:44:30] Production.INFO: ProcessCDR(1,14473827,1,1,2) [2025-02-14 12:44:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:44:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:44:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:44:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473827', 'tblTempUsageDetail_20' ) start [2025-02-14 12:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473827', 'tblTempUsageDetail_20' ) end [2025-02-14 12:44:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:44:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:44:35] Production.INFO: ==20879== Releasing lock... [2025-02-14 12:44:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:44:35] Production.INFO: 69.25 MB #Memory Used# [2025-02-14 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:45:05 [end_date_ymd] => 2025-02-14 12:45:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:45:05' and `end` < '2025-02-14 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-02-14 12:45:26] Production.INFO: count ==5525 [2025-02-14 12:45:29] Production.ERROR: pbx CDR StartTime 2025-02-14 09:45:05 - End Time 2025-02-14 12:45:05 [2025-02-14 12:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473832', 'tblTempUsageDetail_20' ) start [2025-02-14 12:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473832', 'tblTempUsageDetail_20' ) end [2025-02-14 12:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473832', 'tblTempVendorCDR_20' ) start [2025-02-14 12:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473832', 'tblTempVendorCDR_20' ) end [2025-02-14 12:45:29] Production.INFO: ProcessCDR(1,14473832,1,1,2) [2025-02-14 12:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:45:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:45:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:45:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473832', 'tblTempUsageDetail_20' ) start [2025-02-14 12:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473832', 'tblTempUsageDetail_20' ) end [2025-02-14 12:45:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:45:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:45:35] Production.INFO: ==20956== Releasing lock... [2025-02-14 12:45:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:45:35] Production.INFO: 69.25 MB #Memory Used# [2025-02-14 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:46:06 [end_date_ymd] => 2025-02-14 12:46:06 [RateCDR] => 1 ) [2025-02-14 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:46:06' and `end` < '2025-02-14 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:46:27] Production.INFO: count ==5513 [2025-02-14 12:46:30] Production.ERROR: pbx CDR StartTime 2025-02-14 09:46:06 - End Time 2025-02-14 12:46:06 [2025-02-14 12:46:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473837', 'tblTempUsageDetail_20' ) start [2025-02-14 12:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473837', 'tblTempUsageDetail_20' ) end [2025-02-14 12:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473837', 'tblTempVendorCDR_20' ) start [2025-02-14 12:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473837', 'tblTempVendorCDR_20' ) end [2025-02-14 12:46:30] Production.INFO: ProcessCDR(1,14473837,1,1,2) [2025-02-14 12:46:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:46:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473837', 'tblTempUsageDetail_20' ) start [2025-02-14 12:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473837', 'tblTempUsageDetail_20' ) end [2025-02-14 12:46:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:46:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:46:35] Production.INFO: ==21030== Releasing lock... [2025-02-14 12:46:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:46:35] Production.INFO: 69.25 MB #Memory Used# [2025-02-14 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:47:06 [end_date_ymd] => 2025-02-14 12:47:06 [RateCDR] => 1 ) [2025-02-14 12: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-02-14 09:47:06' and `end` < '2025-02-14 12: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-02-14 12:47:24] Production.INFO: count ==5508 [2025-02-14 12:47:27] Production.ERROR: pbx CDR StartTime 2025-02-14 09:47:06 - End Time 2025-02-14 12:47:06 [2025-02-14 12:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473842', 'tblTempUsageDetail_20' ) start [2025-02-14 12:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473842', 'tblTempUsageDetail_20' ) end [2025-02-14 12:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473842', 'tblTempVendorCDR_20' ) start [2025-02-14 12:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473842', 'tblTempVendorCDR_20' ) end [2025-02-14 12:47:27] Production.INFO: ProcessCDR(1,14473842,1,1,2) [2025-02-14 12:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473842', 'tblTempUsageDetail_20' ) start [2025-02-14 12:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473842', 'tblTempUsageDetail_20' ) end [2025-02-14 12:47:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:47:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:47:32] Production.INFO: ==21103== Releasing lock... [2025-02-14 12:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:47:32] Production.INFO: 69.25 MB #Memory Used# [2025-02-14 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:48:06 [end_date_ymd] => 2025-02-14 12:48:06 [RateCDR] => 1 ) [2025-02-14 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:48:06' and `end` < '2025-02-14 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:48:24] Production.INFO: count ==5485 [2025-02-14 12:48:27] Production.ERROR: pbx CDR StartTime 2025-02-14 09:48:06 - End Time 2025-02-14 12:48:06 [2025-02-14 12:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473847', 'tblTempUsageDetail_20' ) start [2025-02-14 12:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473847', 'tblTempUsageDetail_20' ) end [2025-02-14 12:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473847', 'tblTempVendorCDR_20' ) start [2025-02-14 12:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473847', 'tblTempVendorCDR_20' ) end [2025-02-14 12:48:27] Production.INFO: ProcessCDR(1,14473847,1,1,2) [2025-02-14 12:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:48:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473847', 'tblTempUsageDetail_20' ) start [2025-02-14 12:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473847', 'tblTempUsageDetail_20' ) end [2025-02-14 12:48:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:48:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:48:32] Production.INFO: ==21176== Releasing lock... [2025-02-14 12:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:48:32] Production.INFO: 69 MB #Memory Used# [2025-02-14 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:49:05 [end_date_ymd] => 2025-02-14 12:49:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:49:05' and `end` < '2025-02-14 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-02-14 12:49:24] Production.INFO: count ==5490 [2025-02-14 12:49:27] Production.ERROR: pbx CDR StartTime 2025-02-14 09:49:05 - End Time 2025-02-14 12:49:05 [2025-02-14 12:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473852', 'tblTempUsageDetail_20' ) start [2025-02-14 12:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473852', 'tblTempUsageDetail_20' ) end [2025-02-14 12:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473852', 'tblTempVendorCDR_20' ) start [2025-02-14 12:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473852', 'tblTempVendorCDR_20' ) end [2025-02-14 12:49:27] Production.INFO: ProcessCDR(1,14473852,1,1,2) [2025-02-14 12:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473852', 'tblTempUsageDetail_20' ) start [2025-02-14 12:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473852', 'tblTempUsageDetail_20' ) end [2025-02-14 12:49:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:49:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:49:33] Production.INFO: ==21251== Releasing lock... [2025-02-14 12:49:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:49:33] Production.INFO: 69 MB #Memory Used# [2025-02-14 12:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:50:07 [end_date_ymd] => 2025-02-14 12:50:07 [RateCDR] => 1 ) [2025-02-14 12:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:50:07' and `end` < '2025-02-14 12:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:50:21] Production.INFO: count ==5516 [2025-02-14 12:50:24] Production.ERROR: pbx CDR StartTime 2025-02-14 09:50:07 - End Time 2025-02-14 12:50:07 [2025-02-14 12:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473858', 'tblTempUsageDetail_20' ) start [2025-02-14 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473858', 'tblTempUsageDetail_20' ) end [2025-02-14 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473858', 'tblTempVendorCDR_20' ) start [2025-02-14 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473858', 'tblTempVendorCDR_20' ) end [2025-02-14 12:50:24] Production.INFO: ProcessCDR(1,14473858,1,1,2) [2025-02-14 12:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473858', 'tblTempUsageDetail_20' ) start [2025-02-14 12:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473858', 'tblTempUsageDetail_20' ) end [2025-02-14 12:50:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:50:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:50:29] Production.INFO: ==21330== Releasing lock... [2025-02-14 12:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:50:29] Production.INFO: 69.25 MB #Memory Used# [2025-02-14 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:51:05 [end_date_ymd] => 2025-02-14 12:51:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:51:05' and `end` < '2025-02-14 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-02-14 12:51:25] Production.INFO: count ==5553 [2025-02-14 12:51:28] Production.ERROR: pbx CDR StartTime 2025-02-14 09:51:05 - End Time 2025-02-14 12:51:05 [2025-02-14 12:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473863', 'tblTempUsageDetail_20' ) start [2025-02-14 12:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473863', 'tblTempUsageDetail_20' ) end [2025-02-14 12:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473863', 'tblTempVendorCDR_20' ) start [2025-02-14 12:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473863', 'tblTempVendorCDR_20' ) end [2025-02-14 12:51:28] Production.INFO: ProcessCDR(1,14473863,1,1,2) [2025-02-14 12:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:51:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:51:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473863', 'tblTempUsageDetail_20' ) start [2025-02-14 12:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473863', 'tblTempUsageDetail_20' ) end [2025-02-14 12:51:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:51:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:51:33] Production.INFO: ==21403== Releasing lock... [2025-02-14 12:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:51:33] Production.INFO: 69.5 MB #Memory Used# [2025-02-14 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:52:06 [end_date_ymd] => 2025-02-14 12:52:06 [RateCDR] => 1 ) [2025-02-14 12:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:52:06' and `end` < '2025-02-14 12:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:52:26] Production.INFO: count ==5551 [2025-02-14 12:52:29] Production.ERROR: pbx CDR StartTime 2025-02-14 09:52:06 - End Time 2025-02-14 12:52:06 [2025-02-14 12:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473868', 'tblTempUsageDetail_20' ) start [2025-02-14 12:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473868', 'tblTempUsageDetail_20' ) end [2025-02-14 12:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473868', 'tblTempVendorCDR_20' ) start [2025-02-14 12:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473868', 'tblTempVendorCDR_20' ) end [2025-02-14 12:52:29] Production.INFO: ProcessCDR(1,14473868,1,1,2) [2025-02-14 12:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:52:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:52:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473868', 'tblTempUsageDetail_20' ) start [2025-02-14 12:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473868', 'tblTempUsageDetail_20' ) end [2025-02-14 12:52:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:52:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:52:34] Production.INFO: ==21477== Releasing lock... [2025-02-14 12:52:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:52:34] Production.INFO: 69.5 MB #Memory Used# [2025-02-14 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:53:05 [end_date_ymd] => 2025-02-14 12:53:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:53:05' and `end` < '2025-02-14 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-02-14 12:53:23] Production.INFO: count ==5559 [2025-02-14 12:53:26] Production.ERROR: pbx CDR StartTime 2025-02-14 09:53:05 - End Time 2025-02-14 12:53:05 [2025-02-14 12:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473873', 'tblTempUsageDetail_20' ) start [2025-02-14 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473873', 'tblTempUsageDetail_20' ) end [2025-02-14 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473873', 'tblTempVendorCDR_20' ) start [2025-02-14 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473873', 'tblTempVendorCDR_20' ) end [2025-02-14 12:53:26] Production.INFO: ProcessCDR(1,14473873,1,1,2) [2025-02-14 12:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473873', 'tblTempUsageDetail_20' ) start [2025-02-14 12:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473873', 'tblTempUsageDetail_20' ) end [2025-02-14 12:53:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:53:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:53:32] Production.INFO: ==21553== Releasing lock... [2025-02-14 12:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:53:32] Production.INFO: 69.5 MB #Memory Used# [2025-02-14 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:54:06 [end_date_ymd] => 2025-02-14 12:54:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:54:06' and `end` < '2025-02-14 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-02-14 12:54:30] Production.INFO: count ==5525 [2025-02-14 12:54:33] Production.ERROR: pbx CDR StartTime 2025-02-14 09:54:06 - End Time 2025-02-14 12:54:06 [2025-02-14 12:54:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473878', 'tblTempUsageDetail_20' ) start [2025-02-14 12:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473878', 'tblTempUsageDetail_20' ) end [2025-02-14 12:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473878', 'tblTempVendorCDR_20' ) start [2025-02-14 12:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473878', 'tblTempVendorCDR_20' ) end [2025-02-14 12:54:33] Production.INFO: ProcessCDR(1,14473878,1,1,2) [2025-02-14 12:54:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:54:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:54:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:54:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:54:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473878', 'tblTempUsageDetail_20' ) start [2025-02-14 12:54:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473878', 'tblTempUsageDetail_20' ) end [2025-02-14 12:54:38] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:54:38] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:54:39] Production.INFO: ==21628== Releasing lock... [2025-02-14 12:54:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:54:39] Production.INFO: 69.25 MB #Memory Used# [2025-02-14 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:55:05 [end_date_ymd] => 2025-02-14 12:55:05 [RateCDR] => 1 ) [2025-02-14 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:55:05' and `end` < '2025-02-14 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:55:26] Production.INFO: count ==5522 [2025-02-14 12:55:28] Production.ERROR: pbx CDR StartTime 2025-02-14 09:55:05 - End Time 2025-02-14 12:55:05 [2025-02-14 12:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473883', 'tblTempUsageDetail_20' ) start [2025-02-14 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473883', 'tblTempUsageDetail_20' ) end [2025-02-14 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473883', 'tblTempVendorCDR_20' ) start [2025-02-14 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473883', 'tblTempVendorCDR_20' ) end [2025-02-14 12:55:29] Production.INFO: ProcessCDR(1,14473883,1,1,2) [2025-02-14 12:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473883', 'tblTempUsageDetail_20' ) start [2025-02-14 12:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473883', 'tblTempUsageDetail_20' ) end [2025-02-14 12:55:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:55:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:55:34] Production.INFO: ==21699== Releasing lock... [2025-02-14 12:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:55:34] Production.INFO: 69.25 MB #Memory Used# [2025-02-14 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:56:06 [end_date_ymd] => 2025-02-14 12:56:06 [RateCDR] => 1 ) [2025-02-14 12:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:56:06' and `end` < '2025-02-14 12:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:56:22] Production.INFO: count ==5531 [2025-02-14 12:56:25] Production.ERROR: pbx CDR StartTime 2025-02-14 09:56:06 - End Time 2025-02-14 12:56:06 [2025-02-14 12:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473888', 'tblTempUsageDetail_20' ) start [2025-02-14 12:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473888', 'tblTempUsageDetail_20' ) end [2025-02-14 12:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473888', 'tblTempVendorCDR_20' ) start [2025-02-14 12:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473888', 'tblTempVendorCDR_20' ) end [2025-02-14 12:56:25] Production.INFO: ProcessCDR(1,14473888,1,1,2) [2025-02-14 12:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473888', 'tblTempUsageDetail_20' ) start [2025-02-14 12:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473888', 'tblTempUsageDetail_20' ) end [2025-02-14 12:56:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:56:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:56:31] Production.INFO: ==21813== Releasing lock... [2025-02-14 12:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:56:31] Production.INFO: 69.5 MB #Memory Used# [2025-02-14 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:57:05 [end_date_ymd] => 2025-02-14 12:57:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:57:05' and `end` < '2025-02-14 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-02-14 12:57:22] Production.INFO: count ==5507 [2025-02-14 12:57:25] Production.ERROR: pbx CDR StartTime 2025-02-14 09:57:05 - End Time 2025-02-14 12:57:05 [2025-02-14 12:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473893', 'tblTempUsageDetail_20' ) start [2025-02-14 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473893', 'tblTempUsageDetail_20' ) end [2025-02-14 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473893', 'tblTempVendorCDR_20' ) start [2025-02-14 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473893', 'tblTempVendorCDR_20' ) end [2025-02-14 12:57:25] Production.INFO: ProcessCDR(1,14473893,1,1,2) [2025-02-14 12:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473893', 'tblTempUsageDetail_20' ) start [2025-02-14 12:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473893', 'tblTempUsageDetail_20' ) end [2025-02-14 12:57:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:57:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:57:31] Production.INFO: ==21886== Releasing lock... [2025-02-14 12:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:57:31] Production.INFO: 69.25 MB #Memory Used# [2025-02-14 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:58:06 [end_date_ymd] => 2025-02-14 12:58:06 [RateCDR] => 1 ) [2025-02-14 12:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 09:58:06' and `end` < '2025-02-14 12:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 12:58:32] Production.INFO: count ==5496 [2025-02-14 12:58:35] Production.ERROR: pbx CDR StartTime 2025-02-14 09:58:06 - End Time 2025-02-14 12:58:06 [2025-02-14 12:58:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:58:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473898', 'tblTempUsageDetail_20' ) start [2025-02-14 12:58:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473898', 'tblTempUsageDetail_20' ) end [2025-02-14 12:58:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473898', 'tblTempVendorCDR_20' ) start [2025-02-14 12:58:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473898', 'tblTempVendorCDR_20' ) end [2025-02-14 12:58:35] Production.INFO: ProcessCDR(1,14473898,1,1,2) [2025-02-14 12:58:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:58:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:58:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:58:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:58:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473898', 'tblTempUsageDetail_20' ) start [2025-02-14 12:58:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473898', 'tblTempUsageDetail_20' ) end [2025-02-14 12:58:40] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:58:40] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:58:40] Production.INFO: ==21958== Releasing lock... [2025-02-14 12:58:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:58:40] Production.INFO: 69.25 MB #Memory Used# [2025-02-14 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 09:59:05 [end_date_ymd] => 2025-02-14 12:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 09:59:05' and `end` < '2025-02-14 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-02-14 12:59:36] Production.INFO: count ==5495 [2025-02-14 12:59:39] Production.ERROR: pbx CDR StartTime 2025-02-14 09:59:05 - End Time 2025-02-14 12:59:05 [2025-02-14 12:59:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 12:59:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473903', 'tblTempUsageDetail_20' ) start [2025-02-14 12:59:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473903', 'tblTempUsageDetail_20' ) end [2025-02-14 12:59:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473903', 'tblTempVendorCDR_20' ) start [2025-02-14 12:59:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473903', 'tblTempVendorCDR_20' ) end [2025-02-14 12:59:39] Production.INFO: ProcessCDR(1,14473903,1,1,2) [2025-02-14 12:59:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:59:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 12:59:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:59:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 12:59:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473903', 'tblTempUsageDetail_20' ) start [2025-02-14 12:59:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473903', 'tblTempUsageDetail_20' ) end [2025-02-14 12:59:44] Production.ERROR: pbx prc_insertCDR start [2025-02-14 12:59:44] Production.ERROR: pbx prc_insertCDR end [2025-02-14 12:59:44] Production.INFO: ==22033== Releasing lock... [2025-02-14 12:59:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 12:59:44] Production.INFO: 69.25 MB #Memory Used# [2025-02-14 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:00:07 [end_date_ymd] => 2025-02-14 13:00:07 [RateCDR] => 1 ) [2025-02-14 13:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:00:07' and `end` < '2025-02-14 13:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:00:29] Production.INFO: count ==5499 [2025-02-14 13:00:32] Production.ERROR: pbx CDR StartTime 2025-02-14 10:00:07 - End Time 2025-02-14 13:00:07 [2025-02-14 13:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473909', 'tblTempUsageDetail_20' ) start [2025-02-14 13:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473909', 'tblTempUsageDetail_20' ) end [2025-02-14 13:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473909', 'tblTempVendorCDR_20' ) start [2025-02-14 13:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473909', 'tblTempVendorCDR_20' ) end [2025-02-14 13:00:32] Production.INFO: ProcessCDR(1,14473909,1,1,2) [2025-02-14 13:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473909', 'tblTempUsageDetail_20' ) start [2025-02-14 13:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473909', 'tblTempUsageDetail_20' ) end [2025-02-14 13:00:37] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:00:37] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:00:37] Production.INFO: ==22118== Releasing lock... [2025-02-14 13:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:00:37] Production.INFO: 69.25 MB #Memory Used# [2025-02-14 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:01:06 [end_date_ymd] => 2025-02-14 13:01:06 [RateCDR] => 1 ) [2025-02-14 13:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:01:06' and `end` < '2025-02-14 13:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:01:31] Production.INFO: count ==5550 [2025-02-14 13:01:34] Production.ERROR: pbx CDR StartTime 2025-02-14 10:01:06 - End Time 2025-02-14 13:01:06 [2025-02-14 13:01:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473914', 'tblTempUsageDetail_20' ) start [2025-02-14 13:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473914', 'tblTempUsageDetail_20' ) end [2025-02-14 13:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473914', 'tblTempVendorCDR_20' ) start [2025-02-14 13:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473914', 'tblTempVendorCDR_20' ) end [2025-02-14 13:01:34] Production.INFO: ProcessCDR(1,14473914,1,1,2) [2025-02-14 13:01:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:01:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:01:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:01:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:01:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473914', 'tblTempUsageDetail_20' ) start [2025-02-14 13:01:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473914', 'tblTempUsageDetail_20' ) end [2025-02-14 13:01:40] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:01:40] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:01:40] Production.INFO: ==22210== Releasing lock... [2025-02-14 13:01:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:01:40] Production.INFO: 69.5 MB #Memory Used# [2025-02-14 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:02:05 [end_date_ymd] => 2025-02-14 13:02:05 [RateCDR] => 1 ) [2025-02-14 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:02:05' and `end` < '2025-02-14 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:02:23] Production.INFO: count ==5540 [2025-02-14 13:02:26] Production.ERROR: pbx CDR StartTime 2025-02-14 10:02:05 - End Time 2025-02-14 13:02:05 [2025-02-14 13:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473919', 'tblTempUsageDetail_20' ) start [2025-02-14 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473919', 'tblTempUsageDetail_20' ) end [2025-02-14 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473919', 'tblTempVendorCDR_20' ) start [2025-02-14 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473919', 'tblTempVendorCDR_20' ) end [2025-02-14 13:02:26] Production.INFO: ProcessCDR(1,14473919,1,1,2) [2025-02-14 13:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473919', 'tblTempUsageDetail_20' ) start [2025-02-14 13:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473919', 'tblTempUsageDetail_20' ) end [2025-02-14 13:02:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:02:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:02:31] Production.INFO: ==22288== Releasing lock... [2025-02-14 13:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:02:31] Production.INFO: 69.5 MB #Memory Used# [2025-02-14 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:03:05 [end_date_ymd] => 2025-02-14 13:03:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:03:05' and `end` < '2025-02-14 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-02-14 13:03:23] Production.INFO: count ==5544 [2025-02-14 13:03:26] Production.ERROR: pbx CDR StartTime 2025-02-14 10:03:05 - End Time 2025-02-14 13:03:05 [2025-02-14 13:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473924', 'tblTempUsageDetail_20' ) start [2025-02-14 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473924', 'tblTempUsageDetail_20' ) end [2025-02-14 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473924', 'tblTempVendorCDR_20' ) start [2025-02-14 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473924', 'tblTempVendorCDR_20' ) end [2025-02-14 13:03:26] Production.INFO: ProcessCDR(1,14473924,1,1,2) [2025-02-14 13:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473924', 'tblTempUsageDetail_20' ) start [2025-02-14 13:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473924', 'tblTempUsageDetail_20' ) end [2025-02-14 13:03:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:03:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:03:32] Production.INFO: ==22360== Releasing lock... [2025-02-14 13:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:03:32] Production.INFO: 69.5 MB #Memory Used# [2025-02-14 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:04:05 [end_date_ymd] => 2025-02-14 13:04:05 [RateCDR] => 1 ) [2025-02-14 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:04:05' and `end` < '2025-02-14 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:04:19] Production.INFO: count ==5536 [2025-02-14 13:04:22] Production.ERROR: pbx CDR StartTime 2025-02-14 10:04:05 - End Time 2025-02-14 13:04:05 [2025-02-14 13:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473929', 'tblTempUsageDetail_20' ) start [2025-02-14 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473929', 'tblTempUsageDetail_20' ) end [2025-02-14 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473929', 'tblTempVendorCDR_20' ) start [2025-02-14 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473929', 'tblTempVendorCDR_20' ) end [2025-02-14 13:04:22] Production.INFO: ProcessCDR(1,14473929,1,1,2) [2025-02-14 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473929', 'tblTempUsageDetail_20' ) start [2025-02-14 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473929', 'tblTempUsageDetail_20' ) end [2025-02-14 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:04:27] Production.INFO: ==22439== Releasing lock... [2025-02-14 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:04:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-14 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:05:05 [end_date_ymd] => 2025-02-14 13:05:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:05:05' and `end` < '2025-02-14 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-02-14 13:05:25] Production.INFO: count ==5538 [2025-02-14 13:05:28] Production.ERROR: pbx CDR StartTime 2025-02-14 10:05:05 - End Time 2025-02-14 13:05:05 [2025-02-14 13:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473934', 'tblTempUsageDetail_20' ) start [2025-02-14 13:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473934', 'tblTempUsageDetail_20' ) end [2025-02-14 13:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473934', 'tblTempVendorCDR_20' ) start [2025-02-14 13:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473934', 'tblTempVendorCDR_20' ) end [2025-02-14 13:05:28] Production.INFO: ProcessCDR(1,14473934,1,1,2) [2025-02-14 13:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473934', 'tblTempUsageDetail_20' ) start [2025-02-14 13:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473934', 'tblTempUsageDetail_20' ) end [2025-02-14 13:05:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:05:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:05:33] Production.INFO: ==22516== Releasing lock... [2025-02-14 13:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:05:33] Production.INFO: 69.5 MB #Memory Used# [2025-02-14 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:06:06 [end_date_ymd] => 2025-02-14 13:06:06 [RateCDR] => 1 ) [2025-02-14 13: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-02-14 10:06:06' and `end` < '2025-02-14 13: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-02-14 13:06:23] Production.INFO: count ==5518 [2025-02-14 13:06:26] Production.ERROR: pbx CDR StartTime 2025-02-14 10:06:06 - End Time 2025-02-14 13:06:06 [2025-02-14 13:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473939', 'tblTempUsageDetail_20' ) start [2025-02-14 13:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473939', 'tblTempUsageDetail_20' ) end [2025-02-14 13:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473939', 'tblTempVendorCDR_20' ) start [2025-02-14 13:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473939', 'tblTempVendorCDR_20' ) end [2025-02-14 13:06:26] Production.INFO: ProcessCDR(1,14473939,1,1,2) [2025-02-14 13:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473939', 'tblTempUsageDetail_20' ) start [2025-02-14 13:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473939', 'tblTempUsageDetail_20' ) end [2025-02-14 13:06:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:06:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:06:31] Production.INFO: ==22598== Releasing lock... [2025-02-14 13:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:06:31] Production.INFO: 69.25 MB #Memory Used# [2025-02-14 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:07:06 [end_date_ymd] => 2025-02-14 13:07:06 [RateCDR] => 1 ) [2025-02-14 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:07:06' and `end` < '2025-02-14 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:07:24] Production.INFO: count ==5506 [2025-02-14 13:07:26] Production.ERROR: pbx CDR StartTime 2025-02-14 10:07:06 - End Time 2025-02-14 13:07:06 [2025-02-14 13:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473944', 'tblTempUsageDetail_20' ) start [2025-02-14 13:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473944', 'tblTempUsageDetail_20' ) end [2025-02-14 13:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473944', 'tblTempVendorCDR_20' ) start [2025-02-14 13:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473944', 'tblTempVendorCDR_20' ) end [2025-02-14 13:07:26] Production.INFO: ProcessCDR(1,14473944,1,1,2) [2025-02-14 13:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473944', 'tblTempUsageDetail_20' ) start [2025-02-14 13:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473944', 'tblTempUsageDetail_20' ) end [2025-02-14 13:07:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:07:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:07:31] Production.INFO: ==22675== Releasing lock... [2025-02-14 13:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:07:31] Production.INFO: 69.25 MB #Memory Used# [2025-02-14 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:08:05 [end_date_ymd] => 2025-02-14 13:08:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:08:05' and `end` < '2025-02-14 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-02-14 13:08:19] Production.INFO: count ==5485 [2025-02-14 13:08:22] Production.ERROR: pbx CDR StartTime 2025-02-14 10:08:05 - End Time 2025-02-14 13:08:05 [2025-02-14 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473949', 'tblTempUsageDetail_20' ) start [2025-02-14 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473949', 'tblTempUsageDetail_20' ) end [2025-02-14 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473949', 'tblTempVendorCDR_20' ) start [2025-02-14 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473949', 'tblTempVendorCDR_20' ) end [2025-02-14 13:08:22] Production.INFO: ProcessCDR(1,14473949,1,1,2) [2025-02-14 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473949', 'tblTempUsageDetail_20' ) start [2025-02-14 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473949', 'tblTempUsageDetail_20' ) end [2025-02-14 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:08:27] Production.INFO: ==22756== Releasing lock... [2025-02-14 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:08:27] Production.INFO: 69 MB #Memory Used# [2025-02-14 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:09:06 [end_date_ymd] => 2025-02-14 13:09:06 [RateCDR] => 1 ) [2025-02-14 13:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:09:06' and `end` < '2025-02-14 13:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:09:20] Production.INFO: count ==5462 [2025-02-14 13:09:23] Production.ERROR: pbx CDR StartTime 2025-02-14 10:09:06 - End Time 2025-02-14 13:09:06 [2025-02-14 13:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473954', 'tblTempUsageDetail_20' ) start [2025-02-14 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473954', 'tblTempUsageDetail_20' ) end [2025-02-14 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473954', 'tblTempVendorCDR_20' ) start [2025-02-14 13:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473954', 'tblTempVendorCDR_20' ) end [2025-02-14 13:09:23] Production.INFO: ProcessCDR(1,14473954,1,1,2) [2025-02-14 13:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473954', 'tblTempUsageDetail_20' ) start [2025-02-14 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473954', 'tblTempUsageDetail_20' ) end [2025-02-14 13:09:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:09:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:09:28] Production.INFO: ==22831== Releasing lock... [2025-02-14 13:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:09:28] Production.INFO: 69 MB #Memory Used# [2025-02-14 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:10:06 [end_date_ymd] => 2025-02-14 13:10:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:10:06' and `end` < '2025-02-14 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-02-14 13:10:25] Production.INFO: count ==5428 [2025-02-14 13:10:28] Production.ERROR: pbx CDR StartTime 2025-02-14 10:10:06 - End Time 2025-02-14 13:10:06 [2025-02-14 13:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473960', 'tblTempUsageDetail_20' ) start [2025-02-14 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473960', 'tblTempUsageDetail_20' ) end [2025-02-14 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473960', 'tblTempVendorCDR_20' ) start [2025-02-14 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473960', 'tblTempVendorCDR_20' ) end [2025-02-14 13:10:28] Production.INFO: ProcessCDR(1,14473960,1,1,2) [2025-02-14 13:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473960', 'tblTempUsageDetail_20' ) start [2025-02-14 13:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473960', 'tblTempUsageDetail_20' ) end [2025-02-14 13:10:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:10:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:10:33] Production.INFO: ==22910== Releasing lock... [2025-02-14 13:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:10:33] Production.INFO: 68.75 MB #Memory Used# [2025-02-14 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:11:05 [end_date_ymd] => 2025-02-14 13:11:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:11:05' and `end` < '2025-02-14 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-02-14 13:11:19] Production.INFO: count ==5395 [2025-02-14 13:11:22] Production.ERROR: pbx CDR StartTime 2025-02-14 10:11:05 - End Time 2025-02-14 13:11:05 [2025-02-14 13:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473965', 'tblTempUsageDetail_20' ) start [2025-02-14 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473965', 'tblTempUsageDetail_20' ) end [2025-02-14 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473965', 'tblTempVendorCDR_20' ) start [2025-02-14 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473965', 'tblTempVendorCDR_20' ) end [2025-02-14 13:11:22] Production.INFO: ProcessCDR(1,14473965,1,1,2) [2025-02-14 13:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473965', 'tblTempUsageDetail_20' ) start [2025-02-14 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473965', 'tblTempUsageDetail_20' ) end [2025-02-14 13:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:11:27] Production.INFO: ==22990== Releasing lock... [2025-02-14 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:11:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-14 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:12:05 [end_date_ymd] => 2025-02-14 13:12:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:12:05' and `end` < '2025-02-14 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-02-14 13:12:20] Production.INFO: count ==5383 [2025-02-14 13:12:23] Production.ERROR: pbx CDR StartTime 2025-02-14 10:12:05 - End Time 2025-02-14 13:12:05 [2025-02-14 13:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473970', 'tblTempUsageDetail_20' ) start [2025-02-14 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473970', 'tblTempUsageDetail_20' ) end [2025-02-14 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473970', 'tblTempVendorCDR_20' ) start [2025-02-14 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473970', 'tblTempVendorCDR_20' ) end [2025-02-14 13:12:23] Production.INFO: ProcessCDR(1,14473970,1,1,2) [2025-02-14 13:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473970', 'tblTempUsageDetail_20' ) start [2025-02-14 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473970', 'tblTempUsageDetail_20' ) end [2025-02-14 13:12:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:12:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:12:28] Production.INFO: ==23103== Releasing lock... [2025-02-14 13:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:12:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:13:06 [end_date_ymd] => 2025-02-14 13:13:06 [RateCDR] => 1 ) [2025-02-14 13:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:13:06' and `end` < '2025-02-14 13:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:13:21] Production.INFO: count ==5394 [2025-02-14 13:13:23] Production.ERROR: pbx CDR StartTime 2025-02-14 10:13:06 - End Time 2025-02-14 13:13:06 [2025-02-14 13:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473975', 'tblTempUsageDetail_20' ) start [2025-02-14 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473975', 'tblTempUsageDetail_20' ) end [2025-02-14 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473975', 'tblTempVendorCDR_20' ) start [2025-02-14 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473975', 'tblTempVendorCDR_20' ) end [2025-02-14 13:13:24] Production.INFO: ProcessCDR(1,14473975,1,1,2) [2025-02-14 13:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473975', 'tblTempUsageDetail_20' ) start [2025-02-14 13:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473975', 'tblTempUsageDetail_20' ) end [2025-02-14 13:13:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:13:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:13:29] Production.INFO: ==23179== Releasing lock... [2025-02-14 13:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:13:29] Production.INFO: 68.5 MB #Memory Used# [2025-02-14 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:14:05 [end_date_ymd] => 2025-02-14 13:14:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:14:05' and `end` < '2025-02-14 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-02-14 13:14:20] Production.INFO: count ==5407 [2025-02-14 13:14:22] Production.ERROR: pbx CDR StartTime 2025-02-14 10:14:05 - End Time 2025-02-14 13:14:05 [2025-02-14 13:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473980', 'tblTempUsageDetail_20' ) start [2025-02-14 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473980', 'tblTempUsageDetail_20' ) end [2025-02-14 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473980', 'tblTempVendorCDR_20' ) start [2025-02-14 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473980', 'tblTempVendorCDR_20' ) end [2025-02-14 13:14:23] Production.INFO: ProcessCDR(1,14473980,1,1,2) [2025-02-14 13:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473980', 'tblTempUsageDetail_20' ) start [2025-02-14 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473980', 'tblTempUsageDetail_20' ) end [2025-02-14 13:14:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:14:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:14:28] Production.INFO: ==23250== Releasing lock... [2025-02-14 13:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:14:28] Production.INFO: 68.5 MB #Memory Used# [2025-02-14 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:15:05 [end_date_ymd] => 2025-02-14 13:15:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:15:05' and `end` < '2025-02-14 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-02-14 13:15:19] Production.INFO: count ==5395 [2025-02-14 13:15:22] Production.ERROR: pbx CDR StartTime 2025-02-14 10:15:05 - End Time 2025-02-14 13:15:05 [2025-02-14 13:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473985', 'tblTempUsageDetail_20' ) start [2025-02-14 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473985', 'tblTempUsageDetail_20' ) end [2025-02-14 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473985', 'tblTempVendorCDR_20' ) start [2025-02-14 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473985', 'tblTempVendorCDR_20' ) end [2025-02-14 13:15:22] Production.INFO: ProcessCDR(1,14473985,1,1,2) [2025-02-14 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473985', 'tblTempUsageDetail_20' ) start [2025-02-14 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473985', 'tblTempUsageDetail_20' ) end [2025-02-14 13:15:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:15:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:15:28] Production.INFO: ==23332== Releasing lock... [2025-02-14 13:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:15:28] Production.INFO: 68.5 MB #Memory Used# [2025-02-14 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:16:06 [end_date_ymd] => 2025-02-14 13:16:06 [RateCDR] => 1 ) [2025-02-14 13:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:16:06' and `end` < '2025-02-14 13:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:16:23] Production.INFO: count ==5371 [2025-02-14 13:16:26] Production.ERROR: pbx CDR StartTime 2025-02-14 10:16:06 - End Time 2025-02-14 13:16:06 [2025-02-14 13:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473990', 'tblTempUsageDetail_20' ) start [2025-02-14 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473990', 'tblTempUsageDetail_20' ) end [2025-02-14 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473990', 'tblTempVendorCDR_20' ) start [2025-02-14 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473990', 'tblTempVendorCDR_20' ) end [2025-02-14 13:16:26] Production.INFO: ProcessCDR(1,14473990,1,1,2) [2025-02-14 13:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473990', 'tblTempUsageDetail_20' ) start [2025-02-14 13:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473990', 'tblTempUsageDetail_20' ) end [2025-02-14 13:16:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:16:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:16:31] Production.INFO: ==23424== Releasing lock... [2025-02-14 13:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:16:31] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:17:06 [end_date_ymd] => 2025-02-14 13:17:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:17:06' and `end` < '2025-02-14 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-02-14 13:17:20] Production.INFO: count ==5367 [2025-02-14 13:17:22] Production.ERROR: pbx CDR StartTime 2025-02-14 10:17:06 - End Time 2025-02-14 13:17:06 [2025-02-14 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473995', 'tblTempUsageDetail_20' ) start [2025-02-14 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14473995', 'tblTempUsageDetail_20' ) end [2025-02-14 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473995', 'tblTempVendorCDR_20' ) start [2025-02-14 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14473995', 'tblTempVendorCDR_20' ) end [2025-02-14 13:17:23] Production.INFO: ProcessCDR(1,14473995,1,1,2) [2025-02-14 13:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14473995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14473995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14473995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14473995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473995', 'tblTempUsageDetail_20' ) start [2025-02-14 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14473995', 'tblTempUsageDetail_20' ) end [2025-02-14 13:17:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:17:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:17:28] Production.INFO: ==23528== Releasing lock... [2025-02-14 13:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:17:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:18:05 [end_date_ymd] => 2025-02-14 13:18:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:18:05' and `end` < '2025-02-14 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-02-14 13:18:19] Production.INFO: count ==5355 [2025-02-14 13:18:22] Production.ERROR: pbx CDR StartTime 2025-02-14 10:18:05 - End Time 2025-02-14 13:18:05 [2025-02-14 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474000', 'tblTempUsageDetail_20' ) start [2025-02-14 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474000', 'tblTempUsageDetail_20' ) end [2025-02-14 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474000', 'tblTempVendorCDR_20' ) start [2025-02-14 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474000', 'tblTempVendorCDR_20' ) end [2025-02-14 13:18:22] Production.INFO: ProcessCDR(1,14474000,1,1,2) [2025-02-14 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474000', 'tblTempUsageDetail_20' ) start [2025-02-14 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474000', 'tblTempUsageDetail_20' ) end [2025-02-14 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:18:27] Production.INFO: ==23645== Releasing lock... [2025-02-14 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:18:27] Production.INFO: 68 MB #Memory Used# [2025-02-14 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:19:06 [end_date_ymd] => 2025-02-14 13:19:06 [RateCDR] => 1 ) [2025-02-14 13:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:19:06' and `end` < '2025-02-14 13:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:19:21] Production.INFO: count ==5345 [2025-02-14 13:19:23] Production.ERROR: pbx CDR StartTime 2025-02-14 10:19:06 - End Time 2025-02-14 13:19:06 [2025-02-14 13:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474005', 'tblTempUsageDetail_20' ) start [2025-02-14 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474005', 'tblTempUsageDetail_20' ) end [2025-02-14 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474005', 'tblTempVendorCDR_20' ) start [2025-02-14 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474005', 'tblTempVendorCDR_20' ) end [2025-02-14 13:19:23] Production.INFO: ProcessCDR(1,14474005,1,1,2) [2025-02-14 13:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474005', 'tblTempUsageDetail_20' ) start [2025-02-14 13:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474005', 'tblTempUsageDetail_20' ) end [2025-02-14 13:19:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:19:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:19:29] Production.INFO: ==23751== Releasing lock... [2025-02-14 13:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:19:29] Production.INFO: 68 MB #Memory Used# [2025-02-14 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:20:06 [end_date_ymd] => 2025-02-14 13:20:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:20:06' and `end` < '2025-02-14 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-02-14 13:20:28] Production.INFO: count ==5338 [2025-02-14 13:20:31] Production.ERROR: pbx CDR StartTime 2025-02-14 10:20:06 - End Time 2025-02-14 13:20:06 [2025-02-14 13:20:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474011', 'tblTempUsageDetail_20' ) start [2025-02-14 13:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474011', 'tblTempUsageDetail_20' ) end [2025-02-14 13:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474011', 'tblTempVendorCDR_20' ) start [2025-02-14 13:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474011', 'tblTempVendorCDR_20' ) end [2025-02-14 13:20:31] Production.INFO: ProcessCDR(1,14474011,1,1,2) [2025-02-14 13:20:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:20:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:20:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:20:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474011', 'tblTempUsageDetail_20' ) start [2025-02-14 13:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474011', 'tblTempUsageDetail_20' ) end [2025-02-14 13:20:37] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:20:37] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:20:37] Production.INFO: ==23862== Releasing lock... [2025-02-14 13:20:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:20:37] Production.INFO: 68 MB #Memory Used# [2025-02-14 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:21:06 [end_date_ymd] => 2025-02-14 13:21:06 [RateCDR] => 1 ) [2025-02-14 13:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:21:06' and `end` < '2025-02-14 13:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:21:23] Production.INFO: count ==5354 [2025-02-14 13:21:26] Production.ERROR: pbx CDR StartTime 2025-02-14 10:21:06 - End Time 2025-02-14 13:21:06 [2025-02-14 13:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474016', 'tblTempUsageDetail_20' ) start [2025-02-14 13:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474016', 'tblTempUsageDetail_20' ) end [2025-02-14 13:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474016', 'tblTempVendorCDR_20' ) start [2025-02-14 13:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474016', 'tblTempVendorCDR_20' ) end [2025-02-14 13:21:26] Production.INFO: ProcessCDR(1,14474016,1,1,2) [2025-02-14 13:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474016', 'tblTempUsageDetail_20' ) start [2025-02-14 13:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474016', 'tblTempUsageDetail_20' ) end [2025-02-14 13:21:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:21:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:21:31] Production.INFO: ==23949== Releasing lock... [2025-02-14 13:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:21:31] Production.INFO: 68 MB #Memory Used# [2025-02-14 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:22:05 [end_date_ymd] => 2025-02-14 13:22:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:22:05' and `end` < '2025-02-14 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-02-14 13:22:22] Production.INFO: count ==5366 [2025-02-14 13:22:24] Production.ERROR: pbx CDR StartTime 2025-02-14 10:22:05 - End Time 2025-02-14 13:22:05 [2025-02-14 13:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474021', 'tblTempUsageDetail_20' ) start [2025-02-14 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474021', 'tblTempUsageDetail_20' ) end [2025-02-14 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474021', 'tblTempVendorCDR_20' ) start [2025-02-14 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474021', 'tblTempVendorCDR_20' ) end [2025-02-14 13:22:24] Production.INFO: ProcessCDR(1,14474021,1,1,2) [2025-02-14 13:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474021', 'tblTempUsageDetail_20' ) start [2025-02-14 13:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474021', 'tblTempUsageDetail_20' ) end [2025-02-14 13:22:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:22:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:22:29] Production.INFO: ==24078== Releasing lock... [2025-02-14 13:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:22:29] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:23:06 [end_date_ymd] => 2025-02-14 13:23:06 [RateCDR] => 1 ) [2025-02-14 13:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:23:06' and `end` < '2025-02-14 13:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:23:29] Production.INFO: count ==5376 [2025-02-14 13:23:31] Production.ERROR: pbx CDR StartTime 2025-02-14 10:23:06 - End Time 2025-02-14 13:23:06 [2025-02-14 13:23:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474026', 'tblTempUsageDetail_20' ) start [2025-02-14 13:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474026', 'tblTempUsageDetail_20' ) end [2025-02-14 13:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474026', 'tblTempVendorCDR_20' ) start [2025-02-14 13:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474026', 'tblTempVendorCDR_20' ) end [2025-02-14 13:23:31] Production.INFO: ProcessCDR(1,14474026,1,1,2) [2025-02-14 13:23:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:23:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:23:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:23:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474026', 'tblTempUsageDetail_20' ) start [2025-02-14 13:23:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474026', 'tblTempUsageDetail_20' ) end [2025-02-14 13:23:37] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:23:37] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:23:37] Production.INFO: ==24160== Releasing lock... [2025-02-14 13:23:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:23:37] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:24:05 [end_date_ymd] => 2025-02-14 13:24:05 [RateCDR] => 1 ) [2025-02-14 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:24:05' and `end` < '2025-02-14 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:24:25] Production.INFO: count ==5371 [2025-02-14 13:24:28] Production.ERROR: pbx CDR StartTime 2025-02-14 10:24:05 - End Time 2025-02-14 13:24:05 [2025-02-14 13:24:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474031', 'tblTempUsageDetail_20' ) start [2025-02-14 13:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474031', 'tblTempUsageDetail_20' ) end [2025-02-14 13:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474031', 'tblTempVendorCDR_20' ) start [2025-02-14 13:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474031', 'tblTempVendorCDR_20' ) end [2025-02-14 13:24:28] Production.INFO: ProcessCDR(1,14474031,1,1,2) [2025-02-14 13:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474031', 'tblTempUsageDetail_20' ) start [2025-02-14 13:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474031', 'tblTempUsageDetail_20' ) end [2025-02-14 13:24:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:24:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:24:33] Production.INFO: ==24266== Releasing lock... [2025-02-14 13:24:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:24:33] Production.INFO: 68.25 MB #Memory Used# [2025-02-14 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:25:05 [end_date_ymd] => 2025-02-14 13:25:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:25:05' and `end` < '2025-02-14 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-02-14 13:25:27] Production.INFO: count ==5356 [2025-02-14 13:25:30] Production.ERROR: pbx CDR StartTime 2025-02-14 10:25:05 - End Time 2025-02-14 13:25:05 [2025-02-14 13:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474036', 'tblTempUsageDetail_20' ) start [2025-02-14 13:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474036', 'tblTempUsageDetail_20' ) end [2025-02-14 13:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474036', 'tblTempVendorCDR_20' ) start [2025-02-14 13:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474036', 'tblTempVendorCDR_20' ) end [2025-02-14 13:25:30] Production.INFO: ProcessCDR(1,14474036,1,1,2) [2025-02-14 13:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474036', 'tblTempUsageDetail_20' ) start [2025-02-14 13:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474036', 'tblTempUsageDetail_20' ) end [2025-02-14 13:25:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:25:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:25:35] Production.INFO: ==24342== Releasing lock... [2025-02-14 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:25:35] Production.INFO: 68 MB #Memory Used# [2025-02-14 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:26:05 [end_date_ymd] => 2025-02-14 13:26:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:26:05' and `end` < '2025-02-14 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-02-14 13:26:23] Production.INFO: count ==5336 [2025-02-14 13:26:25] Production.ERROR: pbx CDR StartTime 2025-02-14 10:26:05 - End Time 2025-02-14 13:26:05 [2025-02-14 13:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474041', 'tblTempUsageDetail_20' ) start [2025-02-14 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474041', 'tblTempUsageDetail_20' ) end [2025-02-14 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474041', 'tblTempVendorCDR_20' ) start [2025-02-14 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474041', 'tblTempVendorCDR_20' ) end [2025-02-14 13:26:26] Production.INFO: ProcessCDR(1,14474041,1,1,2) [2025-02-14 13:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474041', 'tblTempUsageDetail_20' ) start [2025-02-14 13:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474041', 'tblTempUsageDetail_20' ) end [2025-02-14 13:26:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:26:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:26:31] Production.INFO: ==24457== Releasing lock... [2025-02-14 13:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:26:31] Production.INFO: 68 MB #Memory Used# [2025-02-14 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:27:05 [end_date_ymd] => 2025-02-14 13:27:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:27:05' and `end` < '2025-02-14 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-02-14 13:27:19] Production.INFO: count ==5343 [2025-02-14 13:27:22] Production.ERROR: pbx CDR StartTime 2025-02-14 10:27:05 - End Time 2025-02-14 13:27:05 [2025-02-14 13:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474046', 'tblTempUsageDetail_20' ) start [2025-02-14 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474046', 'tblTempUsageDetail_20' ) end [2025-02-14 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474046', 'tblTempVendorCDR_20' ) start [2025-02-14 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474046', 'tblTempVendorCDR_20' ) end [2025-02-14 13:27:22] Production.INFO: ProcessCDR(1,14474046,1,1,2) [2025-02-14 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474046', 'tblTempUsageDetail_20' ) start [2025-02-14 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474046', 'tblTempUsageDetail_20' ) end [2025-02-14 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:27:27] Production.INFO: ==24571== Releasing lock... [2025-02-14 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:27:27] Production.INFO: 68 MB #Memory Used# [2025-02-14 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:28:05 [end_date_ymd] => 2025-02-14 13:28:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:28:05' and `end` < '2025-02-14 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-02-14 13:28:19] Production.INFO: count ==5328 [2025-02-14 13:28:21] Production.ERROR: pbx CDR StartTime 2025-02-14 10:28:05 - End Time 2025-02-14 13:28:05 [2025-02-14 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474051', 'tblTempUsageDetail_20' ) start [2025-02-14 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474051', 'tblTempUsageDetail_20' ) end [2025-02-14 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474051', 'tblTempVendorCDR_20' ) start [2025-02-14 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474051', 'tblTempVendorCDR_20' ) end [2025-02-14 13:28:22] Production.INFO: ProcessCDR(1,14474051,1,1,2) [2025-02-14 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474051', 'tblTempUsageDetail_20' ) start [2025-02-14 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474051', 'tblTempUsageDetail_20' ) end [2025-02-14 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:28:27] Production.INFO: ==24675== Releasing lock... [2025-02-14 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:28:27] Production.INFO: 68 MB #Memory Used# [2025-02-14 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:29:06 [end_date_ymd] => 2025-02-14 13:29:06 [RateCDR] => 1 ) [2025-02-14 13:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:29:06' and `end` < '2025-02-14 13:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:29:20] Production.INFO: count ==5319 [2025-02-14 13:29:22] Production.ERROR: pbx CDR StartTime 2025-02-14 10:29:06 - End Time 2025-02-14 13:29:06 [2025-02-14 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474056', 'tblTempUsageDetail_20' ) start [2025-02-14 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474056', 'tblTempUsageDetail_20' ) end [2025-02-14 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474056', 'tblTempVendorCDR_20' ) start [2025-02-14 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474056', 'tblTempVendorCDR_20' ) end [2025-02-14 13:29:22] Production.INFO: ProcessCDR(1,14474056,1,1,2) [2025-02-14 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474056', 'tblTempUsageDetail_20' ) start [2025-02-14 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474056', 'tblTempUsageDetail_20' ) end [2025-02-14 13:29:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:29:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:29:27] Production.INFO: ==24757== Releasing lock... [2025-02-14 13:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:29:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-14 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:30:05 [end_date_ymd] => 2025-02-14 13:30:05 [RateCDR] => 1 ) [2025-02-14 13: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-02-14 10:30:05' and `end` < '2025-02-14 13: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-02-14 13:30:19] Production.INFO: count ==5292 [2025-02-14 13:30:22] Production.ERROR: pbx CDR StartTime 2025-02-14 10:30:05 - End Time 2025-02-14 13:30:05 [2025-02-14 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474061', 'tblTempUsageDetail_20' ) start [2025-02-14 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474061', 'tblTempUsageDetail_20' ) end [2025-02-14 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474061', 'tblTempVendorCDR_20' ) start [2025-02-14 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474061', 'tblTempVendorCDR_20' ) end [2025-02-14 13:30:22] Production.INFO: ProcessCDR(1,14474061,1,1,2) [2025-02-14 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474061', 'tblTempUsageDetail_20' ) start [2025-02-14 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474061', 'tblTempUsageDetail_20' ) end [2025-02-14 13:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:30:26] Production.INFO: ==24868== Releasing lock... [2025-02-14 13:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:30:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-14 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:31:06 [end_date_ymd] => 2025-02-14 13:31:06 [RateCDR] => 1 ) [2025-02-14 13: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-02-14 10:31:06' and `end` < '2025-02-14 13: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-02-14 13:31:21] Production.INFO: count ==5247 [2025-02-14 13:31:24] Production.ERROR: pbx CDR StartTime 2025-02-14 10:31:06 - End Time 2025-02-14 13:31:06 [2025-02-14 13:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474067', 'tblTempUsageDetail_20' ) start [2025-02-14 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474067', 'tblTempUsageDetail_20' ) end [2025-02-14 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474067', 'tblTempVendorCDR_20' ) start [2025-02-14 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474067', 'tblTempVendorCDR_20' ) end [2025-02-14 13:31:24] Production.INFO: ProcessCDR(1,14474067,1,1,2) [2025-02-14 13:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474067', 'tblTempUsageDetail_20' ) start [2025-02-14 13:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474067', 'tblTempUsageDetail_20' ) end [2025-02-14 13:31:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:31:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:31:29] Production.INFO: ==24951== Releasing lock... [2025-02-14 13:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:31:29] Production.INFO: 67.25 MB #Memory Used# [2025-02-14 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:32:05 [end_date_ymd] => 2025-02-14 13:32:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:32:05' and `end` < '2025-02-14 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-02-14 13:32:22] Production.INFO: count ==5242 [2025-02-14 13:32:24] Production.ERROR: pbx CDR StartTime 2025-02-14 10:32:05 - End Time 2025-02-14 13:32:05 [2025-02-14 13:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474072', 'tblTempUsageDetail_20' ) start [2025-02-14 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474072', 'tblTempUsageDetail_20' ) end [2025-02-14 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474072', 'tblTempVendorCDR_20' ) start [2025-02-14 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474072', 'tblTempVendorCDR_20' ) end [2025-02-14 13:32:24] Production.INFO: ProcessCDR(1,14474072,1,1,2) [2025-02-14 13:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474072', 'tblTempUsageDetail_20' ) start [2025-02-14 13:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474072', 'tblTempUsageDetail_20' ) end [2025-02-14 13:32:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:32:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:32:29] Production.INFO: ==25052== Releasing lock... [2025-02-14 13:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:32:29] Production.INFO: 67.25 MB #Memory Used# [2025-02-14 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:33:06 [end_date_ymd] => 2025-02-14 13:33:06 [RateCDR] => 1 ) [2025-02-14 13: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-02-14 10:33:06' and `end` < '2025-02-14 13: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-02-14 13:33:21] Production.INFO: count ==5220 [2025-02-14 13:33:24] Production.ERROR: pbx CDR StartTime 2025-02-14 10:33:06 - End Time 2025-02-14 13:33:06 [2025-02-14 13:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474077', 'tblTempUsageDetail_20' ) start [2025-02-14 13:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474077', 'tblTempUsageDetail_20' ) end [2025-02-14 13:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474077', 'tblTempVendorCDR_20' ) start [2025-02-14 13:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474077', 'tblTempVendorCDR_20' ) end [2025-02-14 13:33:24] Production.INFO: ProcessCDR(1,14474077,1,1,2) [2025-02-14 13:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474077', 'tblTempUsageDetail_20' ) start [2025-02-14 13:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474077', 'tblTempUsageDetail_20' ) end [2025-02-14 13:33:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:33:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:33:29] Production.INFO: ==25140== Releasing lock... [2025-02-14 13:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:33:29] Production.INFO: 67 MB #Memory Used# [2025-02-14 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:34:05 [end_date_ymd] => 2025-02-14 13:34:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:34:05' and `end` < '2025-02-14 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-02-14 13:34:19] Production.INFO: count ==5217 [2025-02-14 13:34:22] Production.ERROR: pbx CDR StartTime 2025-02-14 10:34:05 - End Time 2025-02-14 13:34:05 [2025-02-14 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474082', 'tblTempUsageDetail_20' ) start [2025-02-14 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474082', 'tblTempUsageDetail_20' ) end [2025-02-14 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474082', 'tblTempVendorCDR_20' ) start [2025-02-14 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474082', 'tblTempVendorCDR_20' ) end [2025-02-14 13:34:22] Production.INFO: ProcessCDR(1,14474082,1,1,2) [2025-02-14 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474082', 'tblTempUsageDetail_20' ) start [2025-02-14 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474082', 'tblTempUsageDetail_20' ) end [2025-02-14 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:34:27] Production.INFO: ==25220== Releasing lock... [2025-02-14 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:34:27] Production.INFO: 67 MB #Memory Used# [2025-02-14 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:35:05 [end_date_ymd] => 2025-02-14 13:35:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:35:05' and `end` < '2025-02-14 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-02-14 13:35:22] Production.INFO: count ==5225 [2025-02-14 13:35:24] Production.ERROR: pbx CDR StartTime 2025-02-14 10:35:05 - End Time 2025-02-14 13:35:05 [2025-02-14 13:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474087', 'tblTempUsageDetail_20' ) start [2025-02-14 13:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474087', 'tblTempUsageDetail_20' ) end [2025-02-14 13:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474087', 'tblTempVendorCDR_20' ) start [2025-02-14 13:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474087', 'tblTempVendorCDR_20' ) end [2025-02-14 13:35:24] Production.INFO: ProcessCDR(1,14474087,1,1,2) [2025-02-14 13:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:35:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:35:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474087', 'tblTempUsageDetail_20' ) start [2025-02-14 13:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474087', 'tblTempUsageDetail_20' ) end [2025-02-14 13:35:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:35:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:35:30] Production.INFO: ==25294== Releasing lock... [2025-02-14 13:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:35:30] Production.INFO: 67 MB #Memory Used# [2025-02-14 13:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:36:04 [end_date_ymd] => 2025-02-14 13:36:04 [RateCDR] => 1 ) [2025-02-14 13: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-02-14 10:36:04' and `end` < '2025-02-14 13: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-02-14 13:36:28] Production.INFO: count ==5235 [2025-02-14 13:36:30] Production.ERROR: pbx CDR StartTime 2025-02-14 10:36:04 - End Time 2025-02-14 13:36:04 [2025-02-14 13:36:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474092', 'tblTempUsageDetail_20' ) start [2025-02-14 13:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474092', 'tblTempUsageDetail_20' ) end [2025-02-14 13:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474092', 'tblTempVendorCDR_20' ) start [2025-02-14 13:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474092', 'tblTempVendorCDR_20' ) end [2025-02-14 13:36:30] Production.INFO: ProcessCDR(1,14474092,1,1,2) [2025-02-14 13:36:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:36:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:36:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:36:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:36:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474092', 'tblTempUsageDetail_20' ) start [2025-02-14 13:36:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474092', 'tblTempUsageDetail_20' ) end [2025-02-14 13:36:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:36:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:36:36] Production.INFO: ==25369== Releasing lock... [2025-02-14 13:36:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:36:36] Production.INFO: 67.25 MB #Memory Used# [2025-02-14 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:37:05 [end_date_ymd] => 2025-02-14 13:37:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:37:05' and `end` < '2025-02-14 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-02-14 13:37:23] Production.INFO: count ==5247 [2025-02-14 13:37:25] Production.ERROR: pbx CDR StartTime 2025-02-14 10:37:05 - End Time 2025-02-14 13:37:05 [2025-02-14 13:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474097', 'tblTempUsageDetail_20' ) start [2025-02-14 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474097', 'tblTempUsageDetail_20' ) end [2025-02-14 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474097', 'tblTempVendorCDR_20' ) start [2025-02-14 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474097', 'tblTempVendorCDR_20' ) end [2025-02-14 13:37:25] Production.INFO: ProcessCDR(1,14474097,1,1,2) [2025-02-14 13:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474097', 'tblTempUsageDetail_20' ) start [2025-02-14 13:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474097', 'tblTempUsageDetail_20' ) end [2025-02-14 13:37:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:37:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:37:31] Production.INFO: ==25448== Releasing lock... [2025-02-14 13:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:37:31] Production.INFO: 67.25 MB #Memory Used# [2025-02-14 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:38:06 [end_date_ymd] => 2025-02-14 13:38:06 [RateCDR] => 1 ) [2025-02-14 13:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:38:06' and `end` < '2025-02-14 13:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:38:21] Production.INFO: count ==5211 [2025-02-14 13:38:23] Production.ERROR: pbx CDR StartTime 2025-02-14 10:38:06 - End Time 2025-02-14 13:38:06 [2025-02-14 13:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474102', 'tblTempUsageDetail_20' ) start [2025-02-14 13:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474102', 'tblTempUsageDetail_20' ) end [2025-02-14 13:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474102', 'tblTempVendorCDR_20' ) start [2025-02-14 13:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474102', 'tblTempVendorCDR_20' ) end [2025-02-14 13:38:24] Production.INFO: ProcessCDR(1,14474102,1,1,2) [2025-02-14 13:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474102', 'tblTempUsageDetail_20' ) start [2025-02-14 13:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474102', 'tblTempUsageDetail_20' ) end [2025-02-14 13:38:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:38:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:38:29] Production.INFO: ==25527== Releasing lock... [2025-02-14 13:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:38:29] Production.INFO: 67 MB #Memory Used# [2025-02-14 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:39:05 [end_date_ymd] => 2025-02-14 13:39:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:39:05' and `end` < '2025-02-14 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-02-14 13:39:22] Production.INFO: count ==5216 [2025-02-14 13:39:24] Production.ERROR: pbx CDR StartTime 2025-02-14 10:39:05 - End Time 2025-02-14 13:39:05 [2025-02-14 13:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474107', 'tblTempUsageDetail_20' ) start [2025-02-14 13:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474107', 'tblTempUsageDetail_20' ) end [2025-02-14 13:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474107', 'tblTempVendorCDR_20' ) start [2025-02-14 13:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474107', 'tblTempVendorCDR_20' ) end [2025-02-14 13:39:25] Production.INFO: ProcessCDR(1,14474107,1,1,2) [2025-02-14 13:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474107', 'tblTempUsageDetail_20' ) start [2025-02-14 13:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474107', 'tblTempUsageDetail_20' ) end [2025-02-14 13:39:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:39:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:39:30] Production.INFO: ==25604== Releasing lock... [2025-02-14 13:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:39:30] Production.INFO: 67 MB #Memory Used# [2025-02-14 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:40:05 [end_date_ymd] => 2025-02-14 13:40:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:40:05' and `end` < '2025-02-14 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-02-14 13:40:24] Production.INFO: count ==5207 [2025-02-14 13:40:27] Production.ERROR: pbx CDR StartTime 2025-02-14 10:40:05 - End Time 2025-02-14 13:40:05 [2025-02-14 13:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474113', 'tblTempUsageDetail_20' ) start [2025-02-14 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474113', 'tblTempUsageDetail_20' ) end [2025-02-14 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474113', 'tblTempVendorCDR_20' ) start [2025-02-14 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474113', 'tblTempVendorCDR_20' ) end [2025-02-14 13:40:27] Production.INFO: ProcessCDR(1,14474113,1,1,2) [2025-02-14 13:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474113', 'tblTempUsageDetail_20' ) start [2025-02-14 13:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474113', 'tblTempUsageDetail_20' ) end [2025-02-14 13:40:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:40:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:40:32] Production.INFO: ==25683== Releasing lock... [2025-02-14 13:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:40:32] Production.INFO: 67 MB #Memory Used# [2025-02-14 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:41:05 [end_date_ymd] => 2025-02-14 13:41:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:41:05' and `end` < '2025-02-14 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-02-14 13:41:20] Production.INFO: count ==5185 [2025-02-14 13:41:23] Production.ERROR: pbx CDR StartTime 2025-02-14 10:41:05 - End Time 2025-02-14 13:41:05 [2025-02-14 13:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474118', 'tblTempUsageDetail_20' ) start [2025-02-14 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474118', 'tblTempUsageDetail_20' ) end [2025-02-14 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474118', 'tblTempVendorCDR_20' ) start [2025-02-14 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474118', 'tblTempVendorCDR_20' ) end [2025-02-14 13:41:23] Production.INFO: ProcessCDR(1,14474118,1,1,2) [2025-02-14 13:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474118', 'tblTempUsageDetail_20' ) start [2025-02-14 13:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474118', 'tblTempUsageDetail_20' ) end [2025-02-14 13:41:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:41:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:41:29] Production.INFO: ==25762== Releasing lock... [2025-02-14 13:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:41:29] Production.INFO: 66.75 MB #Memory Used# [2025-02-14 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:42:06 [end_date_ymd] => 2025-02-14 13:42:06 [RateCDR] => 1 ) [2025-02-14 13: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-02-14 10:42:06' and `end` < '2025-02-14 13: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-02-14 13:42:21] Production.INFO: count ==5166 [2025-02-14 13:42:24] Production.ERROR: pbx CDR StartTime 2025-02-14 10:42:06 - End Time 2025-02-14 13:42:06 [2025-02-14 13:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474123', 'tblTempUsageDetail_20' ) start [2025-02-14 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474123', 'tblTempUsageDetail_20' ) end [2025-02-14 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474123', 'tblTempVendorCDR_20' ) start [2025-02-14 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474123', 'tblTempVendorCDR_20' ) end [2025-02-14 13:42:24] Production.INFO: ProcessCDR(1,14474123,1,1,2) [2025-02-14 13:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474123', 'tblTempUsageDetail_20' ) start [2025-02-14 13:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474123', 'tblTempUsageDetail_20' ) end [2025-02-14 13:42:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:42:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:42:29] Production.INFO: ==25835== Releasing lock... [2025-02-14 13:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:42:29] Production.INFO: 66.75 MB #Memory Used# [2025-02-14 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:43:06 [end_date_ymd] => 2025-02-14 13:43:06 [RateCDR] => 1 ) [2025-02-14 13:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:43:06' and `end` < '2025-02-14 13:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:43:21] Production.INFO: count ==5149 [2025-02-14 13:43:23] Production.ERROR: pbx CDR StartTime 2025-02-14 10:43:06 - End Time 2025-02-14 13:43:06 [2025-02-14 13:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474128', 'tblTempUsageDetail_20' ) start [2025-02-14 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474128', 'tblTempUsageDetail_20' ) end [2025-02-14 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474128', 'tblTempVendorCDR_20' ) start [2025-02-14 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474128', 'tblTempVendorCDR_20' ) end [2025-02-14 13:43:24] Production.INFO: ProcessCDR(1,14474128,1,1,2) [2025-02-14 13:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474128', 'tblTempUsageDetail_20' ) start [2025-02-14 13:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474128', 'tblTempUsageDetail_20' ) end [2025-02-14 13:43:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:43:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:43:29] Production.INFO: ==25947== Releasing lock... [2025-02-14 13:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:43:29] Production.INFO: 66.5 MB #Memory Used# [2025-02-14 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:44:06 [end_date_ymd] => 2025-02-14 13:44:06 [RateCDR] => 1 ) [2025-02-14 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:44:06' and `end` < '2025-02-14 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:44:25] Production.INFO: count ==5120 [2025-02-14 13:44:27] Production.ERROR: pbx CDR StartTime 2025-02-14 10:44:06 - End Time 2025-02-14 13:44:06 [2025-02-14 13:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474133', 'tblTempUsageDetail_20' ) start [2025-02-14 13:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474133', 'tblTempUsageDetail_20' ) end [2025-02-14 13:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474133', 'tblTempVendorCDR_20' ) start [2025-02-14 13:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474133', 'tblTempVendorCDR_20' ) end [2025-02-14 13:44:27] Production.INFO: ProcessCDR(1,14474133,1,1,2) [2025-02-14 13:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474133', 'tblTempUsageDetail_20' ) start [2025-02-14 13:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474133', 'tblTempUsageDetail_20' ) end [2025-02-14 13:44:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:44:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:44:33] Production.INFO: ==26021== Releasing lock... [2025-02-14 13:44:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:44:33] Production.INFO: 66.25 MB #Memory Used# [2025-02-14 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:45:06 [end_date_ymd] => 2025-02-14 13:45:06 [RateCDR] => 1 ) [2025-02-14 13:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:45:06' and `end` < '2025-02-14 13:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:45:21] Production.INFO: count ==5124 [2025-02-14 13:45:23] Production.ERROR: pbx CDR StartTime 2025-02-14 10:45:06 - End Time 2025-02-14 13:45:06 [2025-02-14 13:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474138', 'tblTempUsageDetail_20' ) start [2025-02-14 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474138', 'tblTempUsageDetail_20' ) end [2025-02-14 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474138', 'tblTempVendorCDR_20' ) start [2025-02-14 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474138', 'tblTempVendorCDR_20' ) end [2025-02-14 13:45:23] Production.INFO: ProcessCDR(1,14474138,1,1,2) [2025-02-14 13:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474138', 'tblTempUsageDetail_20' ) start [2025-02-14 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474138', 'tblTempUsageDetail_20' ) end [2025-02-14 13:45:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:45:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:45:29] Production.INFO: ==26092== Releasing lock... [2025-02-14 13:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:45:29] Production.INFO: 66.25 MB #Memory Used# [2025-02-14 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:46:06 [end_date_ymd] => 2025-02-14 13:46:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:46:06' and `end` < '2025-02-14 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-02-14 13:46:25] Production.INFO: count ==5125 [2025-02-14 13:46:28] Production.ERROR: pbx CDR StartTime 2025-02-14 10:46:06 - End Time 2025-02-14 13:46:06 [2025-02-14 13:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474143', 'tblTempUsageDetail_20' ) start [2025-02-14 13:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474143', 'tblTempUsageDetail_20' ) end [2025-02-14 13:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474143', 'tblTempVendorCDR_20' ) start [2025-02-14 13:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474143', 'tblTempVendorCDR_20' ) end [2025-02-14 13:46:28] Production.INFO: ProcessCDR(1,14474143,1,1,2) [2025-02-14 13:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:46:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:46:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:46:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474143', 'tblTempUsageDetail_20' ) start [2025-02-14 13:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474143', 'tblTempUsageDetail_20' ) end [2025-02-14 13:46:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:46:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:46:33] Production.INFO: ==26169== Releasing lock... [2025-02-14 13:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:46:33] Production.INFO: 66.5 MB #Memory Used# [2025-02-14 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:47:06 [end_date_ymd] => 2025-02-14 13:47:06 [RateCDR] => 1 ) [2025-02-14 13:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:47:06' and `end` < '2025-02-14 13:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:47:20] Production.INFO: count ==5128 [2025-02-14 13:47:22] Production.ERROR: pbx CDR StartTime 2025-02-14 10:47:06 - End Time 2025-02-14 13:47:06 [2025-02-14 13:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474148', 'tblTempUsageDetail_20' ) start [2025-02-14 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474148', 'tblTempUsageDetail_20' ) end [2025-02-14 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474148', 'tblTempVendorCDR_20' ) start [2025-02-14 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474148', 'tblTempVendorCDR_20' ) end [2025-02-14 13:47:22] Production.INFO: ProcessCDR(1,14474148,1,1,2) [2025-02-14 13:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474148', 'tblTempUsageDetail_20' ) start [2025-02-14 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474148', 'tblTempUsageDetail_20' ) end [2025-02-14 13:47:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:47:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:47:28] Production.INFO: ==26239== Releasing lock... [2025-02-14 13:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:47:28] Production.INFO: 66.5 MB #Memory Used# [2025-02-14 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:48:05 [end_date_ymd] => 2025-02-14 13:48:05 [RateCDR] => 1 ) [2025-02-14 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:48:05' and `end` < '2025-02-14 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:48:24] Production.INFO: count ==5094 [2025-02-14 13:48:26] Production.ERROR: pbx CDR StartTime 2025-02-14 10:48:05 - End Time 2025-02-14 13:48:05 [2025-02-14 13:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474153', 'tblTempUsageDetail_20' ) start [2025-02-14 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474153', 'tblTempUsageDetail_20' ) end [2025-02-14 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474153', 'tblTempVendorCDR_20' ) start [2025-02-14 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474153', 'tblTempVendorCDR_20' ) end [2025-02-14 13:48:27] Production.INFO: ProcessCDR(1,14474153,1,1,2) [2025-02-14 13:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:48:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474153', 'tblTempUsageDetail_20' ) start [2025-02-14 13:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474153', 'tblTempUsageDetail_20' ) end [2025-02-14 13:48:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:48:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:48:32] Production.INFO: ==26309== Releasing lock... [2025-02-14 13:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:48:32] Production.INFO: 66.25 MB #Memory Used# [2025-02-14 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:49:06 [end_date_ymd] => 2025-02-14 13:49:06 [RateCDR] => 1 ) [2025-02-14 13: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-02-14 10:49:06' and `end` < '2025-02-14 13: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-02-14 13:49:22] Production.INFO: count ==5079 [2025-02-14 13:49:25] Production.ERROR: pbx CDR StartTime 2025-02-14 10:49:06 - End Time 2025-02-14 13:49:06 [2025-02-14 13:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474158', 'tblTempUsageDetail_20' ) start [2025-02-14 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474158', 'tblTempUsageDetail_20' ) end [2025-02-14 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474158', 'tblTempVendorCDR_20' ) start [2025-02-14 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474158', 'tblTempVendorCDR_20' ) end [2025-02-14 13:49:25] Production.INFO: ProcessCDR(1,14474158,1,1,2) [2025-02-14 13:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474158', 'tblTempUsageDetail_20' ) start [2025-02-14 13:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474158', 'tblTempUsageDetail_20' ) end [2025-02-14 13:49:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:49:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:49:30] Production.INFO: ==26385== Releasing lock... [2025-02-14 13:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:49:30] Production.INFO: 66 MB #Memory Used# [2025-02-14 13:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:50:07 [end_date_ymd] => 2025-02-14 13:50:07 [RateCDR] => 1 ) [2025-02-14 13: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-02-14 10:50:07' and `end` < '2025-02-14 13: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-02-14 13:50:26] Production.INFO: count ==5069 [2025-02-14 13:50:29] Production.ERROR: pbx CDR StartTime 2025-02-14 10:50:07 - End Time 2025-02-14 13:50:07 [2025-02-14 13:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474164', 'tblTempUsageDetail_20' ) start [2025-02-14 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474164', 'tblTempUsageDetail_20' ) end [2025-02-14 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474164', 'tblTempVendorCDR_20' ) start [2025-02-14 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474164', 'tblTempVendorCDR_20' ) end [2025-02-14 13:50:29] Production.INFO: ProcessCDR(1,14474164,1,1,2) [2025-02-14 13:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474164', 'tblTempUsageDetail_20' ) start [2025-02-14 13:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474164', 'tblTempUsageDetail_20' ) end [2025-02-14 13:50:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:50:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:50:34] Production.INFO: ==26459== Releasing lock... [2025-02-14 13:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:50:34] Production.INFO: 66 MB #Memory Used# [2025-02-14 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:51:05 [end_date_ymd] => 2025-02-14 13:51:05 [RateCDR] => 1 ) [2025-02-14 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:51:05' and `end` < '2025-02-14 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:51:22] Production.INFO: count ==5018 [2025-02-14 13:51:24] Production.ERROR: pbx CDR StartTime 2025-02-14 10:51:05 - End Time 2025-02-14 13:51:05 [2025-02-14 13:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474169', 'tblTempUsageDetail_20' ) start [2025-02-14 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474169', 'tblTempUsageDetail_20' ) end [2025-02-14 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474169', 'tblTempVendorCDR_20' ) start [2025-02-14 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474169', 'tblTempVendorCDR_20' ) end [2025-02-14 13:51:24] Production.INFO: ProcessCDR(1,14474169,1,1,2) [2025-02-14 13:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474169', 'tblTempUsageDetail_20' ) start [2025-02-14 13:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474169', 'tblTempUsageDetail_20' ) end [2025-02-14 13:51:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:51:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:51:29] Production.INFO: ==26535== Releasing lock... [2025-02-14 13:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:51:29] Production.INFO: 65.5 MB #Memory Used# [2025-02-14 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:52:05 [end_date_ymd] => 2025-02-14 13:52:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:52:05' and `end` < '2025-02-14 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-02-14 13:52:22] Production.INFO: count ==5038 [2025-02-14 13:52:24] Production.ERROR: pbx CDR StartTime 2025-02-14 10:52:05 - End Time 2025-02-14 13:52:05 [2025-02-14 13:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474174', 'tblTempUsageDetail_20' ) start [2025-02-14 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474174', 'tblTempUsageDetail_20' ) end [2025-02-14 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474174', 'tblTempVendorCDR_20' ) start [2025-02-14 13:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474174', 'tblTempVendorCDR_20' ) end [2025-02-14 13:52:24] Production.INFO: ProcessCDR(1,14474174,1,1,2) [2025-02-14 13:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474174', 'tblTempUsageDetail_20' ) start [2025-02-14 13:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474174', 'tblTempUsageDetail_20' ) end [2025-02-14 13:52:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:52:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:52:30] Production.INFO: ==26606== Releasing lock... [2025-02-14 13:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:52:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-14 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:53:06 [end_date_ymd] => 2025-02-14 13:53:06 [RateCDR] => 1 ) [2025-02-14 13: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-02-14 10:53:06' and `end` < '2025-02-14 13: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-02-14 13:53:20] Production.INFO: count ==5026 [2025-02-14 13:53:22] Production.ERROR: pbx CDR StartTime 2025-02-14 10:53:06 - End Time 2025-02-14 13:53:06 [2025-02-14 13:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474179', 'tblTempUsageDetail_20' ) start [2025-02-14 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474179', 'tblTempUsageDetail_20' ) end [2025-02-14 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474179', 'tblTempVendorCDR_20' ) start [2025-02-14 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474179', 'tblTempVendorCDR_20' ) end [2025-02-14 13:53:22] Production.INFO: ProcessCDR(1,14474179,1,1,2) [2025-02-14 13:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474179', 'tblTempUsageDetail_20' ) start [2025-02-14 13:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474179', 'tblTempUsageDetail_20' ) end [2025-02-14 13:53:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:53:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:53:28] Production.INFO: ==26680== Releasing lock... [2025-02-14 13:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:53:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-14 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:54:05 [end_date_ymd] => 2025-02-14 13:54:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:54:05' and `end` < '2025-02-14 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-02-14 13:54:20] Production.INFO: count ==5013 [2025-02-14 13:54:22] Production.ERROR: pbx CDR StartTime 2025-02-14 10:54:05 - End Time 2025-02-14 13:54:05 [2025-02-14 13:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474184', 'tblTempUsageDetail_20' ) start [2025-02-14 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474184', 'tblTempUsageDetail_20' ) end [2025-02-14 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474184', 'tblTempVendorCDR_20' ) start [2025-02-14 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474184', 'tblTempVendorCDR_20' ) end [2025-02-14 13:54:22] Production.INFO: ProcessCDR(1,14474184,1,1,2) [2025-02-14 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474184', 'tblTempUsageDetail_20' ) start [2025-02-14 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474184', 'tblTempUsageDetail_20' ) end [2025-02-14 13:54:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:54:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:54:28] Production.INFO: ==26756== Releasing lock... [2025-02-14 13:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:54:28] Production.INFO: 65.5 MB #Memory Used# [2025-02-14 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:55:06 [end_date_ymd] => 2025-02-14 13:55:06 [RateCDR] => 1 ) [2025-02-14 13:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 10:55:06' and `end` < '2025-02-14 13:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 13:55:26] Production.INFO: count ==5019 [2025-02-14 13:55:28] Production.ERROR: pbx CDR StartTime 2025-02-14 10:55:06 - End Time 2025-02-14 13:55:06 [2025-02-14 13:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474189', 'tblTempUsageDetail_20' ) start [2025-02-14 13:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474189', 'tblTempUsageDetail_20' ) end [2025-02-14 13:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474189', 'tblTempVendorCDR_20' ) start [2025-02-14 13:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474189', 'tblTempVendorCDR_20' ) end [2025-02-14 13:55:28] Production.INFO: ProcessCDR(1,14474189,1,1,2) [2025-02-14 13:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474189', 'tblTempUsageDetail_20' ) start [2025-02-14 13:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474189', 'tblTempUsageDetail_20' ) end [2025-02-14 13:55:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:55:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:55:33] Production.INFO: ==26831== Releasing lock... [2025-02-14 13:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:55:33] Production.INFO: 65.5 MB #Memory Used# [2025-02-14 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:56:06 [end_date_ymd] => 2025-02-14 13:56:06 [RateCDR] => 1 ) [2025-02-14 13: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-02-14 10:56:06' and `end` < '2025-02-14 13: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-02-14 13:56:21] Production.INFO: count ==5021 [2025-02-14 13:56:23] Production.ERROR: pbx CDR StartTime 2025-02-14 10:56:06 - End Time 2025-02-14 13:56:06 [2025-02-14 13:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474194', 'tblTempUsageDetail_20' ) start [2025-02-14 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474194', 'tblTempUsageDetail_20' ) end [2025-02-14 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474194', 'tblTempVendorCDR_20' ) start [2025-02-14 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474194', 'tblTempVendorCDR_20' ) end [2025-02-14 13:56:23] Production.INFO: ProcessCDR(1,14474194,1,1,2) [2025-02-14 13:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474194', 'tblTempUsageDetail_20' ) start [2025-02-14 13:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474194', 'tblTempUsageDetail_20' ) end [2025-02-14 13:56:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:56:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:56:28] Production.INFO: ==26901== Releasing lock... [2025-02-14 13:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:56:28] Production.INFO: 65.5 MB #Memory Used# [2025-02-14 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:57:05 [end_date_ymd] => 2025-02-14 13:57:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:57:05' and `end` < '2025-02-14 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-02-14 13:57:22] Production.INFO: count ==5022 [2025-02-14 13:57:24] Production.ERROR: pbx CDR StartTime 2025-02-14 10:57:05 - End Time 2025-02-14 13:57:05 [2025-02-14 13:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474199', 'tblTempUsageDetail_20' ) start [2025-02-14 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474199', 'tblTempUsageDetail_20' ) end [2025-02-14 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474199', 'tblTempVendorCDR_20' ) start [2025-02-14 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474199', 'tblTempVendorCDR_20' ) end [2025-02-14 13:57:24] Production.INFO: ProcessCDR(1,14474199,1,1,2) [2025-02-14 13:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474199', 'tblTempUsageDetail_20' ) start [2025-02-14 13:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474199', 'tblTempUsageDetail_20' ) end [2025-02-14 13:57:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:57:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:57:30] Production.INFO: ==26970== Releasing lock... [2025-02-14 13:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:57:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-14 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:58:05 [end_date_ymd] => 2025-02-14 13:58:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:58:05' and `end` < '2025-02-14 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-02-14 13:58:20] Production.INFO: count ==5031 [2025-02-14 13:58:23] Production.ERROR: pbx CDR StartTime 2025-02-14 10:58:05 - End Time 2025-02-14 13:58:05 [2025-02-14 13:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474204', 'tblTempUsageDetail_20' ) start [2025-02-14 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474204', 'tblTempUsageDetail_20' ) end [2025-02-14 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474204', 'tblTempVendorCDR_20' ) start [2025-02-14 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474204', 'tblTempVendorCDR_20' ) end [2025-02-14 13:58:23] Production.INFO: ProcessCDR(1,14474204,1,1,2) [2025-02-14 13:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474204', 'tblTempUsageDetail_20' ) start [2025-02-14 13:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474204', 'tblTempUsageDetail_20' ) end [2025-02-14 13:58:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:58:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:58:28] Production.INFO: ==27087== Releasing lock... [2025-02-14 13:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:58:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-14 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 10:59:05 [end_date_ymd] => 2025-02-14 13:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 10:59:05' and `end` < '2025-02-14 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-02-14 13:59:21] Production.INFO: count ==5039 [2025-02-14 13:59:23] Production.ERROR: pbx CDR StartTime 2025-02-14 10:59:05 - End Time 2025-02-14 13:59:05 [2025-02-14 13:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474209', 'tblTempUsageDetail_20' ) start [2025-02-14 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474209', 'tblTempUsageDetail_20' ) end [2025-02-14 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474209', 'tblTempVendorCDR_20' ) start [2025-02-14 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474209', 'tblTempVendorCDR_20' ) end [2025-02-14 13:59:23] Production.INFO: ProcessCDR(1,14474209,1,1,2) [2025-02-14 13:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 13:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 13:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474209', 'tblTempUsageDetail_20' ) start [2025-02-14 13:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474209', 'tblTempUsageDetail_20' ) end [2025-02-14 13:59:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 13:59:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 13:59:29] Production.INFO: ==27157== Releasing lock... [2025-02-14 13:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 13:59:29] Production.INFO: 65.75 MB #Memory Used# [2025-02-14 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:00:06 [end_date_ymd] => 2025-02-14 14:00:06 [RateCDR] => 1 ) [2025-02-14 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:00:06' and `end` < '2025-02-14 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:00:27] Production.INFO: count ==5064 [2025-02-14 14:00:29] Production.ERROR: pbx CDR StartTime 2025-02-14 11:00:06 - End Time 2025-02-14 14:00:06 [2025-02-14 14:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474215', 'tblTempUsageDetail_20' ) start [2025-02-14 14:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474215', 'tblTempUsageDetail_20' ) end [2025-02-14 14:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474215', 'tblTempVendorCDR_20' ) start [2025-02-14 14:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474215', 'tblTempVendorCDR_20' ) end [2025-02-14 14:00:30] Production.INFO: ProcessCDR(1,14474215,1,1,2) [2025-02-14 14:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474215', 'tblTempUsageDetail_20' ) start [2025-02-14 14:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474215', 'tblTempUsageDetail_20' ) end [2025-02-14 14:00:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:00:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:00:35] Production.INFO: ==27234== Releasing lock... [2025-02-14 14:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:00:35] Production.INFO: 66 MB #Memory Used# [2025-02-14 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:01:05 [end_date_ymd] => 2025-02-14 14:01:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:01:05' and `end` < '2025-02-14 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-02-14 14:01:23] Production.INFO: count ==5051 [2025-02-14 14:01:25] Production.ERROR: pbx CDR StartTime 2025-02-14 11:01:05 - End Time 2025-02-14 14:01:05 [2025-02-14 14:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474220', 'tblTempUsageDetail_20' ) start [2025-02-14 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474220', 'tblTempUsageDetail_20' ) end [2025-02-14 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474220', 'tblTempVendorCDR_20' ) start [2025-02-14 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474220', 'tblTempVendorCDR_20' ) end [2025-02-14 14:01:25] Production.INFO: ProcessCDR(1,14474220,1,1,2) [2025-02-14 14:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474220', 'tblTempUsageDetail_20' ) start [2025-02-14 14:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474220', 'tblTempUsageDetail_20' ) end [2025-02-14 14:01:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:01:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:01:30] Production.INFO: ==27323== Releasing lock... [2025-02-14 14:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:01:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-14 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:02:05 [end_date_ymd] => 2025-02-14 14:02:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:02:05' and `end` < '2025-02-14 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-02-14 14:02:21] Production.INFO: count ==5026 [2025-02-14 14:02:23] Production.ERROR: pbx CDR StartTime 2025-02-14 11:02:05 - End Time 2025-02-14 14:02:05 [2025-02-14 14:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474225', 'tblTempUsageDetail_20' ) start [2025-02-14 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474225', 'tblTempUsageDetail_20' ) end [2025-02-14 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474225', 'tblTempVendorCDR_20' ) start [2025-02-14 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474225', 'tblTempVendorCDR_20' ) end [2025-02-14 14:02:24] Production.INFO: ProcessCDR(1,14474225,1,1,2) [2025-02-14 14:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474225', 'tblTempUsageDetail_20' ) start [2025-02-14 14:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474225', 'tblTempUsageDetail_20' ) end [2025-02-14 14:02:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:02:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:02:29] Production.INFO: ==27395== Releasing lock... [2025-02-14 14:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:02:29] Production.INFO: 65.75 MB #Memory Used# [2025-02-14 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:03:06 [end_date_ymd] => 2025-02-14 14:03:06 [RateCDR] => 1 ) [2025-02-14 14:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:03:06' and `end` < '2025-02-14 14:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:03:20] Production.INFO: count ==5023 [2025-02-14 14:03:22] Production.ERROR: pbx CDR StartTime 2025-02-14 11:03:06 - End Time 2025-02-14 14:03:06 [2025-02-14 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474230', 'tblTempUsageDetail_20' ) start [2025-02-14 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474230', 'tblTempUsageDetail_20' ) end [2025-02-14 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474230', 'tblTempVendorCDR_20' ) start [2025-02-14 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474230', 'tblTempVendorCDR_20' ) end [2025-02-14 14:03:22] Production.INFO: ProcessCDR(1,14474230,1,1,2) [2025-02-14 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474230', 'tblTempUsageDetail_20' ) start [2025-02-14 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474230', 'tblTempUsageDetail_20' ) end [2025-02-14 14:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:03:27] Production.INFO: ==27466== Releasing lock... [2025-02-14 14:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:03:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-14 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:04:05 [end_date_ymd] => 2025-02-14 14:04:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:04:05' and `end` < '2025-02-14 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-02-14 14:04:20] Production.INFO: count ==5002 [2025-02-14 14:04:22] Production.ERROR: pbx CDR StartTime 2025-02-14 11:04:05 - End Time 2025-02-14 14:04:05 [2025-02-14 14:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474235', 'tblTempUsageDetail_20' ) start [2025-02-14 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474235', 'tblTempUsageDetail_20' ) end [2025-02-14 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474235', 'tblTempVendorCDR_20' ) start [2025-02-14 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474235', 'tblTempVendorCDR_20' ) end [2025-02-14 14:04:22] Production.INFO: ProcessCDR(1,14474235,1,1,2) [2025-02-14 14:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474235', 'tblTempUsageDetail_20' ) start [2025-02-14 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474235', 'tblTempUsageDetail_20' ) end [2025-02-14 14:04:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:04:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:04:28] Production.INFO: ==27540== Releasing lock... [2025-02-14 14:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:04:28] Production.INFO: 65.5 MB #Memory Used# [2025-02-14 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:05:06 [end_date_ymd] => 2025-02-14 14:05:06 [RateCDR] => 1 ) [2025-02-14 14:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:05:06' and `end` < '2025-02-14 14:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:05:20] Production.INFO: count ==5006 [2025-02-14 14:05:22] Production.ERROR: pbx CDR StartTime 2025-02-14 11:05:06 - End Time 2025-02-14 14:05:06 [2025-02-14 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474240', 'tblTempUsageDetail_20' ) start [2025-02-14 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474240', 'tblTempUsageDetail_20' ) end [2025-02-14 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474240', 'tblTempVendorCDR_20' ) start [2025-02-14 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474240', 'tblTempVendorCDR_20' ) end [2025-02-14 14:05:22] Production.INFO: ProcessCDR(1,14474240,1,1,2) [2025-02-14 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474240', 'tblTempUsageDetail_20' ) start [2025-02-14 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474240', 'tblTempUsageDetail_20' ) end [2025-02-14 14:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:05:27] Production.INFO: ==27610== Releasing lock... [2025-02-14 14:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:05:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-14 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:06:05 [end_date_ymd] => 2025-02-14 14:06:05 [RateCDR] => 1 ) [2025-02-14 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:06:05' and `end` < '2025-02-14 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:06:25] Production.INFO: count ==5023 [2025-02-14 14:06:27] Production.ERROR: pbx CDR StartTime 2025-02-14 11:06:05 - End Time 2025-02-14 14:06:05 [2025-02-14 14:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474245', 'tblTempUsageDetail_20' ) start [2025-02-14 14:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474245', 'tblTempUsageDetail_20' ) end [2025-02-14 14:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474245', 'tblTempVendorCDR_20' ) start [2025-02-14 14:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474245', 'tblTempVendorCDR_20' ) end [2025-02-14 14:06:28] Production.INFO: ProcessCDR(1,14474245,1,1,2) [2025-02-14 14:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474245', 'tblTempUsageDetail_20' ) start [2025-02-14 14:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474245', 'tblTempUsageDetail_20' ) end [2025-02-14 14:06:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:06:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:06:33] Production.INFO: ==27684== Releasing lock... [2025-02-14 14:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:06:33] Production.INFO: 65.5 MB #Memory Used# [2025-02-14 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:07:06 [end_date_ymd] => 2025-02-14 14:07:06 [RateCDR] => 1 ) [2025-02-14 14:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:07:06' and `end` < '2025-02-14 14:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:07:29] Production.INFO: count ==5042 [2025-02-14 14:07:31] Production.ERROR: pbx CDR StartTime 2025-02-14 11:07:06 - End Time 2025-02-14 14:07:06 [2025-02-14 14:07:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474250', 'tblTempUsageDetail_20' ) start [2025-02-14 14:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474250', 'tblTempUsageDetail_20' ) end [2025-02-14 14:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474250', 'tblTempVendorCDR_20' ) start [2025-02-14 14:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474250', 'tblTempVendorCDR_20' ) end [2025-02-14 14:07:32] Production.INFO: ProcessCDR(1,14474250,1,1,2) [2025-02-14 14:07:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:07:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:07:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:07:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:07:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474250', 'tblTempUsageDetail_20' ) start [2025-02-14 14:07:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474250', 'tblTempUsageDetail_20' ) end [2025-02-14 14:07:37] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:07:37] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:07:37] Production.INFO: ==27755== Releasing lock... [2025-02-14 14:07:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:07:37] Production.INFO: 65.75 MB #Memory Used# [2025-02-14 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:08:05 [end_date_ymd] => 2025-02-14 14:08:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:08:05' and `end` < '2025-02-14 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-02-14 14:08:24] Production.INFO: count ==5051 [2025-02-14 14:08:26] Production.ERROR: pbx CDR StartTime 2025-02-14 11:08:05 - End Time 2025-02-14 14:08:05 [2025-02-14 14:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474255', 'tblTempUsageDetail_20' ) start [2025-02-14 14:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474255', 'tblTempUsageDetail_20' ) end [2025-02-14 14:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474255', 'tblTempVendorCDR_20' ) start [2025-02-14 14:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474255', 'tblTempVendorCDR_20' ) end [2025-02-14 14:08:26] Production.INFO: ProcessCDR(1,14474255,1,1,2) [2025-02-14 14:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474255', 'tblTempUsageDetail_20' ) start [2025-02-14 14:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474255', 'tblTempUsageDetail_20' ) end [2025-02-14 14:08:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:08:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:08:31] Production.INFO: ==27827== Releasing lock... [2025-02-14 14:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:08:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-14 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:09:06 [end_date_ymd] => 2025-02-14 14:09:06 [RateCDR] => 1 ) [2025-02-14 14:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:09:06' and `end` < '2025-02-14 14:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:09:21] Production.INFO: count ==5049 [2025-02-14 14:09:23] Production.ERROR: pbx CDR StartTime 2025-02-14 11:09:06 - End Time 2025-02-14 14:09:06 [2025-02-14 14:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474260', 'tblTempUsageDetail_20' ) start [2025-02-14 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474260', 'tblTempUsageDetail_20' ) end [2025-02-14 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474260', 'tblTempVendorCDR_20' ) start [2025-02-14 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474260', 'tblTempVendorCDR_20' ) end [2025-02-14 14:09:23] Production.INFO: ProcessCDR(1,14474260,1,1,2) [2025-02-14 14:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474260', 'tblTempUsageDetail_20' ) start [2025-02-14 14:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474260', 'tblTempUsageDetail_20' ) end [2025-02-14 14:09:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:09:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:09:29] Production.INFO: ==27900== Releasing lock... [2025-02-14 14:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:09:29] Production.INFO: 65.75 MB #Memory Used# [2025-02-14 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:10:06 [end_date_ymd] => 2025-02-14 14:10:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:10:06' and `end` < '2025-02-14 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-02-14 14:10:26] Production.INFO: count ==5054 [2025-02-14 14:10:29] Production.ERROR: pbx CDR StartTime 2025-02-14 11:10:06 - End Time 2025-02-14 14:10:06 [2025-02-14 14:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474266', 'tblTempUsageDetail_20' ) start [2025-02-14 14:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474266', 'tblTempUsageDetail_20' ) end [2025-02-14 14:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474266', 'tblTempVendorCDR_20' ) start [2025-02-14 14:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474266', 'tblTempVendorCDR_20' ) end [2025-02-14 14:10:29] Production.INFO: ProcessCDR(1,14474266,1,1,2) [2025-02-14 14:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474266', 'tblTempUsageDetail_20' ) start [2025-02-14 14:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474266', 'tblTempUsageDetail_20' ) end [2025-02-14 14:10:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:10:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:10:34] Production.INFO: ==27980== Releasing lock... [2025-02-14 14:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:10:34] Production.INFO: 65.75 MB #Memory Used# [2025-02-14 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:11:05 [end_date_ymd] => 2025-02-14 14:11:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:11:05' and `end` < '2025-02-14 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-02-14 14:11:22] Production.INFO: count ==5061 [2025-02-14 14:11:25] Production.ERROR: pbx CDR StartTime 2025-02-14 11:11:05 - End Time 2025-02-14 14:11:05 [2025-02-14 14:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474271', 'tblTempUsageDetail_20' ) start [2025-02-14 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474271', 'tblTempUsageDetail_20' ) end [2025-02-14 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474271', 'tblTempVendorCDR_20' ) start [2025-02-14 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474271', 'tblTempVendorCDR_20' ) end [2025-02-14 14:11:25] Production.INFO: ProcessCDR(1,14474271,1,1,2) [2025-02-14 14:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474271', 'tblTempUsageDetail_20' ) start [2025-02-14 14:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474271', 'tblTempUsageDetail_20' ) end [2025-02-14 14:11:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:11:30] Production.INFO: ==28056== Releasing lock... [2025-02-14 14:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:11:30] Production.INFO: 66 MB #Memory Used# [2025-02-14 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:12:05 [end_date_ymd] => 2025-02-14 14:12:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:12:05' and `end` < '2025-02-14 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-02-14 14:12:22] Production.INFO: count ==5056 [2025-02-14 14:12:24] Production.ERROR: pbx CDR StartTime 2025-02-14 11:12:05 - End Time 2025-02-14 14:12:05 [2025-02-14 14:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474276', 'tblTempUsageDetail_20' ) start [2025-02-14 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474276', 'tblTempUsageDetail_20' ) end [2025-02-14 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474276', 'tblTempVendorCDR_20' ) start [2025-02-14 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474276', 'tblTempVendorCDR_20' ) end [2025-02-14 14:12:24] Production.INFO: ProcessCDR(1,14474276,1,1,2) [2025-02-14 14:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474276', 'tblTempUsageDetail_20' ) start [2025-02-14 14:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474276', 'tblTempUsageDetail_20' ) end [2025-02-14 14:12:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:12:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:12:29] Production.INFO: ==28131== Releasing lock... [2025-02-14 14:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:12:29] Production.INFO: 65.75 MB #Memory Used# [2025-02-14 14:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:13:06 [end_date_ymd] => 2025-02-14 14:13:06 [RateCDR] => 1 ) [2025-02-14 14:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:13:06' and `end` < '2025-02-14 14:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:13:21] Production.INFO: count ==5059 [2025-02-14 14:13:23] Production.ERROR: pbx CDR StartTime 2025-02-14 11:13:06 - End Time 2025-02-14 14:13:06 [2025-02-14 14:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474281', 'tblTempUsageDetail_20' ) start [2025-02-14 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474281', 'tblTempUsageDetail_20' ) end [2025-02-14 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474281', 'tblTempVendorCDR_20' ) start [2025-02-14 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474281', 'tblTempVendorCDR_20' ) end [2025-02-14 14:13:23] Production.INFO: ProcessCDR(1,14474281,1,1,2) [2025-02-14 14:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474281', 'tblTempUsageDetail_20' ) start [2025-02-14 14:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474281', 'tblTempUsageDetail_20' ) end [2025-02-14 14:13:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:13:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:13:28] Production.INFO: ==28243== Releasing lock... [2025-02-14 14:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:13:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-14 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:14:05 [end_date_ymd] => 2025-02-14 14:14:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:14:05' and `end` < '2025-02-14 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-02-14 14:14:19] Production.INFO: count ==5048 [2025-02-14 14:14:21] Production.ERROR: pbx CDR StartTime 2025-02-14 11:14:05 - End Time 2025-02-14 14:14:05 [2025-02-14 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474286', 'tblTempUsageDetail_20' ) start [2025-02-14 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474286', 'tblTempUsageDetail_20' ) end [2025-02-14 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474286', 'tblTempVendorCDR_20' ) start [2025-02-14 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474286', 'tblTempVendorCDR_20' ) end [2025-02-14 14:14:21] Production.INFO: ProcessCDR(1,14474286,1,1,2) [2025-02-14 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474286', 'tblTempUsageDetail_20' ) start [2025-02-14 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474286', 'tblTempUsageDetail_20' ) end [2025-02-14 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:14:27] Production.INFO: ==28317== Releasing lock... [2025-02-14 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:14:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-14 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:15:06 [end_date_ymd] => 2025-02-14 14:15:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:15:06' and `end` < '2025-02-14 14:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:15:25] Production.INFO: count ==5025 [2025-02-14 14:15:28] Production.ERROR: pbx CDR StartTime 2025-02-14 11:15:06 - End Time 2025-02-14 14:15:06 [2025-02-14 14:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474291', 'tblTempUsageDetail_20' ) start [2025-02-14 14:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474291', 'tblTempUsageDetail_20' ) end [2025-02-14 14:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474291', 'tblTempVendorCDR_20' ) start [2025-02-14 14:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474291', 'tblTempVendorCDR_20' ) end [2025-02-14 14:15:28] Production.INFO: ProcessCDR(1,14474291,1,1,2) [2025-02-14 14:15:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474291', 'tblTempUsageDetail_20' ) start [2025-02-14 14:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474291', 'tblTempUsageDetail_20' ) end [2025-02-14 14:15:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:15:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:15:32] Production.INFO: ==28397== Releasing lock... [2025-02-14 14:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:15:32] Production.INFO: 65.5 MB #Memory Used# [2025-02-14 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:16:05 [end_date_ymd] => 2025-02-14 14:16:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:16:05' and `end` < '2025-02-14 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-02-14 14:16:24] Production.INFO: count ==5025 [2025-02-14 14:16:26] Production.ERROR: pbx CDR StartTime 2025-02-14 11:16:05 - End Time 2025-02-14 14:16:05 [2025-02-14 14:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474296', 'tblTempUsageDetail_20' ) start [2025-02-14 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474296', 'tblTempUsageDetail_20' ) end [2025-02-14 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474296', 'tblTempVendorCDR_20' ) start [2025-02-14 14:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474296', 'tblTempVendorCDR_20' ) end [2025-02-14 14:16:26] Production.INFO: ProcessCDR(1,14474296,1,1,2) [2025-02-14 14:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474296', 'tblTempUsageDetail_20' ) start [2025-02-14 14:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474296', 'tblTempUsageDetail_20' ) end [2025-02-14 14:16:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:16:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:16:32] Production.INFO: ==28469== Releasing lock... [2025-02-14 14:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:16:32] Production.INFO: 65.5 MB #Memory Used# [2025-02-14 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:17:06 [end_date_ymd] => 2025-02-14 14:17:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:17:06' and `end` < '2025-02-14 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-02-14 14:17:22] Production.INFO: count ==5027 [2025-02-14 14:17:24] Production.ERROR: pbx CDR StartTime 2025-02-14 11:17:06 - End Time 2025-02-14 14:17:06 [2025-02-14 14:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474301', 'tblTempUsageDetail_20' ) start [2025-02-14 14:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474301', 'tblTempUsageDetail_20' ) end [2025-02-14 14:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474301', 'tblTempVendorCDR_20' ) start [2025-02-14 14:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474301', 'tblTempVendorCDR_20' ) end [2025-02-14 14:17:25] Production.INFO: ProcessCDR(1,14474301,1,1,2) [2025-02-14 14:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474301', 'tblTempUsageDetail_20' ) start [2025-02-14 14:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474301', 'tblTempUsageDetail_20' ) end [2025-02-14 14:17:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:17:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:17:30] Production.INFO: ==28546== Releasing lock... [2025-02-14 14:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:17:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-14 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:18:05 [end_date_ymd] => 2025-02-14 14:18:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:18:05' and `end` < '2025-02-14 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-02-14 14:18:22] Production.INFO: count ==5009 [2025-02-14 14:18:25] Production.ERROR: pbx CDR StartTime 2025-02-14 11:18:05 - End Time 2025-02-14 14:18:05 [2025-02-14 14:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474306', 'tblTempUsageDetail_20' ) start [2025-02-14 14:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474306', 'tblTempUsageDetail_20' ) end [2025-02-14 14:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474306', 'tblTempVendorCDR_20' ) start [2025-02-14 14:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474306', 'tblTempVendorCDR_20' ) end [2025-02-14 14:18:25] Production.INFO: ProcessCDR(1,14474306,1,1,2) [2025-02-14 14:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474306', 'tblTempUsageDetail_20' ) start [2025-02-14 14:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474306', 'tblTempUsageDetail_20' ) end [2025-02-14 14:18:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:18:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:18:30] Production.INFO: ==28616== Releasing lock... [2025-02-14 14:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:18:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-14 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:19:06 [end_date_ymd] => 2025-02-14 14:19:06 [RateCDR] => 1 ) [2025-02-14 14:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:19:06' and `end` < '2025-02-14 14:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:19:24] Production.INFO: count ==5021 [2025-02-14 14:19:26] Production.ERROR: pbx CDR StartTime 2025-02-14 11:19:06 - End Time 2025-02-14 14:19:06 [2025-02-14 14:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474311', 'tblTempUsageDetail_20' ) start [2025-02-14 14:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474311', 'tblTempUsageDetail_20' ) end [2025-02-14 14:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474311', 'tblTempVendorCDR_20' ) start [2025-02-14 14:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474311', 'tblTempVendorCDR_20' ) end [2025-02-14 14:19:27] Production.INFO: ProcessCDR(1,14474311,1,1,2) [2025-02-14 14:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:19:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:19:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474311', 'tblTempUsageDetail_20' ) start [2025-02-14 14:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474311', 'tblTempUsageDetail_20' ) end [2025-02-14 14:19:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:19:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:19:32] Production.INFO: ==28688== Releasing lock... [2025-02-14 14:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:19:32] Production.INFO: 65.5 MB #Memory Used# [2025-02-14 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:20:06 [end_date_ymd] => 2025-02-14 14:20:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:20:06' and `end` < '2025-02-14 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-02-14 14:20:30] Production.INFO: count ==5035 [2025-02-14 14:20:32] Production.ERROR: pbx CDR StartTime 2025-02-14 11:20:06 - End Time 2025-02-14 14:20:06 [2025-02-14 14:20:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474317', 'tblTempUsageDetail_20' ) start [2025-02-14 14:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474317', 'tblTempUsageDetail_20' ) end [2025-02-14 14:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474317', 'tblTempVendorCDR_20' ) start [2025-02-14 14:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474317', 'tblTempVendorCDR_20' ) end [2025-02-14 14:20:32] Production.INFO: ProcessCDR(1,14474317,1,1,2) [2025-02-14 14:20:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:20:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:20:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:20:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474317', 'tblTempUsageDetail_20' ) start [2025-02-14 14:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474317', 'tblTempUsageDetail_20' ) end [2025-02-14 14:20:38] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:20:38] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:20:38] Production.INFO: ==28759== Releasing lock... [2025-02-14 14:20:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:20:38] Production.INFO: 65.75 MB #Memory Used# [2025-02-14 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:21:06 [end_date_ymd] => 2025-02-14 14:21:06 [RateCDR] => 1 ) [2025-02-14 14: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-02-14 11:21:06' and `end` < '2025-02-14 14: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-02-14 14:21:25] Production.INFO: count ==4983 [2025-02-14 14:21:27] Production.ERROR: pbx CDR StartTime 2025-02-14 11:21:06 - End Time 2025-02-14 14:21:06 [2025-02-14 14:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474322', 'tblTempUsageDetail_20' ) start [2025-02-14 14:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474322', 'tblTempUsageDetail_20' ) end [2025-02-14 14:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474322', 'tblTempVendorCDR_20' ) start [2025-02-14 14:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474322', 'tblTempVendorCDR_20' ) end [2025-02-14 14:21:28] Production.INFO: ProcessCDR(1,14474322,1,1,2) [2025-02-14 14:21:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:21:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:21:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:21:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474322', 'tblTempUsageDetail_20' ) start [2025-02-14 14:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474322', 'tblTempUsageDetail_20' ) end [2025-02-14 14:21:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:21:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:21:33] Production.INFO: ==28832== Releasing lock... [2025-02-14 14:21:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:21:33] Production.INFO: 65.25 MB #Memory Used# [2025-02-14 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:22:05 [end_date_ymd] => 2025-02-14 14:22:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:22:05' and `end` < '2025-02-14 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-02-14 14:22:26] Production.INFO: count ==4969 [2025-02-14 14:22:28] Production.ERROR: pbx CDR StartTime 2025-02-14 11:22:05 - End Time 2025-02-14 14:22:05 [2025-02-14 14:22:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474327', 'tblTempUsageDetail_20' ) start [2025-02-14 14:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474327', 'tblTempUsageDetail_20' ) end [2025-02-14 14:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474327', 'tblTempVendorCDR_20' ) start [2025-02-14 14:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474327', 'tblTempVendorCDR_20' ) end [2025-02-14 14:22:28] Production.INFO: ProcessCDR(1,14474327,1,1,2) [2025-02-14 14:22:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:22:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:22:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:22:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474327', 'tblTempUsageDetail_20' ) start [2025-02-14 14:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474327', 'tblTempUsageDetail_20' ) end [2025-02-14 14:22:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:22:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:22:34] Production.INFO: ==28903== Releasing lock... [2025-02-14 14:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:22:34] Production.INFO: 65.25 MB #Memory Used# [2025-02-14 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:23:06 [end_date_ymd] => 2025-02-14 14:23:06 [RateCDR] => 1 ) [2025-02-14 14:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:23:06' and `end` < '2025-02-14 14:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:23:26] Production.INFO: count ==4965 [2025-02-14 14:23:29] Production.ERROR: pbx CDR StartTime 2025-02-14 11:23:06 - End Time 2025-02-14 14:23:06 [2025-02-14 14:23:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474332', 'tblTempUsageDetail_20' ) start [2025-02-14 14:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474332', 'tblTempUsageDetail_20' ) end [2025-02-14 14:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474332', 'tblTempVendorCDR_20' ) start [2025-02-14 14:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474332', 'tblTempVendorCDR_20' ) end [2025-02-14 14:23:29] Production.INFO: ProcessCDR(1,14474332,1,1,2) [2025-02-14 14:23:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:23:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:23:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:23:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474332', 'tblTempUsageDetail_20' ) start [2025-02-14 14:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474332', 'tblTempUsageDetail_20' ) end [2025-02-14 14:23:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:23:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:23:34] Production.INFO: ==28977== Releasing lock... [2025-02-14 14:23:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:23:34] Production.INFO: 65.25 MB #Memory Used# [2025-02-14 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:24:06 [end_date_ymd] => 2025-02-14 14:24:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:24:06' and `end` < '2025-02-14 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-02-14 14:24:20] Production.INFO: count ==4966 [2025-02-14 14:24:22] Production.ERROR: pbx CDR StartTime 2025-02-14 11:24:06 - End Time 2025-02-14 14:24:06 [2025-02-14 14:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474337', 'tblTempUsageDetail_20' ) start [2025-02-14 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474337', 'tblTempUsageDetail_20' ) end [2025-02-14 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474337', 'tblTempVendorCDR_20' ) start [2025-02-14 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474337', 'tblTempVendorCDR_20' ) end [2025-02-14 14:24:22] Production.INFO: ProcessCDR(1,14474337,1,1,2) [2025-02-14 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474337', 'tblTempUsageDetail_20' ) start [2025-02-14 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474337', 'tblTempUsageDetail_20' ) end [2025-02-14 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:24:27] Production.INFO: ==29047== Releasing lock... [2025-02-14 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:24:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-14 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:25:05 [end_date_ymd] => 2025-02-14 14:25:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:25:05' and `end` < '2025-02-14 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-02-14 14:25:26] Production.INFO: count ==4951 [2025-02-14 14:25:28] Production.ERROR: pbx CDR StartTime 2025-02-14 11:25:05 - End Time 2025-02-14 14:25:05 [2025-02-14 14:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474342', 'tblTempUsageDetail_20' ) start [2025-02-14 14:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474342', 'tblTempUsageDetail_20' ) end [2025-02-14 14:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474342', 'tblTempVendorCDR_20' ) start [2025-02-14 14:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474342', 'tblTempVendorCDR_20' ) end [2025-02-14 14:25:29] Production.INFO: ProcessCDR(1,14474342,1,1,2) [2025-02-14 14:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474342', 'tblTempUsageDetail_20' ) start [2025-02-14 14:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474342', 'tblTempUsageDetail_20' ) end [2025-02-14 14:25:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:25:34] Production.INFO: ==29117== Releasing lock... [2025-02-14 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:25:34] Production.INFO: 65 MB #Memory Used# [2025-02-14 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:26:06 [end_date_ymd] => 2025-02-14 14:26:06 [RateCDR] => 1 ) [2025-02-14 14: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-02-14 11:26:06' and `end` < '2025-02-14 14: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-02-14 14:26:20] Production.INFO: count ==4924 [2025-02-14 14:26:23] Production.ERROR: pbx CDR StartTime 2025-02-14 11:26:06 - End Time 2025-02-14 14:26:06 [2025-02-14 14:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474347', 'tblTempUsageDetail_20' ) start [2025-02-14 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474347', 'tblTempUsageDetail_20' ) end [2025-02-14 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474347', 'tblTempVendorCDR_20' ) start [2025-02-14 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474347', 'tblTempVendorCDR_20' ) end [2025-02-14 14:26:23] Production.INFO: ProcessCDR(1,14474347,1,1,2) [2025-02-14 14:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474347', 'tblTempUsageDetail_20' ) start [2025-02-14 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474347', 'tblTempUsageDetail_20' ) end [2025-02-14 14:26:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:26:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:26:28] Production.INFO: ==29189== Releasing lock... [2025-02-14 14:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:26:28] Production.INFO: 64.75 MB #Memory Used# [2025-02-14 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:27:06 [end_date_ymd] => 2025-02-14 14:27:06 [RateCDR] => 1 ) [2025-02-14 14:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:27:06' and `end` < '2025-02-14 14:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:27:21] Production.INFO: count ==4892 [2025-02-14 14:27:23] Production.ERROR: pbx CDR StartTime 2025-02-14 11:27:06 - End Time 2025-02-14 14:27:06 [2025-02-14 14:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474352', 'tblTempUsageDetail_20' ) start [2025-02-14 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474352', 'tblTempUsageDetail_20' ) end [2025-02-14 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474352', 'tblTempVendorCDR_20' ) start [2025-02-14 14:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474352', 'tblTempVendorCDR_20' ) end [2025-02-14 14:27:23] Production.INFO: ProcessCDR(1,14474352,1,1,2) [2025-02-14 14:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474352', 'tblTempUsageDetail_20' ) start [2025-02-14 14:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474352', 'tblTempUsageDetail_20' ) end [2025-02-14 14:27:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:27:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:27:29] Production.INFO: ==29261== Releasing lock... [2025-02-14 14:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:27:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-14 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:28:06 [end_date_ymd] => 2025-02-14 14:28:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:28:06' and `end` < '2025-02-14 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-02-14 14:28:21] Production.INFO: count ==4878 [2025-02-14 14:28:24] Production.ERROR: pbx CDR StartTime 2025-02-14 11:28:06 - End Time 2025-02-14 14:28:06 [2025-02-14 14:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474357', 'tblTempUsageDetail_20' ) start [2025-02-14 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474357', 'tblTempUsageDetail_20' ) end [2025-02-14 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474357', 'tblTempVendorCDR_20' ) start [2025-02-14 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474357', 'tblTempVendorCDR_20' ) end [2025-02-14 14:28:24] Production.INFO: ProcessCDR(1,14474357,1,1,2) [2025-02-14 14:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474357', 'tblTempUsageDetail_20' ) start [2025-02-14 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474357', 'tblTempUsageDetail_20' ) end [2025-02-14 14:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:28:27] Production.INFO: ==29331== Releasing lock... [2025-02-14 14:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:28:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-14 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:29:05 [end_date_ymd] => 2025-02-14 14:29:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:29:05' and `end` < '2025-02-14 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-02-14 14:29:19] Production.INFO: count ==4867 [2025-02-14 14:29:21] Production.ERROR: pbx CDR StartTime 2025-02-14 11:29:05 - End Time 2025-02-14 14:29:05 [2025-02-14 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474362', 'tblTempUsageDetail_20' ) start [2025-02-14 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474362', 'tblTempUsageDetail_20' ) end [2025-02-14 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474362', 'tblTempVendorCDR_20' ) start [2025-02-14 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474362', 'tblTempVendorCDR_20' ) end [2025-02-14 14:29:21] Production.INFO: ProcessCDR(1,14474362,1,1,2) [2025-02-14 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474362', 'tblTempUsageDetail_20' ) start [2025-02-14 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474362', 'tblTempUsageDetail_20' ) end [2025-02-14 14:29:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:29:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:29:27] Production.INFO: ==29446== Releasing lock... [2025-02-14 14:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:29:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-14 14:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:30:07 [end_date_ymd] => 2025-02-14 14:30:07 [RateCDR] => 1 ) [2025-02-14 14:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:30:07' and `end` < '2025-02-14 14:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:30:21] Production.INFO: count ==4860 [2025-02-14 14:30:23] Production.ERROR: pbx CDR StartTime 2025-02-14 11:30:07 - End Time 2025-02-14 14:30:07 [2025-02-14 14:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474368', 'tblTempUsageDetail_20' ) start [2025-02-14 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474368', 'tblTempUsageDetail_20' ) end [2025-02-14 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474368', 'tblTempVendorCDR_20' ) start [2025-02-14 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474368', 'tblTempVendorCDR_20' ) end [2025-02-14 14:30:23] Production.INFO: ProcessCDR(1,14474368,1,1,2) [2025-02-14 14:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474368', 'tblTempUsageDetail_20' ) start [2025-02-14 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474368', 'tblTempUsageDetail_20' ) end [2025-02-14 14:30:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:30:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:30:29] Production.INFO: ==29521== Releasing lock... [2025-02-14 14:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:30:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-14 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:31:05 [end_date_ymd] => 2025-02-14 14:31:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:31:05' and `end` < '2025-02-14 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-02-14 14:31:21] Production.INFO: count ==4868 [2025-02-14 14:31:23] Production.ERROR: pbx CDR StartTime 2025-02-14 11:31:05 - End Time 2025-02-14 14:31:05 [2025-02-14 14:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474373', 'tblTempUsageDetail_20' ) start [2025-02-14 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474373', 'tblTempUsageDetail_20' ) end [2025-02-14 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474373', 'tblTempVendorCDR_20' ) start [2025-02-14 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474373', 'tblTempVendorCDR_20' ) end [2025-02-14 14:31:23] Production.INFO: ProcessCDR(1,14474373,1,1,2) [2025-02-14 14:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474373', 'tblTempUsageDetail_20' ) start [2025-02-14 14:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474373', 'tblTempUsageDetail_20' ) end [2025-02-14 14:31:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:31:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:31:28] Production.INFO: ==29597== Releasing lock... [2025-02-14 14:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:31:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-14 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:32:05 [end_date_ymd] => 2025-02-14 14:32:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:32:05' and `end` < '2025-02-14 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-02-14 14:32:19] Production.INFO: count ==4887 [2025-02-14 14:32:22] Production.ERROR: pbx CDR StartTime 2025-02-14 11:32:05 - End Time 2025-02-14 14:32:05 [2025-02-14 14:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474378', 'tblTempUsageDetail_20' ) start [2025-02-14 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474378', 'tblTempUsageDetail_20' ) end [2025-02-14 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474378', 'tblTempVendorCDR_20' ) start [2025-02-14 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474378', 'tblTempVendorCDR_20' ) end [2025-02-14 14:32:22] Production.INFO: ProcessCDR(1,14474378,1,1,2) [2025-02-14 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474378', 'tblTempUsageDetail_20' ) start [2025-02-14 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474378', 'tblTempUsageDetail_20' ) end [2025-02-14 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:32:27] Production.INFO: ==29669== Releasing lock... [2025-02-14 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:32:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-14 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:33:05 [end_date_ymd] => 2025-02-14 14:33:05 [RateCDR] => 1 ) [2025-02-14 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:33:05' and `end` < '2025-02-14 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:33:27] Production.INFO: count ==4878 [2025-02-14 14:33:29] Production.ERROR: pbx CDR StartTime 2025-02-14 11:33:05 - End Time 2025-02-14 14:33:05 [2025-02-14 14:33:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474383', 'tblTempUsageDetail_20' ) start [2025-02-14 14:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474383', 'tblTempUsageDetail_20' ) end [2025-02-14 14:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474383', 'tblTempVendorCDR_20' ) start [2025-02-14 14:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474383', 'tblTempVendorCDR_20' ) end [2025-02-14 14:33:29] Production.INFO: ProcessCDR(1,14474383,1,1,2) [2025-02-14 14:33:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:33:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:33:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:33:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474383', 'tblTempUsageDetail_20' ) start [2025-02-14 14:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474383', 'tblTempUsageDetail_20' ) end [2025-02-14 14:33:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:33:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:33:35] Production.INFO: ==29754== Releasing lock... [2025-02-14 14:33:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:33:35] Production.INFO: 64.5 MB #Memory Used# [2025-02-14 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:34:06 [end_date_ymd] => 2025-02-14 14:34:06 [RateCDR] => 1 ) [2025-02-14 14:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:34:06' and `end` < '2025-02-14 14:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:34:26] Production.INFO: count ==4885 [2025-02-14 14:34:28] Production.ERROR: pbx CDR StartTime 2025-02-14 11:34:06 - End Time 2025-02-14 14:34:06 [2025-02-14 14:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474388', 'tblTempUsageDetail_20' ) start [2025-02-14 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474388', 'tblTempUsageDetail_20' ) end [2025-02-14 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474388', 'tblTempVendorCDR_20' ) start [2025-02-14 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474388', 'tblTempVendorCDR_20' ) end [2025-02-14 14:34:28] Production.INFO: ProcessCDR(1,14474388,1,1,2) [2025-02-14 14:34:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:34:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:34:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:34:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474388', 'tblTempUsageDetail_20' ) start [2025-02-14 14:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474388', 'tblTempUsageDetail_20' ) end [2025-02-14 14:34:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:34:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:34:34] Production.INFO: ==29871== Releasing lock... [2025-02-14 14:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:34:34] Production.INFO: 64.5 MB #Memory Used# [2025-02-14 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:35:05 [end_date_ymd] => 2025-02-14 14:35:05 [RateCDR] => 1 ) [2025-02-14 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:35:05' and `end` < '2025-02-14 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:35:20] Production.INFO: count ==4888 [2025-02-14 14:35:22] Production.ERROR: pbx CDR StartTime 2025-02-14 11:35:05 - End Time 2025-02-14 14:35:05 [2025-02-14 14:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474393', 'tblTempUsageDetail_20' ) start [2025-02-14 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474393', 'tblTempUsageDetail_20' ) end [2025-02-14 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474393', 'tblTempVendorCDR_20' ) start [2025-02-14 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474393', 'tblTempVendorCDR_20' ) end [2025-02-14 14:35:22] Production.INFO: ProcessCDR(1,14474393,1,1,2) [2025-02-14 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474393', 'tblTempUsageDetail_20' ) start [2025-02-14 14:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474393', 'tblTempUsageDetail_20' ) end [2025-02-14 14:35:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:35:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:35:28] Production.INFO: ==29993== Releasing lock... [2025-02-14 14:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:35:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-14 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:36:06 [end_date_ymd] => 2025-02-14 14:36:06 [RateCDR] => 1 ) [2025-02-14 14:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:36:06' and `end` < '2025-02-14 14:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:36:25] Production.INFO: count ==4863 [2025-02-14 14:36:27] Production.ERROR: pbx CDR StartTime 2025-02-14 11:36:06 - End Time 2025-02-14 14:36:06 [2025-02-14 14:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474398', 'tblTempUsageDetail_20' ) start [2025-02-14 14:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474398', 'tblTempUsageDetail_20' ) end [2025-02-14 14:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474398', 'tblTempVendorCDR_20' ) start [2025-02-14 14:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474398', 'tblTempVendorCDR_20' ) end [2025-02-14 14:36:27] Production.INFO: ProcessCDR(1,14474398,1,1,2) [2025-02-14 14:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474398', 'tblTempUsageDetail_20' ) start [2025-02-14 14:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474398', 'tblTempUsageDetail_20' ) end [2025-02-14 14:36:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:36:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:36:33] Production.INFO: ==30110== Releasing lock... [2025-02-14 14:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:36:33] Production.INFO: 64.5 MB #Memory Used# [2025-02-14 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:37:05 [end_date_ymd] => 2025-02-14 14:37:05 [RateCDR] => 1 ) [2025-02-14 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:37:05' and `end` < '2025-02-14 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:37:22] Production.INFO: count ==4811 [2025-02-14 14:37:25] Production.ERROR: pbx CDR StartTime 2025-02-14 11:37:05 - End Time 2025-02-14 14:37:05 [2025-02-14 14:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474403', 'tblTempUsageDetail_20' ) start [2025-02-14 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474403', 'tblTempUsageDetail_20' ) end [2025-02-14 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474403', 'tblTempVendorCDR_20' ) start [2025-02-14 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474403', 'tblTempVendorCDR_20' ) end [2025-02-14 14:37:25] Production.INFO: ProcessCDR(1,14474403,1,1,2) [2025-02-14 14:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474403', 'tblTempUsageDetail_20' ) start [2025-02-14 14:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474403', 'tblTempUsageDetail_20' ) end [2025-02-14 14:37:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:37:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:37:30] Production.INFO: ==30229== Releasing lock... [2025-02-14 14:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:37:30] Production.INFO: 64 MB #Memory Used# [2025-02-14 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:38:05 [end_date_ymd] => 2025-02-14 14:38:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:38:05' and `end` < '2025-02-14 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-02-14 14:38:27] Production.INFO: count ==4723 [2025-02-14 14:38:29] Production.ERROR: pbx CDR StartTime 2025-02-14 11:38:05 - End Time 2025-02-14 14:38:05 [2025-02-14 14:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474408', 'tblTempUsageDetail_20' ) start [2025-02-14 14:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474408', 'tblTempUsageDetail_20' ) end [2025-02-14 14:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474408', 'tblTempVendorCDR_20' ) start [2025-02-14 14:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474408', 'tblTempVendorCDR_20' ) end [2025-02-14 14:38:29] Production.INFO: ProcessCDR(1,14474408,1,1,2) [2025-02-14 14:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:38:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:38:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:38:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474408', 'tblTempUsageDetail_20' ) start [2025-02-14 14:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474408', 'tblTempUsageDetail_20' ) end [2025-02-14 14:38:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:38:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:38:34] Production.INFO: ==30346== Releasing lock... [2025-02-14 14:38:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:38:34] Production.INFO: 63.25 MB #Memory Used# [2025-02-14 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:39:05 [end_date_ymd] => 2025-02-14 14:39:05 [RateCDR] => 1 ) [2025-02-14 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:39:05' and `end` < '2025-02-14 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:39:22] Production.INFO: count ==4641 [2025-02-14 14:39:24] Production.ERROR: pbx CDR StartTime 2025-02-14 11:39:05 - End Time 2025-02-14 14:39:05 [2025-02-14 14:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474413', 'tblTempUsageDetail_20' ) start [2025-02-14 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474413', 'tblTempUsageDetail_20' ) end [2025-02-14 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474413', 'tblTempVendorCDR_20' ) start [2025-02-14 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474413', 'tblTempVendorCDR_20' ) end [2025-02-14 14:39:24] Production.INFO: ProcessCDR(1,14474413,1,1,2) [2025-02-14 14:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474413', 'tblTempUsageDetail_20' ) start [2025-02-14 14:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474413', 'tblTempUsageDetail_20' ) end [2025-02-14 14:39:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:39:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:39:29] Production.INFO: ==30459== Releasing lock... [2025-02-14 14:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:39:29] Production.INFO: 62.75 MB #Memory Used# [2025-02-14 14:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:40:07 [end_date_ymd] => 2025-02-14 14:40:07 [RateCDR] => 1 ) [2025-02-14 14: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-02-14 11:40:07' and `end` < '2025-02-14 14: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-02-14 14:40:26] Production.INFO: count ==4634 [2025-02-14 14:40:28] Production.ERROR: pbx CDR StartTime 2025-02-14 11:40:07 - End Time 2025-02-14 14:40:07 [2025-02-14 14:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474419', 'tblTempUsageDetail_20' ) start [2025-02-14 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474419', 'tblTempUsageDetail_20' ) end [2025-02-14 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474419', 'tblTempVendorCDR_20' ) start [2025-02-14 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474419', 'tblTempVendorCDR_20' ) end [2025-02-14 14:40:29] Production.INFO: ProcessCDR(1,14474419,1,1,2) [2025-02-14 14:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474419', 'tblTempUsageDetail_20' ) start [2025-02-14 14:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474419', 'tblTempUsageDetail_20' ) end [2025-02-14 14:40:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:40:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:40:35] Production.INFO: ==30575== Releasing lock... [2025-02-14 14:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:40:35] Production.INFO: 62.75 MB #Memory Used# [2025-02-14 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:41:05 [end_date_ymd] => 2025-02-14 14:41:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:41:05' and `end` < '2025-02-14 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-02-14 14:41:23] Production.INFO: count ==4540 [2025-02-14 14:41:26] Production.ERROR: pbx CDR StartTime 2025-02-14 11:41:05 - End Time 2025-02-14 14:41:05 [2025-02-14 14:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474424', 'tblTempUsageDetail_20' ) start [2025-02-14 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474424', 'tblTempUsageDetail_20' ) end [2025-02-14 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474424', 'tblTempVendorCDR_20' ) start [2025-02-14 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474424', 'tblTempVendorCDR_20' ) end [2025-02-14 14:41:26] Production.INFO: ProcessCDR(1,14474424,1,1,2) [2025-02-14 14:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474424', 'tblTempUsageDetail_20' ) start [2025-02-14 14:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474424', 'tblTempUsageDetail_20' ) end [2025-02-14 14:41:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:41:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:41:31] Production.INFO: ==30692== Releasing lock... [2025-02-14 14:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:41:31] Production.INFO: 62 MB #Memory Used# [2025-02-14 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:42:06 [end_date_ymd] => 2025-02-14 14:42:06 [RateCDR] => 1 ) [2025-02-14 14:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:42:06' and `end` < '2025-02-14 14:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:42:21] Production.INFO: count ==4461 [2025-02-14 14:42:23] Production.ERROR: pbx CDR StartTime 2025-02-14 11:42:06 - End Time 2025-02-14 14:42:06 [2025-02-14 14:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474429', 'tblTempUsageDetail_20' ) start [2025-02-14 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474429', 'tblTempUsageDetail_20' ) end [2025-02-14 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474429', 'tblTempVendorCDR_20' ) start [2025-02-14 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474429', 'tblTempVendorCDR_20' ) end [2025-02-14 14:42:23] Production.INFO: ProcessCDR(1,14474429,1,1,2) [2025-02-14 14:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474429', 'tblTempUsageDetail_20' ) start [2025-02-14 14:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474429', 'tblTempUsageDetail_20' ) end [2025-02-14 14:42:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:42:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:42:29] Production.INFO: ==30808== Releasing lock... [2025-02-14 14:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:42:29] Production.INFO: 61.5 MB #Memory Used# [2025-02-14 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:43:05 [end_date_ymd] => 2025-02-14 14:43:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:43:05' and `end` < '2025-02-14 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-02-14 14:43:22] Production.INFO: count ==4384 [2025-02-14 14:43:24] Production.ERROR: pbx CDR StartTime 2025-02-14 11:43:05 - End Time 2025-02-14 14:43:05 [2025-02-14 14:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474434', 'tblTempUsageDetail_20' ) start [2025-02-14 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474434', 'tblTempUsageDetail_20' ) end [2025-02-14 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474434', 'tblTempVendorCDR_20' ) start [2025-02-14 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474434', 'tblTempVendorCDR_20' ) end [2025-02-14 14:43:24] Production.INFO: ProcessCDR(1,14474434,1,1,2) [2025-02-14 14:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474434', 'tblTempUsageDetail_20' ) start [2025-02-14 14:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474434', 'tblTempUsageDetail_20' ) end [2025-02-14 14:43:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:43:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:43:30] Production.INFO: ==30924== Releasing lock... [2025-02-14 14:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:43:30] Production.INFO: 60.75 MB #Memory Used# [2025-02-14 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:44:06 [end_date_ymd] => 2025-02-14 14:44:06 [RateCDR] => 1 ) [2025-02-14 14:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:44:06' and `end` < '2025-02-14 14:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:44:20] Production.INFO: count ==4311 [2025-02-14 14:44:21] Production.ERROR: pbx CDR StartTime 2025-02-14 11:44:06 - End Time 2025-02-14 14:44:06 [2025-02-14 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474439', 'tblTempUsageDetail_20' ) start [2025-02-14 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474439', 'tblTempUsageDetail_20' ) end [2025-02-14 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474439', 'tblTempVendorCDR_20' ) start [2025-02-14 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474439', 'tblTempVendorCDR_20' ) end [2025-02-14 14:44:22] Production.INFO: ProcessCDR(1,14474439,1,1,2) [2025-02-14 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474439', 'tblTempUsageDetail_20' ) start [2025-02-14 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474439', 'tblTempUsageDetail_20' ) end [2025-02-14 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:44:27] Production.INFO: ==31075== Releasing lock... [2025-02-14 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:44:27] Production.INFO: 60.5 MB #Memory Used# [2025-02-14 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:45:06 [end_date_ymd] => 2025-02-14 14:45:06 [RateCDR] => 1 ) [2025-02-14 14: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-02-14 11:45:06' and `end` < '2025-02-14 14: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-02-14 14:45:21] Production.INFO: count ==4240 [2025-02-14 14:45:22] Production.ERROR: pbx CDR StartTime 2025-02-14 11:45:06 - End Time 2025-02-14 14:45:06 [2025-02-14 14:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474444', 'tblTempUsageDetail_20' ) start [2025-02-14 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474444', 'tblTempUsageDetail_20' ) end [2025-02-14 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474444', 'tblTempVendorCDR_20' ) start [2025-02-14 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474444', 'tblTempVendorCDR_20' ) end [2025-02-14 14:45:22] Production.INFO: ProcessCDR(1,14474444,1,1,2) [2025-02-14 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474444', 'tblTempUsageDetail_20' ) start [2025-02-14 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474444', 'tblTempUsageDetail_20' ) end [2025-02-14 14:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:45:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:45:28] Production.INFO: ==31167== Releasing lock... [2025-02-14 14:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:45:28] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:46:05 [end_date_ymd] => 2025-02-14 14:46:05 [RateCDR] => 1 ) [2025-02-14 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:46:05' and `end` < '2025-02-14 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:46:27] Production.INFO: count ==4212 [2025-02-14 14:46:29] Production.ERROR: pbx CDR StartTime 2025-02-14 11:46:05 - End Time 2025-02-14 14:46:05 [2025-02-14 14:46:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474449', 'tblTempUsageDetail_20' ) start [2025-02-14 14:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474449', 'tblTempUsageDetail_20' ) end [2025-02-14 14:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474449', 'tblTempVendorCDR_20' ) start [2025-02-14 14:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474449', 'tblTempVendorCDR_20' ) end [2025-02-14 14:46:29] Production.INFO: ProcessCDR(1,14474449,1,1,2) [2025-02-14 14:46:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:46:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474449', 'tblTempUsageDetail_20' ) start [2025-02-14 14:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474449', 'tblTempUsageDetail_20' ) end [2025-02-14 14:46:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:46:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:46:35] Production.INFO: ==31238== Releasing lock... [2025-02-14 14:46:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:46:35] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:47:05 [end_date_ymd] => 2025-02-14 14:47:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:47:05' and `end` < '2025-02-14 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-02-14 14:47:26] Production.INFO: count ==4214 [2025-02-14 14:47:28] Production.ERROR: pbx CDR StartTime 2025-02-14 11:47:05 - End Time 2025-02-14 14:47:05 [2025-02-14 14:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474454', 'tblTempUsageDetail_20' ) start [2025-02-14 14:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474454', 'tblTempUsageDetail_20' ) end [2025-02-14 14:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474454', 'tblTempVendorCDR_20' ) start [2025-02-14 14:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474454', 'tblTempVendorCDR_20' ) end [2025-02-14 14:47:28] Production.INFO: ProcessCDR(1,14474454,1,1,2) [2025-02-14 14:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:47:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474454', 'tblTempUsageDetail_20' ) start [2025-02-14 14:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474454', 'tblTempUsageDetail_20' ) end [2025-02-14 14:47:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:47:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:47:34] Production.INFO: ==31308== Releasing lock... [2025-02-14 14:47:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:47:34] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:48:06 [end_date_ymd] => 2025-02-14 14:48:06 [RateCDR] => 1 ) [2025-02-14 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:48:06' and `end` < '2025-02-14 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:48:24] Production.INFO: count ==4160 [2025-02-14 14:48:26] Production.ERROR: pbx CDR StartTime 2025-02-14 11:48:06 - End Time 2025-02-14 14:48:06 [2025-02-14 14:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474459', 'tblTempUsageDetail_20' ) start [2025-02-14 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474459', 'tblTempUsageDetail_20' ) end [2025-02-14 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474459', 'tblTempVendorCDR_20' ) start [2025-02-14 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474459', 'tblTempVendorCDR_20' ) end [2025-02-14 14:48:26] Production.INFO: ProcessCDR(1,14474459,1,1,2) [2025-02-14 14:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474459', 'tblTempUsageDetail_20' ) start [2025-02-14 14:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474459', 'tblTempUsageDetail_20' ) end [2025-02-14 14:48:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:48:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:48:32] Production.INFO: ==31379== Releasing lock... [2025-02-14 14:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:48:32] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:49:05 [end_date_ymd] => 2025-02-14 14:49:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:49:05' and `end` < '2025-02-14 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-02-14 14:49:25] Production.INFO: count ==4070 [2025-02-14 14:49:27] Production.ERROR: pbx CDR StartTime 2025-02-14 11:49:05 - End Time 2025-02-14 14:49:05 [2025-02-14 14:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474464', 'tblTempUsageDetail_20' ) start [2025-02-14 14:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474464', 'tblTempUsageDetail_20' ) end [2025-02-14 14:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474464', 'tblTempVendorCDR_20' ) start [2025-02-14 14:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474464', 'tblTempVendorCDR_20' ) end [2025-02-14 14:49:27] Production.INFO: ProcessCDR(1,14474464,1,1,2) [2025-02-14 14:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474464', 'tblTempUsageDetail_20' ) start [2025-02-14 14:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474464', 'tblTempUsageDetail_20' ) end [2025-02-14 14:49:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:49:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:49:32] Production.INFO: ==31451== Releasing lock... [2025-02-14 14:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:49:32] Production.INFO: 59 MB #Memory Used# [2025-02-14 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:50:06 [end_date_ymd] => 2025-02-14 14:50:06 [RateCDR] => 1 ) [2025-02-14 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:50:06' and `end` < '2025-02-14 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:50:25] Production.INFO: count ==4043 [2025-02-14 14:50:26] Production.ERROR: pbx CDR StartTime 2025-02-14 11:50:06 - End Time 2025-02-14 14:50:06 [2025-02-14 14:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474470', 'tblTempUsageDetail_20' ) start [2025-02-14 14:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474470', 'tblTempUsageDetail_20' ) end [2025-02-14 14:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474470', 'tblTempVendorCDR_20' ) start [2025-02-14 14:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474470', 'tblTempVendorCDR_20' ) end [2025-02-14 14:50:27] Production.INFO: ProcessCDR(1,14474470,1,1,2) [2025-02-14 14:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474470', 'tblTempUsageDetail_20' ) start [2025-02-14 14:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474470', 'tblTempUsageDetail_20' ) end [2025-02-14 14:50:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:50:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:50:32] Production.INFO: ==31524== Releasing lock... [2025-02-14 14:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:50:32] Production.INFO: 58.25 MB #Memory Used# [2025-02-14 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:51:05 [end_date_ymd] => 2025-02-14 14:51:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:51:05' and `end` < '2025-02-14 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-02-14 14:51:20] Production.INFO: count ==4049 [2025-02-14 14:51:22] Production.ERROR: pbx CDR StartTime 2025-02-14 11:51:05 - End Time 2025-02-14 14:51:05 [2025-02-14 14:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474475', 'tblTempUsageDetail_20' ) start [2025-02-14 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474475', 'tblTempUsageDetail_20' ) end [2025-02-14 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474475', 'tblTempVendorCDR_20' ) start [2025-02-14 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474475', 'tblTempVendorCDR_20' ) end [2025-02-14 14:51:22] Production.INFO: ProcessCDR(1,14474475,1,1,2) [2025-02-14 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474475', 'tblTempUsageDetail_20' ) start [2025-02-14 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474475', 'tblTempUsageDetail_20' ) end [2025-02-14 14:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:51:27] Production.INFO: ==31597== Releasing lock... [2025-02-14 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:51:27] Production.INFO: 59 MB #Memory Used# [2025-02-14 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:52:06 [end_date_ymd] => 2025-02-14 14:52:06 [RateCDR] => 1 ) [2025-02-14 14:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:52:06' and `end` < '2025-02-14 14:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:52:27] Production.INFO: count ==4038 [2025-02-14 14:52:29] Production.ERROR: pbx CDR StartTime 2025-02-14 11:52:06 - End Time 2025-02-14 14:52:06 [2025-02-14 14:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474480', 'tblTempUsageDetail_20' ) start [2025-02-14 14:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474480', 'tblTempUsageDetail_20' ) end [2025-02-14 14:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474480', 'tblTempVendorCDR_20' ) start [2025-02-14 14:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474480', 'tblTempVendorCDR_20' ) end [2025-02-14 14:52:29] Production.INFO: ProcessCDR(1,14474480,1,1,2) [2025-02-14 14:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474480', 'tblTempUsageDetail_20' ) start [2025-02-14 14:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474480', 'tblTempUsageDetail_20' ) end [2025-02-14 14:52:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:52:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:52:34] Production.INFO: ==31669== Releasing lock... [2025-02-14 14:52:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:52:34] Production.INFO: 58.25 MB #Memory Used# [2025-02-14 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:53:05 [end_date_ymd] => 2025-02-14 14:53:05 [RateCDR] => 1 ) [2025-02-14 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:53:05' and `end` < '2025-02-14 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:53:23] Production.INFO: count ==4042 [2025-02-14 14:53:25] Production.ERROR: pbx CDR StartTime 2025-02-14 11:53:05 - End Time 2025-02-14 14:53:05 [2025-02-14 14:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474485', 'tblTempUsageDetail_20' ) start [2025-02-14 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474485', 'tblTempUsageDetail_20' ) end [2025-02-14 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474485', 'tblTempVendorCDR_20' ) start [2025-02-14 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474485', 'tblTempVendorCDR_20' ) end [2025-02-14 14:53:25] Production.INFO: ProcessCDR(1,14474485,1,1,2) [2025-02-14 14:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474485', 'tblTempUsageDetail_20' ) start [2025-02-14 14:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474485', 'tblTempUsageDetail_20' ) end [2025-02-14 14:53:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:53:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:53:30] Production.INFO: ==31740== Releasing lock... [2025-02-14 14:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:53:30] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:54:06 [end_date_ymd] => 2025-02-14 14:54:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:54:06' and `end` < '2025-02-14 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-02-14 14:54:30] Production.INFO: count ==4047 [2025-02-14 14:54:32] Production.ERROR: pbx CDR StartTime 2025-02-14 11:54:06 - End Time 2025-02-14 14:54:06 [2025-02-14 14:54:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474490', 'tblTempUsageDetail_20' ) start [2025-02-14 14:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474490', 'tblTempUsageDetail_20' ) end [2025-02-14 14:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474490', 'tblTempVendorCDR_20' ) start [2025-02-14 14:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474490', 'tblTempVendorCDR_20' ) end [2025-02-14 14:54:32] Production.INFO: ProcessCDR(1,14474490,1,1,2) [2025-02-14 14:54:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:54:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:54:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:54:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474490', 'tblTempUsageDetail_20' ) start [2025-02-14 14:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474490', 'tblTempUsageDetail_20' ) end [2025-02-14 14:54:37] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:54:37] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:54:37] Production.INFO: ==31814== Releasing lock... [2025-02-14 14:54:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:54:37] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:55:05 [end_date_ymd] => 2025-02-14 14:55:05 [RateCDR] => 1 ) [2025-02-14 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:55:05' and `end` < '2025-02-14 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:55:30] Production.INFO: count ==4058 [2025-02-14 14:55:32] Production.ERROR: pbx CDR StartTime 2025-02-14 11:55:05 - End Time 2025-02-14 14:55:05 [2025-02-14 14:55:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474495', 'tblTempUsageDetail_20' ) start [2025-02-14 14:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474495', 'tblTempUsageDetail_20' ) end [2025-02-14 14:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474495', 'tblTempVendorCDR_20' ) start [2025-02-14 14:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474495', 'tblTempVendorCDR_20' ) end [2025-02-14 14:55:32] Production.INFO: ProcessCDR(1,14474495,1,1,2) [2025-02-14 14:55:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:55:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:55:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:55:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474495', 'tblTempUsageDetail_20' ) start [2025-02-14 14:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474495', 'tblTempUsageDetail_20' ) end [2025-02-14 14:55:38] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:55:38] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:55:38] Production.INFO: ==31883== Releasing lock... [2025-02-14 14:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:55:38] Production.INFO: 58.25 MB #Memory Used# [2025-02-14 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:56:06 [end_date_ymd] => 2025-02-14 14:56:06 [RateCDR] => 1 ) [2025-02-14 14:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:56:06' and `end` < '2025-02-14 14:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:56:26] Production.INFO: count ==4068 [2025-02-14 14:56:28] Production.ERROR: pbx CDR StartTime 2025-02-14 11:56:06 - End Time 2025-02-14 14:56:06 [2025-02-14 14:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474500', 'tblTempUsageDetail_20' ) start [2025-02-14 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474500', 'tblTempUsageDetail_20' ) end [2025-02-14 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474500', 'tblTempVendorCDR_20' ) start [2025-02-14 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474500', 'tblTempVendorCDR_20' ) end [2025-02-14 14:56:28] Production.INFO: ProcessCDR(1,14474500,1,1,2) [2025-02-14 14:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474500', 'tblTempUsageDetail_20' ) start [2025-02-14 14:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474500', 'tblTempUsageDetail_20' ) end [2025-02-14 14:56:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:56:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:56:33] Production.INFO: ==31960== Releasing lock... [2025-02-14 14:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:56:33] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:57:05 [end_date_ymd] => 2025-02-14 14:57:05 [RateCDR] => 1 ) [2025-02-14 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:57:05' and `end` < '2025-02-14 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:57:25] Production.INFO: count ==4069 [2025-02-14 14:57:27] Production.ERROR: pbx CDR StartTime 2025-02-14 11:57:05 - End Time 2025-02-14 14:57:05 [2025-02-14 14:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474504', 'tblTempUsageDetail_20' ) start [2025-02-14 14:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474504', 'tblTempUsageDetail_20' ) end [2025-02-14 14:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474504', 'tblTempVendorCDR_20' ) start [2025-02-14 14:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474504', 'tblTempVendorCDR_20' ) end [2025-02-14 14:57:27] Production.INFO: ProcessCDR(1,14474504,1,1,2) [2025-02-14 14:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474504', 'tblTempUsageDetail_20' ) start [2025-02-14 14:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474504', 'tblTempUsageDetail_20' ) end [2025-02-14 14:57:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:57:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:57:32] Production.INFO: ==32035== Releasing lock... [2025-02-14 14:57:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:57:32] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:58:06 [end_date_ymd] => 2025-02-14 14:58:06 [RateCDR] => 1 ) [2025-02-14 14:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 11:58:06' and `end` < '2025-02-14 14:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 14:58:26] Production.INFO: count ==4095 [2025-02-14 14:58:27] Production.ERROR: pbx CDR StartTime 2025-02-14 11:58:06 - End Time 2025-02-14 14:58:06 [2025-02-14 14:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474510', 'tblTempUsageDetail_20' ) start [2025-02-14 14:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474510', 'tblTempUsageDetail_20' ) end [2025-02-14 14:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474510', 'tblTempVendorCDR_20' ) start [2025-02-14 14:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474510', 'tblTempVendorCDR_20' ) end [2025-02-14 14:58:28] Production.INFO: ProcessCDR(1,14474510,1,1,2) [2025-02-14 14:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474510', 'tblTempUsageDetail_20' ) start [2025-02-14 14:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474510', 'tblTempUsageDetail_20' ) end [2025-02-14 14:58:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:58:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:58:32] Production.INFO: ==32108== Releasing lock... [2025-02-14 14:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:58:32] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 11:59:05 [end_date_ymd] => 2025-02-14 14:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 11:59:05' and `end` < '2025-02-14 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-02-14 14:59:25] Production.INFO: count ==4108 [2025-02-14 14:59:26] Production.ERROR: pbx CDR StartTime 2025-02-14 11:59:05 - End Time 2025-02-14 14:59:05 [2025-02-14 14:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 14:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474515', 'tblTempUsageDetail_20' ) start [2025-02-14 14:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474515', 'tblTempUsageDetail_20' ) end [2025-02-14 14:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474515', 'tblTempVendorCDR_20' ) start [2025-02-14 14:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474515', 'tblTempVendorCDR_20' ) end [2025-02-14 14:59:26] Production.INFO: ProcessCDR(1,14474515,1,1,2) [2025-02-14 14:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 14:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:59:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 14:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474515', 'tblTempUsageDetail_20' ) start [2025-02-14 14:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474515', 'tblTempUsageDetail_20' ) end [2025-02-14 14:59:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 14:59:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 14:59:32] Production.INFO: ==32177== Releasing lock... [2025-02-14 14:59:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 14:59:32] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:00:07 [end_date_ymd] => 2025-02-14 15:00:07 [RateCDR] => 1 ) [2025-02-14 15:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:00:07' and `end` < '2025-02-14 15:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:00:39] Production.INFO: count ==4110 [2025-02-14 15:00:41] Production.ERROR: pbx CDR StartTime 2025-02-14 12:00:07 - End Time 2025-02-14 15:00:07 [2025-02-14 15:00:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:00:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474520', 'tblTempUsageDetail_20' ) start [2025-02-14 15:00:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474520', 'tblTempUsageDetail_20' ) end [2025-02-14 15:00:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474520', 'tblTempVendorCDR_20' ) start [2025-02-14 15:00:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474520', 'tblTempVendorCDR_20' ) end [2025-02-14 15:00:41] Production.INFO: ProcessCDR(1,14474520,1,1,2) [2025-02-14 15:00:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:00:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:00:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:00:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:00:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474520', 'tblTempUsageDetail_20' ) start [2025-02-14 15:00:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474520', 'tblTempUsageDetail_20' ) end [2025-02-14 15:00:46] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:00:46] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:00:46] Production.INFO: ==32292== Releasing lock... [2025-02-14 15:00:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:00:46] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:01:06 [end_date_ymd] => 2025-02-14 15:01:06 [RateCDR] => 1 ) [2025-02-14 15:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:01:06' and `end` < '2025-02-14 15:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:01:32] Production.INFO: count ==4186 [2025-02-14 15:01:34] Production.ERROR: pbx CDR StartTime 2025-02-14 12:01:06 - End Time 2025-02-14 15:01:06 [2025-02-14 15:01:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474526', 'tblTempUsageDetail_20' ) start [2025-02-14 15:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474526', 'tblTempUsageDetail_20' ) end [2025-02-14 15:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474526', 'tblTempVendorCDR_20' ) start [2025-02-14 15:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474526', 'tblTempVendorCDR_20' ) end [2025-02-14 15:01:34] Production.INFO: ProcessCDR(1,14474526,1,1,2) [2025-02-14 15:01:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:01:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:01:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:01:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:01:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474526', 'tblTempUsageDetail_20' ) start [2025-02-14 15:01:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474526', 'tblTempUsageDetail_20' ) end [2025-02-14 15:01:40] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:01:40] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:01:40] Production.INFO: ==32436== Releasing lock... [2025-02-14 15:01:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:01:40] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:02:06 [end_date_ymd] => 2025-02-14 15:02:06 [RateCDR] => 1 ) [2025-02-14 15:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:02:06' and `end` < '2025-02-14 15:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:02:29] Production.INFO: count ==4180 [2025-02-14 15:02:30] Production.ERROR: pbx CDR StartTime 2025-02-14 12:02:06 - End Time 2025-02-14 15:02:06 [2025-02-14 15:02:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474531', 'tblTempUsageDetail_20' ) start [2025-02-14 15:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474531', 'tblTempUsageDetail_20' ) end [2025-02-14 15:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474531', 'tblTempVendorCDR_20' ) start [2025-02-14 15:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474531', 'tblTempVendorCDR_20' ) end [2025-02-14 15:02:31] Production.INFO: ProcessCDR(1,14474531,1,1,2) [2025-02-14 15:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:02:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:02:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474531', 'tblTempUsageDetail_20' ) start [2025-02-14 15:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474531', 'tblTempUsageDetail_20' ) end [2025-02-14 15:02:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:02:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:02:36] Production.INFO: ==32526== Releasing lock... [2025-02-14 15:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:02:36] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:03:06 [end_date_ymd] => 2025-02-14 15:03:06 [RateCDR] => 1 ) [2025-02-14 15:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:03:06' and `end` < '2025-02-14 15:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:03:26] Production.INFO: count ==4196 [2025-02-14 15:03:27] Production.ERROR: pbx CDR StartTime 2025-02-14 12:03:06 - End Time 2025-02-14 15:03:06 [2025-02-14 15:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474536', 'tblTempUsageDetail_20' ) start [2025-02-14 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474536', 'tblTempUsageDetail_20' ) end [2025-02-14 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474536', 'tblTempVendorCDR_20' ) start [2025-02-14 15:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474536', 'tblTempVendorCDR_20' ) end [2025-02-14 15:03:28] Production.INFO: ProcessCDR(1,14474536,1,1,2) [2025-02-14 15:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474536', 'tblTempUsageDetail_20' ) start [2025-02-14 15:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474536', 'tblTempUsageDetail_20' ) end [2025-02-14 15:03:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:03:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:03:33] Production.INFO: ==32595== Releasing lock... [2025-02-14 15:03:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:03:33] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:04:05 [end_date_ymd] => 2025-02-14 15:04:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:04:05' and `end` < '2025-02-14 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-02-14 15:04:24] Production.INFO: count ==4209 [2025-02-14 15:04:26] Production.ERROR: pbx CDR StartTime 2025-02-14 12:04:05 - End Time 2025-02-14 15:04:05 [2025-02-14 15:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474541', 'tblTempUsageDetail_20' ) start [2025-02-14 15:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474541', 'tblTempUsageDetail_20' ) end [2025-02-14 15:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474541', 'tblTempVendorCDR_20' ) start [2025-02-14 15:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474541', 'tblTempVendorCDR_20' ) end [2025-02-14 15:04:26] Production.INFO: ProcessCDR(1,14474541,1,1,2) [2025-02-14 15:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474541', 'tblTempUsageDetail_20' ) start [2025-02-14 15:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474541', 'tblTempUsageDetail_20' ) end [2025-02-14 15:04:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:04:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:04:32] Production.INFO: ==32666== Releasing lock... [2025-02-14 15:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:04:32] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:05:05 [end_date_ymd] => 2025-02-14 15:05:05 [RateCDR] => 1 ) [2025-02-14 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:05:05' and `end` < '2025-02-14 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:05:26] Production.INFO: count ==4240 [2025-02-14 15:05:27] Production.ERROR: pbx CDR StartTime 2025-02-14 12:05:05 - End Time 2025-02-14 15:05:05 [2025-02-14 15:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474546', 'tblTempUsageDetail_20' ) start [2025-02-14 15:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474546', 'tblTempUsageDetail_20' ) end [2025-02-14 15:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474546', 'tblTempVendorCDR_20' ) start [2025-02-14 15:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474546', 'tblTempVendorCDR_20' ) end [2025-02-14 15:05:28] Production.INFO: ProcessCDR(1,14474546,1,1,2) [2025-02-14 15:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474546', 'tblTempUsageDetail_20' ) start [2025-02-14 15:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474546', 'tblTempUsageDetail_20' ) end [2025-02-14 15:05:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:05:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:05:33] Production.INFO: ==367== Releasing lock... [2025-02-14 15:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:05:33] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:06:05 [end_date_ymd] => 2025-02-14 15:06:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:06:05' and `end` < '2025-02-14 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-02-14 15:06:23] Production.INFO: count ==4212 [2025-02-14 15:06:25] Production.ERROR: pbx CDR StartTime 2025-02-14 12:06:05 - End Time 2025-02-14 15:06:05 [2025-02-14 15:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474551', 'tblTempUsageDetail_20' ) start [2025-02-14 15:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474551', 'tblTempUsageDetail_20' ) end [2025-02-14 15:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474551', 'tblTempVendorCDR_20' ) start [2025-02-14 15:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474551', 'tblTempVendorCDR_20' ) end [2025-02-14 15:06:25] Production.INFO: ProcessCDR(1,14474551,1,1,2) [2025-02-14 15:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474551', 'tblTempUsageDetail_20' ) start [2025-02-14 15:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474551', 'tblTempUsageDetail_20' ) end [2025-02-14 15:06:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:06:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:06:30] Production.INFO: ==438== Releasing lock... [2025-02-14 15:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:06:30] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:07:05 [end_date_ymd] => 2025-02-14 15:07:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:07:05' and `end` < '2025-02-14 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-02-14 15:07:20] Production.INFO: count ==4208 [2025-02-14 15:07:21] Production.ERROR: pbx CDR StartTime 2025-02-14 12:07:05 - End Time 2025-02-14 15:07:05 [2025-02-14 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474556', 'tblTempUsageDetail_20' ) start [2025-02-14 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474556', 'tblTempUsageDetail_20' ) end [2025-02-14 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474556', 'tblTempVendorCDR_20' ) start [2025-02-14 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474556', 'tblTempVendorCDR_20' ) end [2025-02-14 15:07:21] Production.INFO: ProcessCDR(1,14474556,1,1,2) [2025-02-14 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474556', 'tblTempUsageDetail_20' ) start [2025-02-14 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474556', 'tblTempUsageDetail_20' ) end [2025-02-14 15:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:07:25] Production.INFO: ==512== Releasing lock... [2025-02-14 15:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:07:25] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:08:06 [end_date_ymd] => 2025-02-14 15:08:06 [RateCDR] => 1 ) [2025-02-14 15:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:08:06' and `end` < '2025-02-14 15:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:08:24] Production.INFO: count ==4202 [2025-02-14 15:08:26] Production.ERROR: pbx CDR StartTime 2025-02-14 12:08:06 - End Time 2025-02-14 15:08:06 [2025-02-14 15:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474561', 'tblTempUsageDetail_20' ) start [2025-02-14 15:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474561', 'tblTempUsageDetail_20' ) end [2025-02-14 15:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474561', 'tblTempVendorCDR_20' ) start [2025-02-14 15:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474561', 'tblTempVendorCDR_20' ) end [2025-02-14 15:08:26] Production.INFO: ProcessCDR(1,14474561,1,1,2) [2025-02-14 15:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474561', 'tblTempUsageDetail_20' ) start [2025-02-14 15:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474561', 'tblTempUsageDetail_20' ) end [2025-02-14 15:08:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:08:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:08:32] Production.INFO: ==683== Releasing lock... [2025-02-14 15:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:08:32] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:09:06 [end_date_ymd] => 2025-02-14 15:09:06 [RateCDR] => 1 ) [2025-02-14 15:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:09:06' and `end` < '2025-02-14 15:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:09:26] Production.INFO: count ==4222 [2025-02-14 15:09:27] Production.ERROR: pbx CDR StartTime 2025-02-14 12:09:06 - End Time 2025-02-14 15:09:06 [2025-02-14 15:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474566', 'tblTempUsageDetail_20' ) start [2025-02-14 15:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474566', 'tblTempUsageDetail_20' ) end [2025-02-14 15:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474566', 'tblTempVendorCDR_20' ) start [2025-02-14 15:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474566', 'tblTempVendorCDR_20' ) end [2025-02-14 15:09:27] Production.INFO: ProcessCDR(1,14474566,1,1,2) [2025-02-14 15:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:09:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:09:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474566', 'tblTempUsageDetail_20' ) start [2025-02-14 15:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474566', 'tblTempUsageDetail_20' ) end [2025-02-14 15:09:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:09:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:09:33] Production.INFO: ==767== Releasing lock... [2025-02-14 15:09:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:09:33] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:10:05 [end_date_ymd] => 2025-02-14 15:10:05 [RateCDR] => 1 ) [2025-02-14 15: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-02-14 12:10:05' and `end` < '2025-02-14 15: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-02-14 15:10:20] Production.INFO: count ==4218 [2025-02-14 15:10:22] Production.ERROR: pbx CDR StartTime 2025-02-14 12:10:05 - End Time 2025-02-14 15:10:05 [2025-02-14 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474571', 'tblTempUsageDetail_20' ) start [2025-02-14 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474571', 'tblTempUsageDetail_20' ) end [2025-02-14 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474571', 'tblTempVendorCDR_20' ) start [2025-02-14 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474571', 'tblTempVendorCDR_20' ) end [2025-02-14 15:10:22] Production.INFO: ProcessCDR(1,14474571,1,1,2) [2025-02-14 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474571', 'tblTempUsageDetail_20' ) start [2025-02-14 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474571', 'tblTempUsageDetail_20' ) end [2025-02-14 15:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:10:27] Production.INFO: ==842== Releasing lock... [2025-02-14 15:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:10:27] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:11:06 [end_date_ymd] => 2025-02-14 15:11:06 [RateCDR] => 1 ) [2025-02-14 15:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:11:06' and `end` < '2025-02-14 15:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:11:21] Production.INFO: count ==4208 [2025-02-14 15:11:23] Production.ERROR: pbx CDR StartTime 2025-02-14 12:11:06 - End Time 2025-02-14 15:11:06 [2025-02-14 15:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474577', 'tblTempUsageDetail_20' ) start [2025-02-14 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474577', 'tblTempUsageDetail_20' ) end [2025-02-14 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474577', 'tblTempVendorCDR_20' ) start [2025-02-14 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474577', 'tblTempVendorCDR_20' ) end [2025-02-14 15:11:23] Production.INFO: ProcessCDR(1,14474577,1,1,2) [2025-02-14 15:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474577', 'tblTempUsageDetail_20' ) start [2025-02-14 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474577', 'tblTempUsageDetail_20' ) end [2025-02-14 15:11:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:11:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:11:28] Production.INFO: ==920== Releasing lock... [2025-02-14 15:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:11:28] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:12:05 [end_date_ymd] => 2025-02-14 15:12:05 [RateCDR] => 1 ) [2025-02-14 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:12:05' and `end` < '2025-02-14 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:12:21] Production.INFO: count ==4207 [2025-02-14 15:12:23] Production.ERROR: pbx CDR StartTime 2025-02-14 12:12:05 - End Time 2025-02-14 15:12:05 [2025-02-14 15:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474582', 'tblTempUsageDetail_20' ) start [2025-02-14 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474582', 'tblTempUsageDetail_20' ) end [2025-02-14 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474582', 'tblTempVendorCDR_20' ) start [2025-02-14 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474582', 'tblTempVendorCDR_20' ) end [2025-02-14 15:12:23] Production.INFO: ProcessCDR(1,14474582,1,1,2) [2025-02-14 15:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474582', 'tblTempUsageDetail_20' ) start [2025-02-14 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474582', 'tblTempUsageDetail_20' ) end [2025-02-14 15:12:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:12:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:12:29] Production.INFO: ==1070== Releasing lock... [2025-02-14 15:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:12:29] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:13:06 [end_date_ymd] => 2025-02-14 15:13:06 [RateCDR] => 1 ) [2025-02-14 15:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:13:06' and `end` < '2025-02-14 15:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:13:22] Production.INFO: count ==4219 [2025-02-14 15:13:24] Production.ERROR: pbx CDR StartTime 2025-02-14 12:13:06 - End Time 2025-02-14 15:13:06 [2025-02-14 15:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474587', 'tblTempUsageDetail_20' ) start [2025-02-14 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474587', 'tblTempUsageDetail_20' ) end [2025-02-14 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474587', 'tblTempVendorCDR_20' ) start [2025-02-14 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474587', 'tblTempVendorCDR_20' ) end [2025-02-14 15:13:24] Production.INFO: ProcessCDR(1,14474587,1,1,2) [2025-02-14 15:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474587', 'tblTempUsageDetail_20' ) start [2025-02-14 15:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474587', 'tblTempUsageDetail_20' ) end [2025-02-14 15:13:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:13:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:13:30] Production.INFO: ==1145== Releasing lock... [2025-02-14 15:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:13:30] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:14:05 [end_date_ymd] => 2025-02-14 15:14:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:14:05' and `end` < '2025-02-14 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-02-14 15:14:19] Production.INFO: count ==4221 [2025-02-14 15:14:21] Production.ERROR: pbx CDR StartTime 2025-02-14 12:14:05 - End Time 2025-02-14 15:14:05 [2025-02-14 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474592', 'tblTempUsageDetail_20' ) start [2025-02-14 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474592', 'tblTempUsageDetail_20' ) end [2025-02-14 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474592', 'tblTempVendorCDR_20' ) start [2025-02-14 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474592', 'tblTempVendorCDR_20' ) end [2025-02-14 15:14:21] Production.INFO: ProcessCDR(1,14474592,1,1,2) [2025-02-14 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474592', 'tblTempUsageDetail_20' ) start [2025-02-14 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474592', 'tblTempUsageDetail_20' ) end [2025-02-14 15:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:14:26] Production.INFO: ==1219== Releasing lock... [2025-02-14 15:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:14:26] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:15:05 [end_date_ymd] => 2025-02-14 15:15:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:15:05' and `end` < '2025-02-14 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-02-14 15:15:25] Production.INFO: count ==4220 [2025-02-14 15:15:26] Production.ERROR: pbx CDR StartTime 2025-02-14 12:15:05 - End Time 2025-02-14 15:15:05 [2025-02-14 15:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474597', 'tblTempUsageDetail_20' ) start [2025-02-14 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474597', 'tblTempUsageDetail_20' ) end [2025-02-14 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474597', 'tblTempVendorCDR_20' ) start [2025-02-14 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474597', 'tblTempVendorCDR_20' ) end [2025-02-14 15:15:26] Production.INFO: ProcessCDR(1,14474597,1,1,2) [2025-02-14 15:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474597', 'tblTempUsageDetail_20' ) start [2025-02-14 15:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474597', 'tblTempUsageDetail_20' ) end [2025-02-14 15:15:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:15:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:15:32] Production.INFO: ==1424== Releasing lock... [2025-02-14 15:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:15:32] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:16:05 [end_date_ymd] => 2025-02-14 15:16:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:16:05' and `end` < '2025-02-14 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-02-14 15:16:22] Production.INFO: count ==4240 [2025-02-14 15:16:23] Production.ERROR: pbx CDR StartTime 2025-02-14 12:16:05 - End Time 2025-02-14 15:16:05 [2025-02-14 15:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474602', 'tblTempUsageDetail_20' ) start [2025-02-14 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474602', 'tblTempUsageDetail_20' ) end [2025-02-14 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474602', 'tblTempVendorCDR_20' ) start [2025-02-14 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474602', 'tblTempVendorCDR_20' ) end [2025-02-14 15:16:24] Production.INFO: ProcessCDR(1,14474602,1,1,2) [2025-02-14 15:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474602', 'tblTempUsageDetail_20' ) start [2025-02-14 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474602', 'tblTempUsageDetail_20' ) end [2025-02-14 15:16:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:16:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:16:29] Production.INFO: ==1495== Releasing lock... [2025-02-14 15:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:16:29] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:17:05 [end_date_ymd] => 2025-02-14 15:17:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:17:05' and `end` < '2025-02-14 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-02-14 15:17:19] Production.INFO: count ==4260 [2025-02-14 15:17:21] Production.ERROR: pbx CDR StartTime 2025-02-14 12:17:05 - End Time 2025-02-14 15:17:05 [2025-02-14 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474607', 'tblTempUsageDetail_20' ) start [2025-02-14 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474607', 'tblTempUsageDetail_20' ) end [2025-02-14 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474607', 'tblTempVendorCDR_20' ) start [2025-02-14 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474607', 'tblTempVendorCDR_20' ) end [2025-02-14 15:17:21] Production.INFO: ProcessCDR(1,14474607,1,1,2) [2025-02-14 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474607', 'tblTempUsageDetail_20' ) start [2025-02-14 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474607', 'tblTempUsageDetail_20' ) end [2025-02-14 15:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:17:25] Production.INFO: ==1605== Releasing lock... [2025-02-14 15:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:17:25] Production.INFO: 60 MB #Memory Used# [2025-02-14 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:18:05 [end_date_ymd] => 2025-02-14 15:18:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:18:05' and `end` < '2025-02-14 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-02-14 15:18:20] Production.INFO: count ==4252 [2025-02-14 15:18:22] Production.ERROR: pbx CDR StartTime 2025-02-14 12:18:05 - End Time 2025-02-14 15:18:05 [2025-02-14 15:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474612', 'tblTempUsageDetail_20' ) start [2025-02-14 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474612', 'tblTempUsageDetail_20' ) end [2025-02-14 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474612', 'tblTempVendorCDR_20' ) start [2025-02-14 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474612', 'tblTempVendorCDR_20' ) end [2025-02-14 15:18:22] Production.INFO: ProcessCDR(1,14474612,1,1,2) [2025-02-14 15:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474612', 'tblTempUsageDetail_20' ) start [2025-02-14 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474612', 'tblTempUsageDetail_20' ) end [2025-02-14 15:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:18:27] Production.INFO: ==1679== Releasing lock... [2025-02-14 15:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:18:27] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:19:05 [end_date_ymd] => 2025-02-14 15:19:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:19:05' and `end` < '2025-02-14 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-02-14 15:19:20] Production.INFO: count ==4252 [2025-02-14 15:19:22] Production.ERROR: pbx CDR StartTime 2025-02-14 12:19:05 - End Time 2025-02-14 15:19:05 [2025-02-14 15:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474617', 'tblTempUsageDetail_20' ) start [2025-02-14 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474617', 'tblTempUsageDetail_20' ) end [2025-02-14 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474617', 'tblTempVendorCDR_20' ) start [2025-02-14 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474617', 'tblTempVendorCDR_20' ) end [2025-02-14 15:19:22] Production.INFO: ProcessCDR(1,14474617,1,1,2) [2025-02-14 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474617', 'tblTempUsageDetail_20' ) start [2025-02-14 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474617', 'tblTempUsageDetail_20' ) end [2025-02-14 15:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:19:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:19:28] Production.INFO: ==1751== Releasing lock... [2025-02-14 15:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:19:28] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:20:06 [end_date_ymd] => 2025-02-14 15:20:06 [RateCDR] => 1 ) [2025-02-14 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:20:06' and `end` < '2025-02-14 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:20:20] Production.INFO: count ==4249 [2025-02-14 15:20:22] Production.ERROR: pbx CDR StartTime 2025-02-14 12:20:06 - End Time 2025-02-14 15:20:06 [2025-02-14 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474623', 'tblTempUsageDetail_20' ) start [2025-02-14 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474623', 'tblTempUsageDetail_20' ) end [2025-02-14 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474623', 'tblTempVendorCDR_20' ) start [2025-02-14 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474623', 'tblTempVendorCDR_20' ) end [2025-02-14 15:20:22] Production.INFO: ProcessCDR(1,14474623,1,1,2) [2025-02-14 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474623', 'tblTempUsageDetail_20' ) start [2025-02-14 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474623', 'tblTempUsageDetail_20' ) end [2025-02-14 15:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:20:26] Production.INFO: ==1828== Releasing lock... [2025-02-14 15:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:20:26] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:21:05 [end_date_ymd] => 2025-02-14 15:21:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:21:05' and `end` < '2025-02-14 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-02-14 15:21:22] Production.INFO: count ==4226 [2025-02-14 15:21:23] Production.ERROR: pbx CDR StartTime 2025-02-14 12:21:05 - End Time 2025-02-14 15:21:05 [2025-02-14 15:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474628', 'tblTempUsageDetail_20' ) start [2025-02-14 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474628', 'tblTempUsageDetail_20' ) end [2025-02-14 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474628', 'tblTempVendorCDR_20' ) start [2025-02-14 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474628', 'tblTempVendorCDR_20' ) end [2025-02-14 15:21:24] Production.INFO: ProcessCDR(1,14474628,1,1,2) [2025-02-14 15:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474628', 'tblTempUsageDetail_20' ) start [2025-02-14 15:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474628', 'tblTempUsageDetail_20' ) end [2025-02-14 15:21:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:21:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:21:29] Production.INFO: ==1900== Releasing lock... [2025-02-14 15:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:21:29] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:22:05 [end_date_ymd] => 2025-02-14 15:22:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:22:05' and `end` < '2025-02-14 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-02-14 15:22:26] Production.INFO: count ==4232 [2025-02-14 15:22:27] Production.ERROR: pbx CDR StartTime 2025-02-14 12:22:05 - End Time 2025-02-14 15:22:05 [2025-02-14 15:22:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474633', 'tblTempUsageDetail_20' ) start [2025-02-14 15:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474633', 'tblTempUsageDetail_20' ) end [2025-02-14 15:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474633', 'tblTempVendorCDR_20' ) start [2025-02-14 15:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474633', 'tblTempVendorCDR_20' ) end [2025-02-14 15:22:28] Production.INFO: ProcessCDR(1,14474633,1,1,2) [2025-02-14 15:22:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:22:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:22:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:22:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474633', 'tblTempUsageDetail_20' ) start [2025-02-14 15:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474633', 'tblTempUsageDetail_20' ) end [2025-02-14 15:22:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:22:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:22:33] Production.INFO: ==1970== Releasing lock... [2025-02-14 15:22:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:22:33] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:23:05 [end_date_ymd] => 2025-02-14 15:23:05 [RateCDR] => 1 ) [2025-02-14 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:23:05' and `end` < '2025-02-14 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:23:24] Production.INFO: count ==4231 [2025-02-14 15:23:26] Production.ERROR: pbx CDR StartTime 2025-02-14 12:23:05 - End Time 2025-02-14 15:23:05 [2025-02-14 15:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474638', 'tblTempUsageDetail_20' ) start [2025-02-14 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474638', 'tblTempUsageDetail_20' ) end [2025-02-14 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474638', 'tblTempVendorCDR_20' ) start [2025-02-14 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474638', 'tblTempVendorCDR_20' ) end [2025-02-14 15:23:26] Production.INFO: ProcessCDR(1,14474638,1,1,2) [2025-02-14 15:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474638', 'tblTempUsageDetail_20' ) start [2025-02-14 15:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474638', 'tblTempUsageDetail_20' ) end [2025-02-14 15:23:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:23:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:23:31] Production.INFO: ==2044== Releasing lock... [2025-02-14 15:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:23:31] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:24:05 [end_date_ymd] => 2025-02-14 15:24:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:24:05' and `end` < '2025-02-14 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-02-14 15:24:28] Production.INFO: count ==4227 [2025-02-14 15:24:30] Production.ERROR: pbx CDR StartTime 2025-02-14 12:24:05 - End Time 2025-02-14 15:24:05 [2025-02-14 15:24:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474643', 'tblTempUsageDetail_20' ) start [2025-02-14 15:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474643', 'tblTempUsageDetail_20' ) end [2025-02-14 15:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474643', 'tblTempVendorCDR_20' ) start [2025-02-14 15:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474643', 'tblTempVendorCDR_20' ) end [2025-02-14 15:24:30] Production.INFO: ProcessCDR(1,14474643,1,1,2) [2025-02-14 15:24:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:24:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:24:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:24:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474643', 'tblTempUsageDetail_20' ) start [2025-02-14 15:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474643', 'tblTempUsageDetail_20' ) end [2025-02-14 15:24:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:24:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:24:35] Production.INFO: ==2117== Releasing lock... [2025-02-14 15:24:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:24:35] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:25:05 [end_date_ymd] => 2025-02-14 15:25:05 [RateCDR] => 1 ) [2025-02-14 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:25:05' and `end` < '2025-02-14 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:25:27] Production.INFO: count ==4217 [2025-02-14 15:25:28] Production.ERROR: pbx CDR StartTime 2025-02-14 12:25:05 - End Time 2025-02-14 15:25:05 [2025-02-14 15:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474648', 'tblTempUsageDetail_20' ) start [2025-02-14 15:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474648', 'tblTempUsageDetail_20' ) end [2025-02-14 15:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474648', 'tblTempVendorCDR_20' ) start [2025-02-14 15:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474648', 'tblTempVendorCDR_20' ) end [2025-02-14 15:25:29] Production.INFO: ProcessCDR(1,14474648,1,1,2) [2025-02-14 15:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474648', 'tblTempUsageDetail_20' ) start [2025-02-14 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474648', 'tblTempUsageDetail_20' ) end [2025-02-14 15:25:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:25:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:25:34] Production.INFO: ==2196== Releasing lock... [2025-02-14 15:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:25:34] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:26:05 [end_date_ymd] => 2025-02-14 15:26:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:26:05' and `end` < '2025-02-14 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-02-14 15:26:26] Production.INFO: count ==4213 [2025-02-14 15:26:27] Production.ERROR: pbx CDR StartTime 2025-02-14 12:26:05 - End Time 2025-02-14 15:26:05 [2025-02-14 15:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474653', 'tblTempUsageDetail_20' ) start [2025-02-14 15:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474653', 'tblTempUsageDetail_20' ) end [2025-02-14 15:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474653', 'tblTempVendorCDR_20' ) start [2025-02-14 15:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474653', 'tblTempVendorCDR_20' ) end [2025-02-14 15:26:28] Production.INFO: ProcessCDR(1,14474653,1,1,2) [2025-02-14 15:26:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474653', 'tblTempUsageDetail_20' ) start [2025-02-14 15:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474653', 'tblTempUsageDetail_20' ) end [2025-02-14 15:26:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:26:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:26:33] Production.INFO: ==2274== Releasing lock... [2025-02-14 15:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:26:33] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:27:06 [end_date_ymd] => 2025-02-14 15:27:06 [RateCDR] => 1 ) [2025-02-14 15:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:27:06' and `end` < '2025-02-14 15:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:27:26] Production.INFO: count ==4208 [2025-02-14 15:27:28] Production.ERROR: pbx CDR StartTime 2025-02-14 12:27:06 - End Time 2025-02-14 15:27:06 [2025-02-14 15:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474658', 'tblTempUsageDetail_20' ) start [2025-02-14 15:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474658', 'tblTempUsageDetail_20' ) end [2025-02-14 15:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474658', 'tblTempVendorCDR_20' ) start [2025-02-14 15:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474658', 'tblTempVendorCDR_20' ) end [2025-02-14 15:27:28] Production.INFO: ProcessCDR(1,14474658,1,1,2) [2025-02-14 15:27:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:27:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:27:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:27:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474658', 'tblTempUsageDetail_20' ) start [2025-02-14 15:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474658', 'tblTempUsageDetail_20' ) end [2025-02-14 15:27:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:27:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:27:34] Production.INFO: ==2345== Releasing lock... [2025-02-14 15:27:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:27:34] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:28:05 [end_date_ymd] => 2025-02-14 15:28:05 [RateCDR] => 1 ) [2025-02-14 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:28:05' and `end` < '2025-02-14 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-02-14 15:28:24] Production.INFO: count ==4201 [2025-02-14 15:28:26] Production.ERROR: pbx CDR StartTime 2025-02-14 12:28:05 - End Time 2025-02-14 15:28:05 [2025-02-14 15:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474663', 'tblTempUsageDetail_20' ) start [2025-02-14 15:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474663', 'tblTempUsageDetail_20' ) end [2025-02-14 15:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474663', 'tblTempVendorCDR_20' ) start [2025-02-14 15:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474663', 'tblTempVendorCDR_20' ) end [2025-02-14 15:28:26] Production.INFO: ProcessCDR(1,14474663,1,1,2) [2025-02-14 15:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474663', 'tblTempUsageDetail_20' ) start [2025-02-14 15:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474663', 'tblTempUsageDetail_20' ) end [2025-02-14 15:28:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:28:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:28:32] Production.INFO: ==2419== Releasing lock... [2025-02-14 15:28:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:28:32] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:29:06 [end_date_ymd] => 2025-02-14 15:29:06 [RateCDR] => 1 ) [2025-02-14 15:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:29:06' and `end` < '2025-02-14 15:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:29:24] Production.INFO: count ==4198 [2025-02-14 15:29:26] Production.ERROR: pbx CDR StartTime 2025-02-14 12:29:06 - End Time 2025-02-14 15:29:06 [2025-02-14 15:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474668', 'tblTempUsageDetail_20' ) start [2025-02-14 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474668', 'tblTempUsageDetail_20' ) end [2025-02-14 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474668', 'tblTempVendorCDR_20' ) start [2025-02-14 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474668', 'tblTempVendorCDR_20' ) end [2025-02-14 15:29:26] Production.INFO: ProcessCDR(1,14474668,1,1,2) [2025-02-14 15:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474668', 'tblTempUsageDetail_20' ) start [2025-02-14 15:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474668', 'tblTempUsageDetail_20' ) end [2025-02-14 15:29:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:29:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:29:32] Production.INFO: ==2489== Releasing lock... [2025-02-14 15:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:29:32] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:30:06 [end_date_ymd] => 2025-02-14 15:30:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:30:06' and `end` < '2025-02-14 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-02-14 15:30:28] Production.INFO: count ==4200 [2025-02-14 15:30:30] Production.ERROR: pbx CDR StartTime 2025-02-14 12:30:06 - End Time 2025-02-14 15:30:06 [2025-02-14 15:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474673', 'tblTempUsageDetail_20' ) start [2025-02-14 15:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474673', 'tblTempUsageDetail_20' ) end [2025-02-14 15:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474673', 'tblTempVendorCDR_20' ) start [2025-02-14 15:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474673', 'tblTempVendorCDR_20' ) end [2025-02-14 15:30:30] Production.INFO: ProcessCDR(1,14474673,1,1,2) [2025-02-14 15:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474673', 'tblTempUsageDetail_20' ) start [2025-02-14 15:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474673', 'tblTempUsageDetail_20' ) end [2025-02-14 15:30:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:30:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:30:36] Production.INFO: ==2561== Releasing lock... [2025-02-14 15:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:30:36] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:31:05 [end_date_ymd] => 2025-02-14 15:31:05 [RateCDR] => 1 ) [2025-02-14 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:31:05' and `end` < '2025-02-14 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:31:27] Production.INFO: count ==4188 [2025-02-14 15:31:29] Production.ERROR: pbx CDR StartTime 2025-02-14 12:31:05 - End Time 2025-02-14 15:31:05 [2025-02-14 15:31:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474679', 'tblTempUsageDetail_20' ) start [2025-02-14 15:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474679', 'tblTempUsageDetail_20' ) end [2025-02-14 15:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474679', 'tblTempVendorCDR_20' ) start [2025-02-14 15:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474679', 'tblTempVendorCDR_20' ) end [2025-02-14 15:31:29] Production.INFO: ProcessCDR(1,14474679,1,1,2) [2025-02-14 15:31:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:31:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:31:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:31:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474679', 'tblTempUsageDetail_20' ) start [2025-02-14 15:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474679', 'tblTempUsageDetail_20' ) end [2025-02-14 15:31:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:31:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:31:34] Production.INFO: ==2673== Releasing lock... [2025-02-14 15:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:31:34] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:32:05 [end_date_ymd] => 2025-02-14 15:32:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:32:05' and `end` < '2025-02-14 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-02-14 15:32:19] Production.INFO: count ==4212 [2025-02-14 15:32:21] Production.ERROR: pbx CDR StartTime 2025-02-14 12:32:05 - End Time 2025-02-14 15:32:05 [2025-02-14 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474684', 'tblTempUsageDetail_20' ) start [2025-02-14 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474684', 'tblTempUsageDetail_20' ) end [2025-02-14 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474684', 'tblTempVendorCDR_20' ) start [2025-02-14 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474684', 'tblTempVendorCDR_20' ) end [2025-02-14 15:32:21] Production.INFO: ProcessCDR(1,14474684,1,1,2) [2025-02-14 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474684', 'tblTempUsageDetail_20' ) start [2025-02-14 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474684', 'tblTempUsageDetail_20' ) end [2025-02-14 15:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:32:26] Production.INFO: ==2745== Releasing lock... [2025-02-14 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:32:26] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:33:06 [end_date_ymd] => 2025-02-14 15:33:06 [RateCDR] => 1 ) [2025-02-14 15: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-02-14 12:33:06' and `end` < '2025-02-14 15: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-02-14 15:33:24] Production.INFO: count ==4202 [2025-02-14 15:33:26] Production.ERROR: pbx CDR StartTime 2025-02-14 12:33:06 - End Time 2025-02-14 15:33:06 [2025-02-14 15:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474689', 'tblTempUsageDetail_20' ) start [2025-02-14 15:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474689', 'tblTempUsageDetail_20' ) end [2025-02-14 15:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474689', 'tblTempVendorCDR_20' ) start [2025-02-14 15:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474689', 'tblTempVendorCDR_20' ) end [2025-02-14 15:33:26] Production.INFO: ProcessCDR(1,14474689,1,1,2) [2025-02-14 15:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474689', 'tblTempUsageDetail_20' ) start [2025-02-14 15:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474689', 'tblTempUsageDetail_20' ) end [2025-02-14 15:33:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:33:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:33:31] Production.INFO: ==2816== Releasing lock... [2025-02-14 15:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:33:31] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:34:05 [end_date_ymd] => 2025-02-14 15:34:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:34:05' and `end` < '2025-02-14 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-02-14 15:34:22] Production.INFO: count ==4194 [2025-02-14 15:34:24] Production.ERROR: pbx CDR StartTime 2025-02-14 12:34:05 - End Time 2025-02-14 15:34:05 [2025-02-14 15:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474694', 'tblTempUsageDetail_20' ) start [2025-02-14 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474694', 'tblTempUsageDetail_20' ) end [2025-02-14 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474694', 'tblTempVendorCDR_20' ) start [2025-02-14 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474694', 'tblTempVendorCDR_20' ) end [2025-02-14 15:34:24] Production.INFO: ProcessCDR(1,14474694,1,1,2) [2025-02-14 15:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474694', 'tblTempUsageDetail_20' ) start [2025-02-14 15:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474694', 'tblTempUsageDetail_20' ) end [2025-02-14 15:34:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:34:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:34:28] Production.INFO: ==2886== Releasing lock... [2025-02-14 15:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:34:28] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:35:05 [end_date_ymd] => 2025-02-14 15:35:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:35:05' and `end` < '2025-02-14 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-02-14 15:35:34] Production.INFO: count ==4185 [2025-02-14 15:35:36] Production.ERROR: pbx CDR StartTime 2025-02-14 12:35:05 - End Time 2025-02-14 15:35:05 [2025-02-14 15:35:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:35:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474699', 'tblTempUsageDetail_20' ) start [2025-02-14 15:35:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474699', 'tblTempUsageDetail_20' ) end [2025-02-14 15:35:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474699', 'tblTempVendorCDR_20' ) start [2025-02-14 15:35:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474699', 'tblTempVendorCDR_20' ) end [2025-02-14 15:35:36] Production.INFO: ProcessCDR(1,14474699,1,1,2) [2025-02-14 15:35:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:35:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:35:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:35:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:35:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474699', 'tblTempUsageDetail_20' ) start [2025-02-14 15:35:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474699', 'tblTempUsageDetail_20' ) end [2025-02-14 15:35:41] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:35:41] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:35:41] Production.INFO: ==2962== Releasing lock... [2025-02-14 15:35:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:35:41] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:36:05 [end_date_ymd] => 2025-02-14 15:36:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:36:05' and `end` < '2025-02-14 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-02-14 15:36:27] Production.INFO: count ==4189 [2025-02-14 15:36:29] Production.ERROR: pbx CDR StartTime 2025-02-14 12:36:05 - End Time 2025-02-14 15:36:05 [2025-02-14 15:36:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474704', 'tblTempUsageDetail_20' ) start [2025-02-14 15:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474704', 'tblTempUsageDetail_20' ) end [2025-02-14 15:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474704', 'tblTempVendorCDR_20' ) start [2025-02-14 15:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474704', 'tblTempVendorCDR_20' ) end [2025-02-14 15:36:29] Production.INFO: ProcessCDR(1,14474704,1,1,2) [2025-02-14 15:36:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:36:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:36:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:36:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474704', 'tblTempUsageDetail_20' ) start [2025-02-14 15:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474704', 'tblTempUsageDetail_20' ) end [2025-02-14 15:36:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:36:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:36:34] Production.INFO: ==3032== Releasing lock... [2025-02-14 15:36:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:36:34] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:37:06 [end_date_ymd] => 2025-02-14 15:37:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:37:06' and `end` < '2025-02-14 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-02-14 15:37:22] Production.INFO: count ==4148 [2025-02-14 15:37:23] Production.ERROR: pbx CDR StartTime 2025-02-14 12:37:06 - End Time 2025-02-14 15:37:06 [2025-02-14 15:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474709', 'tblTempUsageDetail_20' ) start [2025-02-14 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474709', 'tblTempUsageDetail_20' ) end [2025-02-14 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474709', 'tblTempVendorCDR_20' ) start [2025-02-14 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474709', 'tblTempVendorCDR_20' ) end [2025-02-14 15:37:24] Production.INFO: ProcessCDR(1,14474709,1,1,2) [2025-02-14 15:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474709', 'tblTempUsageDetail_20' ) start [2025-02-14 15:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474709', 'tblTempUsageDetail_20' ) end [2025-02-14 15:37:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:37:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:37:29] Production.INFO: ==3104== Releasing lock... [2025-02-14 15:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:37:29] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:38:05 [end_date_ymd] => 2025-02-14 15:38:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:38:05' and `end` < '2025-02-14 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-02-14 15:38:21] Production.INFO: count ==4135 [2025-02-14 15:38:22] Production.ERROR: pbx CDR StartTime 2025-02-14 12:38:05 - End Time 2025-02-14 15:38:05 [2025-02-14 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474714', 'tblTempUsageDetail_20' ) start [2025-02-14 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474714', 'tblTempUsageDetail_20' ) end [2025-02-14 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474714', 'tblTempVendorCDR_20' ) start [2025-02-14 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474714', 'tblTempVendorCDR_20' ) end [2025-02-14 15:38:22] Production.INFO: ProcessCDR(1,14474714,1,1,2) [2025-02-14 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474714', 'tblTempUsageDetail_20' ) start [2025-02-14 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474714', 'tblTempUsageDetail_20' ) end [2025-02-14 15:38:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:38:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:38:28] Production.INFO: ==3177== Releasing lock... [2025-02-14 15:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:38:28] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:39:06 [end_date_ymd] => 2025-02-14 15:39:06 [RateCDR] => 1 ) [2025-02-14 15:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:39:06' and `end` < '2025-02-14 15:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:39:20] Production.INFO: count ==4145 [2025-02-14 15:39:22] Production.ERROR: pbx CDR StartTime 2025-02-14 12:39:06 - End Time 2025-02-14 15:39:06 [2025-02-14 15:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474719', 'tblTempUsageDetail_20' ) start [2025-02-14 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474719', 'tblTempUsageDetail_20' ) end [2025-02-14 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474719', 'tblTempVendorCDR_20' ) start [2025-02-14 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474719', 'tblTempVendorCDR_20' ) end [2025-02-14 15:39:22] Production.INFO: ProcessCDR(1,14474719,1,1,2) [2025-02-14 15:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474719', 'tblTempUsageDetail_20' ) start [2025-02-14 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474719', 'tblTempUsageDetail_20' ) end [2025-02-14 15:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:39:26] Production.INFO: ==3254== Releasing lock... [2025-02-14 15:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:39:26] Production.INFO: 59 MB #Memory Used# [2025-02-14 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:40:06 [end_date_ymd] => 2025-02-14 15:40:06 [RateCDR] => 1 ) [2025-02-14 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:40:06' and `end` < '2025-02-14 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:40:27] Production.INFO: count ==4138 [2025-02-14 15:40:29] Production.ERROR: pbx CDR StartTime 2025-02-14 12:40:06 - End Time 2025-02-14 15:40:06 [2025-02-14 15:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474725', 'tblTempUsageDetail_20' ) start [2025-02-14 15:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474725', 'tblTempUsageDetail_20' ) end [2025-02-14 15:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474725', 'tblTempVendorCDR_20' ) start [2025-02-14 15:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474725', 'tblTempVendorCDR_20' ) end [2025-02-14 15:40:29] Production.INFO: ProcessCDR(1,14474725,1,1,2) [2025-02-14 15:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474725', 'tblTempUsageDetail_20' ) start [2025-02-14 15:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474725', 'tblTempUsageDetail_20' ) end [2025-02-14 15:40:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:40:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:40:34] Production.INFO: ==3328== Releasing lock... [2025-02-14 15:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:40:34] Production.INFO: 59 MB #Memory Used# [2025-02-14 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:41:05 [end_date_ymd] => 2025-02-14 15:41:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:41:05' and `end` < '2025-02-14 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-02-14 15:41:23] Production.INFO: count ==4157 [2025-02-14 15:41:24] Production.ERROR: pbx CDR StartTime 2025-02-14 12:41:05 - End Time 2025-02-14 15:41:05 [2025-02-14 15:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474730', 'tblTempUsageDetail_20' ) start [2025-02-14 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474730', 'tblTempUsageDetail_20' ) end [2025-02-14 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474730', 'tblTempVendorCDR_20' ) start [2025-02-14 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474730', 'tblTempVendorCDR_20' ) end [2025-02-14 15:41:25] Production.INFO: ProcessCDR(1,14474730,1,1,2) [2025-02-14 15:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474730', 'tblTempUsageDetail_20' ) start [2025-02-14 15:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474730', 'tblTempUsageDetail_20' ) end [2025-02-14 15:41:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:41:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:41:30] Production.INFO: ==3402== Releasing lock... [2025-02-14 15:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:41:30] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:42:05 [end_date_ymd] => 2025-02-14 15:42:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:42:05' and `end` < '2025-02-14 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-02-14 15:42:25] Production.INFO: count ==4169 [2025-02-14 15:42:26] Production.ERROR: pbx CDR StartTime 2025-02-14 12:42:05 - End Time 2025-02-14 15:42:05 [2025-02-14 15:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474735', 'tblTempUsageDetail_20' ) start [2025-02-14 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474735', 'tblTempUsageDetail_20' ) end [2025-02-14 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474735', 'tblTempVendorCDR_20' ) start [2025-02-14 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474735', 'tblTempVendorCDR_20' ) end [2025-02-14 15:42:26] Production.INFO: ProcessCDR(1,14474735,1,1,2) [2025-02-14 15:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474735', 'tblTempUsageDetail_20' ) start [2025-02-14 15:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474735', 'tblTempUsageDetail_20' ) end [2025-02-14 15:42:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:42:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:42:32] Production.INFO: ==3472== Releasing lock... [2025-02-14 15:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:42:32] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:43:05 [end_date_ymd] => 2025-02-14 15:43:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:43:05' and `end` < '2025-02-14 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-02-14 15:43:22] Production.INFO: count ==4168 [2025-02-14 15:43:24] Production.ERROR: pbx CDR StartTime 2025-02-14 12:43:05 - End Time 2025-02-14 15:43:05 [2025-02-14 15:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474740', 'tblTempUsageDetail_20' ) start [2025-02-14 15:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474740', 'tblTempUsageDetail_20' ) end [2025-02-14 15:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474740', 'tblTempVendorCDR_20' ) start [2025-02-14 15:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474740', 'tblTempVendorCDR_20' ) end [2025-02-14 15:43:24] Production.INFO: ProcessCDR(1,14474740,1,1,2) [2025-02-14 15:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474740', 'tblTempUsageDetail_20' ) start [2025-02-14 15:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474740', 'tblTempUsageDetail_20' ) end [2025-02-14 15:43:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:43:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:43:29] Production.INFO: ==3543== Releasing lock... [2025-02-14 15:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:43:29] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:44:05 [end_date_ymd] => 2025-02-14 15:44:05 [RateCDR] => 1 ) [2025-02-14 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:44:05' and `end` < '2025-02-14 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:44:22] Production.INFO: count ==4137 [2025-02-14 15:44:24] Production.ERROR: pbx CDR StartTime 2025-02-14 12:44:05 - End Time 2025-02-14 15:44:05 [2025-02-14 15:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474745', 'tblTempUsageDetail_20' ) start [2025-02-14 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474745', 'tblTempUsageDetail_20' ) end [2025-02-14 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474745', 'tblTempVendorCDR_20' ) start [2025-02-14 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474745', 'tblTempVendorCDR_20' ) end [2025-02-14 15:44:24] Production.INFO: ProcessCDR(1,14474745,1,1,2) [2025-02-14 15:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474745', 'tblTempUsageDetail_20' ) start [2025-02-14 15:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474745', 'tblTempUsageDetail_20' ) end [2025-02-14 15:44:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:44:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:44:29] Production.INFO: ==3613== Releasing lock... [2025-02-14 15:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:44:29] Production.INFO: 59 MB #Memory Used# [2025-02-14 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:45:05 [end_date_ymd] => 2025-02-14 15:45:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:45:05' and `end` < '2025-02-14 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-02-14 15:45:19] Production.INFO: count ==4137 [2025-02-14 15:45:21] Production.ERROR: pbx CDR StartTime 2025-02-14 12:45:05 - End Time 2025-02-14 15:45:05 [2025-02-14 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474750', 'tblTempUsageDetail_20' ) start [2025-02-14 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474750', 'tblTempUsageDetail_20' ) end [2025-02-14 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474750', 'tblTempVendorCDR_20' ) start [2025-02-14 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474750', 'tblTempVendorCDR_20' ) end [2025-02-14 15:45:21] Production.INFO: ProcessCDR(1,14474750,1,1,2) [2025-02-14 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474750', 'tblTempUsageDetail_20' ) start [2025-02-14 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474750', 'tblTempUsageDetail_20' ) end [2025-02-14 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:45:26] Production.INFO: ==3686== Releasing lock... [2025-02-14 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:45:26] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:46:05 [end_date_ymd] => 2025-02-14 15:46:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:46:05' and `end` < '2025-02-14 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-02-14 15:46:21] Production.INFO: count ==4134 [2025-02-14 15:46:23] Production.ERROR: pbx CDR StartTime 2025-02-14 12:46:05 - End Time 2025-02-14 15:46:05 [2025-02-14 15:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474755', 'tblTempUsageDetail_20' ) start [2025-02-14 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474755', 'tblTempUsageDetail_20' ) end [2025-02-14 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474755', 'tblTempVendorCDR_20' ) start [2025-02-14 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474755', 'tblTempVendorCDR_20' ) end [2025-02-14 15:46:23] Production.INFO: ProcessCDR(1,14474755,1,1,2) [2025-02-14 15:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474755', 'tblTempUsageDetail_20' ) start [2025-02-14 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474755', 'tblTempUsageDetail_20' ) end [2025-02-14 15:46:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:46:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:46:28] Production.INFO: ==3795== Releasing lock... [2025-02-14 15:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:46:28] Production.INFO: 59 MB #Memory Used# [2025-02-14 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:47:05 [end_date_ymd] => 2025-02-14 15:47:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:47:05' and `end` < '2025-02-14 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-02-14 15:47:27] Production.INFO: count ==4158 [2025-02-14 15:47:29] Production.ERROR: pbx CDR StartTime 2025-02-14 12:47:05 - End Time 2025-02-14 15:47:05 [2025-02-14 15:47:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474760', 'tblTempUsageDetail_20' ) start [2025-02-14 15:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474760', 'tblTempUsageDetail_20' ) end [2025-02-14 15:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474760', 'tblTempVendorCDR_20' ) start [2025-02-14 15:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474760', 'tblTempVendorCDR_20' ) end [2025-02-14 15:47:29] Production.INFO: ProcessCDR(1,14474760,1,1,2) [2025-02-14 15:47:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:47:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474760', 'tblTempUsageDetail_20' ) start [2025-02-14 15:47:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474760', 'tblTempUsageDetail_20' ) end [2025-02-14 15:47:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:47:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:47:35] Production.INFO: ==3876== Releasing lock... [2025-02-14 15:47:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:47:35] Production.INFO: 59 MB #Memory Used# [2025-02-14 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:48:05 [end_date_ymd] => 2025-02-14 15:48:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:48:05' and `end` < '2025-02-14 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-02-14 15:48:26] Production.INFO: count ==4166 [2025-02-14 15:48:28] Production.ERROR: pbx CDR StartTime 2025-02-14 12:48:05 - End Time 2025-02-14 15:48:05 [2025-02-14 15:48:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474765', 'tblTempUsageDetail_20' ) start [2025-02-14 15:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474765', 'tblTempUsageDetail_20' ) end [2025-02-14 15:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474765', 'tblTempVendorCDR_20' ) start [2025-02-14 15:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474765', 'tblTempVendorCDR_20' ) end [2025-02-14 15:48:28] Production.INFO: ProcessCDR(1,14474765,1,1,2) [2025-02-14 15:48:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:48:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474765', 'tblTempUsageDetail_20' ) start [2025-02-14 15:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474765', 'tblTempUsageDetail_20' ) end [2025-02-14 15:48:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:48:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:48:33] Production.INFO: ==3958== Releasing lock... [2025-02-14 15:48:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:48:33] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:49:06 [end_date_ymd] => 2025-02-14 15:49:06 [RateCDR] => 1 ) [2025-02-14 15:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:49:06' and `end` < '2025-02-14 15:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:49:24] Production.INFO: count ==4165 [2025-02-14 15:49:26] Production.ERROR: pbx CDR StartTime 2025-02-14 12:49:06 - End Time 2025-02-14 15:49:06 [2025-02-14 15:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474770', 'tblTempUsageDetail_20' ) start [2025-02-14 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474770', 'tblTempUsageDetail_20' ) end [2025-02-14 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474770', 'tblTempVendorCDR_20' ) start [2025-02-14 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474770', 'tblTempVendorCDR_20' ) end [2025-02-14 15:49:26] Production.INFO: ProcessCDR(1,14474770,1,1,2) [2025-02-14 15:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474770', 'tblTempUsageDetail_20' ) start [2025-02-14 15:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474770', 'tblTempUsageDetail_20' ) end [2025-02-14 15:49:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:49:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:49:31] Production.INFO: ==4040== Releasing lock... [2025-02-14 15:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:49:31] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:50:06 [end_date_ymd] => 2025-02-14 15:50:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:50:06' and `end` < '2025-02-14 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-02-14 15:50:20] Production.INFO: count ==4153 [2025-02-14 15:50:22] Production.ERROR: pbx CDR StartTime 2025-02-14 12:50:06 - End Time 2025-02-14 15:50:06 [2025-02-14 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474776', 'tblTempUsageDetail_20' ) start [2025-02-14 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474776', 'tblTempUsageDetail_20' ) end [2025-02-14 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474776', 'tblTempVendorCDR_20' ) start [2025-02-14 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474776', 'tblTempVendorCDR_20' ) end [2025-02-14 15:50:22] Production.INFO: ProcessCDR(1,14474776,1,1,2) [2025-02-14 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474776', 'tblTempUsageDetail_20' ) start [2025-02-14 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474776', 'tblTempUsageDetail_20' ) end [2025-02-14 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:50:28] Production.INFO: ==4130== Releasing lock... [2025-02-14 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:50:28] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:51:06 [end_date_ymd] => 2025-02-14 15:51:06 [RateCDR] => 1 ) [2025-02-14 15:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:51:06' and `end` < '2025-02-14 15:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:51:25] Production.INFO: count ==4115 [2025-02-14 15:51:27] Production.ERROR: pbx CDR StartTime 2025-02-14 12:51:06 - End Time 2025-02-14 15:51:06 [2025-02-14 15:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474781', 'tblTempUsageDetail_20' ) start [2025-02-14 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474781', 'tblTempUsageDetail_20' ) end [2025-02-14 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474781', 'tblTempVendorCDR_20' ) start [2025-02-14 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474781', 'tblTempVendorCDR_20' ) end [2025-02-14 15:51:27] Production.INFO: ProcessCDR(1,14474781,1,1,2) [2025-02-14 15:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:51:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:51:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:51:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474781', 'tblTempUsageDetail_20' ) start [2025-02-14 15:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474781', 'tblTempUsageDetail_20' ) end [2025-02-14 15:51:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:51:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:51:32] Production.INFO: ==4212== Releasing lock... [2025-02-14 15:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:51:32] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:52:05 [end_date_ymd] => 2025-02-14 15:52:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:52:05' and `end` < '2025-02-14 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-02-14 15:52:22] Production.INFO: count ==4105 [2025-02-14 15:52:24] Production.ERROR: pbx CDR StartTime 2025-02-14 12:52:05 - End Time 2025-02-14 15:52:05 [2025-02-14 15:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474786', 'tblTempUsageDetail_20' ) start [2025-02-14 15:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474786', 'tblTempUsageDetail_20' ) end [2025-02-14 15:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474786', 'tblTempVendorCDR_20' ) start [2025-02-14 15:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474786', 'tblTempVendorCDR_20' ) end [2025-02-14 15:52:24] Production.INFO: ProcessCDR(1,14474786,1,1,2) [2025-02-14 15:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474786', 'tblTempUsageDetail_20' ) start [2025-02-14 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474786', 'tblTempUsageDetail_20' ) end [2025-02-14 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:52:27] Production.INFO: ==4295== Releasing lock... [2025-02-14 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:52:27] Production.INFO: 59 MB #Memory Used# [2025-02-14 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:53:06 [end_date_ymd] => 2025-02-14 15:53:06 [RateCDR] => 1 ) [2025-02-14 15:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:53:06' and `end` < '2025-02-14 15:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:53:19] Production.INFO: count ==4092 [2025-02-14 15:53:21] Production.ERROR: pbx CDR StartTime 2025-02-14 12:53:06 - End Time 2025-02-14 15:53:06 [2025-02-14 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474791', 'tblTempUsageDetail_20' ) start [2025-02-14 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474791', 'tblTempUsageDetail_20' ) end [2025-02-14 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474791', 'tblTempVendorCDR_20' ) start [2025-02-14 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474791', 'tblTempVendorCDR_20' ) end [2025-02-14 15:53:21] Production.INFO: ProcessCDR(1,14474791,1,1,2) [2025-02-14 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474791', 'tblTempUsageDetail_20' ) start [2025-02-14 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474791', 'tblTempUsageDetail_20' ) end [2025-02-14 15:53:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:53:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:53:27] Production.INFO: ==4386== Releasing lock... [2025-02-14 15:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:53:27] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:54:06 [end_date_ymd] => 2025-02-14 15:54:06 [RateCDR] => 1 ) [2025-02-14 15: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-02-14 12:54:06' and `end` < '2025-02-14 15: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-02-14 15:54:21] Production.INFO: count ==4097 [2025-02-14 15:54:22] Production.ERROR: pbx CDR StartTime 2025-02-14 12:54:06 - End Time 2025-02-14 15:54:06 [2025-02-14 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474796', 'tblTempUsageDetail_20' ) start [2025-02-14 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474796', 'tblTempUsageDetail_20' ) end [2025-02-14 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474796', 'tblTempVendorCDR_20' ) start [2025-02-14 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474796', 'tblTempVendorCDR_20' ) end [2025-02-14 15:54:23] Production.INFO: ProcessCDR(1,14474796,1,1,2) [2025-02-14 15:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474796', 'tblTempUsageDetail_20' ) start [2025-02-14 15:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474796', 'tblTempUsageDetail_20' ) end [2025-02-14 15:54:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:54:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:54:28] Production.INFO: ==4478== Releasing lock... [2025-02-14 15:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:54:28] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:55:05 [end_date_ymd] => 2025-02-14 15:55:05 [RateCDR] => 1 ) [2025-02-14 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:55:05' and `end` < '2025-02-14 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:55:21] Production.INFO: count ==4091 [2025-02-14 15:55:23] Production.ERROR: pbx CDR StartTime 2025-02-14 12:55:05 - End Time 2025-02-14 15:55:05 [2025-02-14 15:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474801', 'tblTempUsageDetail_20' ) start [2025-02-14 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474801', 'tblTempUsageDetail_20' ) end [2025-02-14 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474801', 'tblTempVendorCDR_20' ) start [2025-02-14 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474801', 'tblTempVendorCDR_20' ) end [2025-02-14 15:55:23] Production.INFO: ProcessCDR(1,14474801,1,1,2) [2025-02-14 15:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474801', 'tblTempUsageDetail_20' ) start [2025-02-14 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474801', 'tblTempUsageDetail_20' ) end [2025-02-14 15:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:55:27] Production.INFO: ==4558== Releasing lock... [2025-02-14 15:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:55:27] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:56:05 [end_date_ymd] => 2025-02-14 15:56:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:56:05' and `end` < '2025-02-14 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-02-14 15:56:20] Production.INFO: count ==4080 [2025-02-14 15:56:22] Production.ERROR: pbx CDR StartTime 2025-02-14 12:56:05 - End Time 2025-02-14 15:56:05 [2025-02-14 15:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474806', 'tblTempUsageDetail_20' ) start [2025-02-14 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474806', 'tblTempUsageDetail_20' ) end [2025-02-14 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474806', 'tblTempVendorCDR_20' ) start [2025-02-14 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474806', 'tblTempVendorCDR_20' ) end [2025-02-14 15:56:22] Production.INFO: ProcessCDR(1,14474806,1,1,2) [2025-02-14 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474806', 'tblTempUsageDetail_20' ) start [2025-02-14 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474806', 'tblTempUsageDetail_20' ) end [2025-02-14 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:56:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:56:28] Production.INFO: ==4648== Releasing lock... [2025-02-14 15:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:56:28] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:57:06 [end_date_ymd] => 2025-02-14 15:57:06 [RateCDR] => 1 ) [2025-02-14 15:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:57:06' and `end` < '2025-02-14 15:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:57:23] Production.INFO: count ==4084 [2025-02-14 15:57:25] Production.ERROR: pbx CDR StartTime 2025-02-14 12:57:06 - End Time 2025-02-14 15:57:06 [2025-02-14 15:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474811', 'tblTempUsageDetail_20' ) start [2025-02-14 15:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474811', 'tblTempUsageDetail_20' ) end [2025-02-14 15:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474811', 'tblTempVendorCDR_20' ) start [2025-02-14 15:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474811', 'tblTempVendorCDR_20' ) end [2025-02-14 15:57:25] Production.INFO: ProcessCDR(1,14474811,1,1,2) [2025-02-14 15:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474811', 'tblTempUsageDetail_20' ) start [2025-02-14 15:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474811', 'tblTempUsageDetail_20' ) end [2025-02-14 15:57:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:57:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:57:30] Production.INFO: ==4732== Releasing lock... [2025-02-14 15:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:57:30] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:58:06 [end_date_ymd] => 2025-02-14 15:58:06 [RateCDR] => 1 ) [2025-02-14 15:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 12:58:06' and `end` < '2025-02-14 15:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 15:58:27] Production.INFO: count ==4089 [2025-02-14 15:58:29] Production.ERROR: pbx CDR StartTime 2025-02-14 12:58:06 - End Time 2025-02-14 15:58:06 [2025-02-14 15:58:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474816', 'tblTempUsageDetail_20' ) start [2025-02-14 15:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474816', 'tblTempUsageDetail_20' ) end [2025-02-14 15:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474816', 'tblTempVendorCDR_20' ) start [2025-02-14 15:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474816', 'tblTempVendorCDR_20' ) end [2025-02-14 15:58:29] Production.INFO: ProcessCDR(1,14474816,1,1,2) [2025-02-14 15:58:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:58:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:58:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:58:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474816', 'tblTempUsageDetail_20' ) start [2025-02-14 15:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474816', 'tblTempUsageDetail_20' ) end [2025-02-14 15:58:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:58:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:58:34] Production.INFO: ==4812== Releasing lock... [2025-02-14 15:58:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:58:34] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 12:59:05 [end_date_ymd] => 2025-02-14 15:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 12:59:05' and `end` < '2025-02-14 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-02-14 15:59:27] Production.INFO: count ==4095 [2025-02-14 15:59:28] Production.ERROR: pbx CDR StartTime 2025-02-14 12:59:05 - End Time 2025-02-14 15:59:05 [2025-02-14 15:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 15:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474821', 'tblTempUsageDetail_20' ) start [2025-02-14 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474821', 'tblTempUsageDetail_20' ) end [2025-02-14 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474821', 'tblTempVendorCDR_20' ) start [2025-02-14 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474821', 'tblTempVendorCDR_20' ) end [2025-02-14 15:59:29] Production.INFO: ProcessCDR(1,14474821,1,1,2) [2025-02-14 15:59:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:59:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 15:59:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:59:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 15:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474821', 'tblTempUsageDetail_20' ) start [2025-02-14 15:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474821', 'tblTempUsageDetail_20' ) end [2025-02-14 15:59:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 15:59:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 15:59:34] Production.INFO: ==4896== Releasing lock... [2025-02-14 15:59:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 15:59:34] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:00:06 [end_date_ymd] => 2025-02-14 16:00:06 [RateCDR] => 1 ) [2025-02-14 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:00:06' and `end` < '2025-02-14 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:00:35] Production.INFO: count ==4088 [2025-02-14 16:00:37] Production.ERROR: pbx CDR StartTime 2025-02-14 13:00:06 - End Time 2025-02-14 16:00:06 [2025-02-14 16:00:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474827', 'tblTempUsageDetail_20' ) start [2025-02-14 16:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474827', 'tblTempUsageDetail_20' ) end [2025-02-14 16:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474827', 'tblTempVendorCDR_20' ) start [2025-02-14 16:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474827', 'tblTempVendorCDR_20' ) end [2025-02-14 16:00:37] Production.INFO: ProcessCDR(1,14474827,1,1,2) [2025-02-14 16:00:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:00:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:00:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:00:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:00:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474827', 'tblTempUsageDetail_20' ) start [2025-02-14 16:00:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474827', 'tblTempUsageDetail_20' ) end [2025-02-14 16:00:42] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:00:42] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:00:42] Production.INFO: ==4980== Releasing lock... [2025-02-14 16:00:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:00:42] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:01:06 [end_date_ymd] => 2025-02-14 16:01:06 [RateCDR] => 1 ) [2025-02-14 16: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-02-14 13:01:06' and `end` < '2025-02-14 16: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-02-14 16:01:31] Production.INFO: count ==4059 [2025-02-14 16:01:32] Production.ERROR: pbx CDR StartTime 2025-02-14 13:01:06 - End Time 2025-02-14 16:01:06 [2025-02-14 16:01:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474832', 'tblTempUsageDetail_20' ) start [2025-02-14 16:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474832', 'tblTempUsageDetail_20' ) end [2025-02-14 16:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474832', 'tblTempVendorCDR_20' ) start [2025-02-14 16:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474832', 'tblTempVendorCDR_20' ) end [2025-02-14 16:01:33] Production.INFO: ProcessCDR(1,14474832,1,1,2) [2025-02-14 16:01:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:01:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:01:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:01:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:01:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474832', 'tblTempUsageDetail_20' ) start [2025-02-14 16:01:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474832', 'tblTempUsageDetail_20' ) end [2025-02-14 16:01:38] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:01:38] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:01:38] Production.INFO: ==5078== Releasing lock... [2025-02-14 16:01:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:01:38] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:02:05 [end_date_ymd] => 2025-02-14 16:02:05 [RateCDR] => 1 ) [2025-02-14 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:02:05' and `end` < '2025-02-14 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:02:24] Production.INFO: count ==4055 [2025-02-14 16:02:26] Production.ERROR: pbx CDR StartTime 2025-02-14 13:02:05 - End Time 2025-02-14 16:02:05 [2025-02-14 16:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474837', 'tblTempUsageDetail_20' ) start [2025-02-14 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474837', 'tblTempUsageDetail_20' ) end [2025-02-14 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474837', 'tblTempVendorCDR_20' ) start [2025-02-14 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474837', 'tblTempVendorCDR_20' ) end [2025-02-14 16:02:26] Production.INFO: ProcessCDR(1,14474837,1,1,2) [2025-02-14 16:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474837', 'tblTempUsageDetail_20' ) start [2025-02-14 16:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474837', 'tblTempUsageDetail_20' ) end [2025-02-14 16:02:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:02:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:02:31] Production.INFO: ==5205== Releasing lock... [2025-02-14 16:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:02:31] Production.INFO: 58.25 MB #Memory Used# [2025-02-14 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:03:05 [end_date_ymd] => 2025-02-14 16:03:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:03:05' and `end` < '2025-02-14 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-02-14 16:03:36] Production.INFO: count ==4062 [2025-02-14 16:03:37] Production.ERROR: pbx CDR StartTime 2025-02-14 13:03:05 - End Time 2025-02-14 16:03:05 [2025-02-14 16:03:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:03:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474842', 'tblTempUsageDetail_20' ) start [2025-02-14 16:03:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474842', 'tblTempUsageDetail_20' ) end [2025-02-14 16:03:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474842', 'tblTempVendorCDR_20' ) start [2025-02-14 16:03:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474842', 'tblTempVendorCDR_20' ) end [2025-02-14 16:03:38] Production.INFO: ProcessCDR(1,14474842,1,1,2) [2025-02-14 16:03:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:03:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:03:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:03:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:03:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474842', 'tblTempUsageDetail_20' ) start [2025-02-14 16:03:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474842', 'tblTempUsageDetail_20' ) end [2025-02-14 16:03:43] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:03:43] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:03:43] Production.INFO: ==5290== Releasing lock... [2025-02-14 16:03:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:03:43] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:04:06 [end_date_ymd] => 2025-02-14 16:04:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:04:06' and `end` < '2025-02-14 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-02-14 16:04:27] Production.INFO: count ==4088 [2025-02-14 16:04:28] Production.ERROR: pbx CDR StartTime 2025-02-14 13:04:06 - End Time 2025-02-14 16:04:06 [2025-02-14 16:04:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474847', 'tblTempUsageDetail_20' ) start [2025-02-14 16:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474847', 'tblTempUsageDetail_20' ) end [2025-02-14 16:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474847', 'tblTempVendorCDR_20' ) start [2025-02-14 16:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474847', 'tblTempVendorCDR_20' ) end [2025-02-14 16:04:28] Production.INFO: ProcessCDR(1,14474847,1,1,2) [2025-02-14 16:04:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:04:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:04:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:04:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474847', 'tblTempUsageDetail_20' ) start [2025-02-14 16:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474847', 'tblTempUsageDetail_20' ) end [2025-02-14 16:04:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:04:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:04:34] Production.INFO: ==5374== Releasing lock... [2025-02-14 16:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:04:34] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:05:05 [end_date_ymd] => 2025-02-14 16:05:05 [RateCDR] => 1 ) [2025-02-14 16:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:05:05' and `end` < '2025-02-14 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-02-14 16:05:26] Production.INFO: count ==4098 [2025-02-14 16:05:28] Production.ERROR: pbx CDR StartTime 2025-02-14 13:05:05 - End Time 2025-02-14 16:05:05 [2025-02-14 16:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474852', 'tblTempUsageDetail_20' ) start [2025-02-14 16:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474852', 'tblTempUsageDetail_20' ) end [2025-02-14 16:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474852', 'tblTempVendorCDR_20' ) start [2025-02-14 16:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474852', 'tblTempVendorCDR_20' ) end [2025-02-14 16:05:28] Production.INFO: ProcessCDR(1,14474852,1,1,2) [2025-02-14 16:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474852', 'tblTempUsageDetail_20' ) start [2025-02-14 16:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474852', 'tblTempUsageDetail_20' ) end [2025-02-14 16:05:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:05:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:05:33] Production.INFO: ==5460== Releasing lock... [2025-02-14 16:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:05:33] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:06:06 [end_date_ymd] => 2025-02-14 16:06:06 [RateCDR] => 1 ) [2025-02-14 16:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:06:06' and `end` < '2025-02-14 16:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:06:21] Production.INFO: count ==4099 [2025-02-14 16:06:22] Production.ERROR: pbx CDR StartTime 2025-02-14 13:06:06 - End Time 2025-02-14 16:06:06 [2025-02-14 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474857', 'tblTempUsageDetail_20' ) start [2025-02-14 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474857', 'tblTempUsageDetail_20' ) end [2025-02-14 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474857', 'tblTempVendorCDR_20' ) start [2025-02-14 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474857', 'tblTempVendorCDR_20' ) end [2025-02-14 16:06:22] Production.INFO: ProcessCDR(1,14474857,1,1,2) [2025-02-14 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474857', 'tblTempUsageDetail_20' ) start [2025-02-14 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474857', 'tblTempUsageDetail_20' ) end [2025-02-14 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:06:27] Production.INFO: ==5543== Releasing lock... [2025-02-14 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:06:27] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:07:05 [end_date_ymd] => 2025-02-14 16:07:05 [RateCDR] => 1 ) [2025-02-14 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:07:05' and `end` < '2025-02-14 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:07:39] Production.INFO: count ==4115 [2025-02-14 16:07:41] Production.ERROR: pbx CDR StartTime 2025-02-14 13:07:05 - End Time 2025-02-14 16:07:05 [2025-02-14 16:07:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:07:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474862', 'tblTempUsageDetail_20' ) start [2025-02-14 16:07:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474862', 'tblTempUsageDetail_20' ) end [2025-02-14 16:07:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474862', 'tblTempVendorCDR_20' ) start [2025-02-14 16:07:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474862', 'tblTempVendorCDR_20' ) end [2025-02-14 16:07:41] Production.INFO: ProcessCDR(1,14474862,1,1,2) [2025-02-14 16:07:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:07:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:07:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:07:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:07:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474862', 'tblTempUsageDetail_20' ) start [2025-02-14 16:07:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474862', 'tblTempUsageDetail_20' ) end [2025-02-14 16:07:46] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:07:46] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:07:46] Production.INFO: ==5647== Releasing lock... [2025-02-14 16:07:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:07:46] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:08:06 [end_date_ymd] => 2025-02-14 16:08:06 [RateCDR] => 1 ) [2025-02-14 16:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:08:06' and `end` < '2025-02-14 16:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:08:37] Production.INFO: count ==4107 [2025-02-14 16:08:38] Production.ERROR: pbx CDR StartTime 2025-02-14 13:08:06 - End Time 2025-02-14 16:08:06 [2025-02-14 16:08:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:08:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474867', 'tblTempUsageDetail_20' ) start [2025-02-14 16:08:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474867', 'tblTempUsageDetail_20' ) end [2025-02-14 16:08:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474867', 'tblTempVendorCDR_20' ) start [2025-02-14 16:08:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474867', 'tblTempVendorCDR_20' ) end [2025-02-14 16:08:38] Production.INFO: ProcessCDR(1,14474867,1,1,2) [2025-02-14 16:08:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:08:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:08:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:08:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:08:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474867', 'tblTempUsageDetail_20' ) start [2025-02-14 16:08:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474867', 'tblTempUsageDetail_20' ) end [2025-02-14 16:08:44] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:08:44] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:08:44] Production.INFO: ==5738== Releasing lock... [2025-02-14 16:08:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:08:44] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:09:05 [end_date_ymd] => 2025-02-14 16:09:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:09:05' and `end` < '2025-02-14 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-02-14 16:09:29] Production.INFO: count ==4112 [2025-02-14 16:09:30] Production.ERROR: pbx CDR StartTime 2025-02-14 13:09:05 - End Time 2025-02-14 16:09:05 [2025-02-14 16:09:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474872', 'tblTempUsageDetail_20' ) start [2025-02-14 16:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474872', 'tblTempUsageDetail_20' ) end [2025-02-14 16:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474872', 'tblTempVendorCDR_20' ) start [2025-02-14 16:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474872', 'tblTempVendorCDR_20' ) end [2025-02-14 16:09:30] Production.INFO: ProcessCDR(1,14474872,1,1,2) [2025-02-14 16:09:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:09:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:09:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:09:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474872', 'tblTempUsageDetail_20' ) start [2025-02-14 16:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474872', 'tblTempUsageDetail_20' ) end [2025-02-14 16:09:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:09:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:09:36] Production.INFO: ==5828== Releasing lock... [2025-02-14 16:09:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:09:36] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:10:06 [end_date_ymd] => 2025-02-14 16:10:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:10:06' and `end` < '2025-02-14 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-02-14 16:10:27] Production.INFO: count ==4120 [2025-02-14 16:10:29] Production.ERROR: pbx CDR StartTime 2025-02-14 13:10:06 - End Time 2025-02-14 16:10:06 [2025-02-14 16:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474878', 'tblTempUsageDetail_20' ) start [2025-02-14 16:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474878', 'tblTempUsageDetail_20' ) end [2025-02-14 16:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474878', 'tblTempVendorCDR_20' ) start [2025-02-14 16:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474878', 'tblTempVendorCDR_20' ) end [2025-02-14 16:10:29] Production.INFO: ProcessCDR(1,14474878,1,1,2) [2025-02-14 16:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474878', 'tblTempUsageDetail_20' ) start [2025-02-14 16:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474878', 'tblTempUsageDetail_20' ) end [2025-02-14 16:10:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:10:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:10:34] Production.INFO: ==5923== Releasing lock... [2025-02-14 16:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:10:34] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:11:05 [end_date_ymd] => 2025-02-14 16:11:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:11:05' and `end` < '2025-02-14 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-02-14 16:11:26] Production.INFO: count ==4154 [2025-02-14 16:11:27] Production.ERROR: pbx CDR StartTime 2025-02-14 13:11:05 - End Time 2025-02-14 16:11:05 [2025-02-14 16:11:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474883', 'tblTempUsageDetail_20' ) start [2025-02-14 16:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474883', 'tblTempUsageDetail_20' ) end [2025-02-14 16:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474883', 'tblTempVendorCDR_20' ) start [2025-02-14 16:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474883', 'tblTempVendorCDR_20' ) end [2025-02-14 16:11:27] Production.INFO: ProcessCDR(1,14474883,1,1,2) [2025-02-14 16:11:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474883', 'tblTempUsageDetail_20' ) start [2025-02-14 16:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474883', 'tblTempUsageDetail_20' ) end [2025-02-14 16:11:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:11:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:11:33] Production.INFO: ==6012== Releasing lock... [2025-02-14 16:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:11:33] Production.INFO: 59 MB #Memory Used# [2025-02-14 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:12:05 [end_date_ymd] => 2025-02-14 16:12:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:12:05' and `end` < '2025-02-14 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-02-14 16:12:29] Production.INFO: count ==4144 [2025-02-14 16:12:31] Production.ERROR: pbx CDR StartTime 2025-02-14 13:12:05 - End Time 2025-02-14 16:12:05 [2025-02-14 16:12:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474888', 'tblTempUsageDetail_20' ) start [2025-02-14 16:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474888', 'tblTempUsageDetail_20' ) end [2025-02-14 16:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474888', 'tblTempVendorCDR_20' ) start [2025-02-14 16:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474888', 'tblTempVendorCDR_20' ) end [2025-02-14 16:12:31] Production.INFO: ProcessCDR(1,14474888,1,1,2) [2025-02-14 16:12:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:12:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:12:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:12:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474888', 'tblTempUsageDetail_20' ) start [2025-02-14 16:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474888', 'tblTempUsageDetail_20' ) end [2025-02-14 16:12:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:12:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:12:36] Production.INFO: ==6103== Releasing lock... [2025-02-14 16:12:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:12:36] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:13:05 [end_date_ymd] => 2025-02-14 16:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:13:05' and `end` < '2025-02-14 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-02-14 16:13:25] Production.INFO: count ==4132 [2025-02-14 16:13:27] Production.ERROR: pbx CDR StartTime 2025-02-14 13:13:05 - End Time 2025-02-14 16:13:05 [2025-02-14 16:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474893', 'tblTempUsageDetail_20' ) start [2025-02-14 16:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474893', 'tblTempUsageDetail_20' ) end [2025-02-14 16:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474893', 'tblTempVendorCDR_20' ) start [2025-02-14 16:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474893', 'tblTempVendorCDR_20' ) end [2025-02-14 16:13:27] Production.INFO: ProcessCDR(1,14474893,1,1,2) [2025-02-14 16:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474893', 'tblTempUsageDetail_20' ) start [2025-02-14 16:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474893', 'tblTempUsageDetail_20' ) end [2025-02-14 16:13:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:13:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:13:32] Production.INFO: ==6202== Releasing lock... [2025-02-14 16:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:13:32] Production.INFO: 59 MB #Memory Used# [2025-02-14 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:14:06 [end_date_ymd] => 2025-02-14 16:14:06 [RateCDR] => 1 ) [2025-02-14 16: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-02-14 13:14:06' and `end` < '2025-02-14 16: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-02-14 16:14:23] Production.INFO: count ==4134 [2025-02-14 16:14:25] Production.ERROR: pbx CDR StartTime 2025-02-14 13:14:06 - End Time 2025-02-14 16:14:06 [2025-02-14 16:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474898', 'tblTempUsageDetail_20' ) start [2025-02-14 16:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474898', 'tblTempUsageDetail_20' ) end [2025-02-14 16:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474898', 'tblTempVendorCDR_20' ) start [2025-02-14 16:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474898', 'tblTempVendorCDR_20' ) end [2025-02-14 16:14:25] Production.INFO: ProcessCDR(1,14474898,1,1,2) [2025-02-14 16:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474898', 'tblTempUsageDetail_20' ) start [2025-02-14 16:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474898', 'tblTempUsageDetail_20' ) end [2025-02-14 16:14:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:14:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:14:30] Production.INFO: ==6298== Releasing lock... [2025-02-14 16:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:14:30] Production.INFO: 59 MB #Memory Used# [2025-02-14 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:15:05 [end_date_ymd] => 2025-02-14 16:15:05 [RateCDR] => 1 ) [2025-02-14 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:15:05' and `end` < '2025-02-14 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:15:27] Production.INFO: count ==4134 [2025-02-14 16:15:29] Production.ERROR: pbx CDR StartTime 2025-02-14 13:15:05 - End Time 2025-02-14 16:15:05 [2025-02-14 16:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474903', 'tblTempUsageDetail_20' ) start [2025-02-14 16:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474903', 'tblTempUsageDetail_20' ) end [2025-02-14 16:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474903', 'tblTempVendorCDR_20' ) start [2025-02-14 16:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474903', 'tblTempVendorCDR_20' ) end [2025-02-14 16:15:29] Production.INFO: ProcessCDR(1,14474903,1,1,2) [2025-02-14 16:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474903', 'tblTempUsageDetail_20' ) start [2025-02-14 16:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474903', 'tblTempUsageDetail_20' ) end [2025-02-14 16:15:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:15:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:15:34] Production.INFO: ==6392== Releasing lock... [2025-02-14 16:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:15:34] Production.INFO: 59 MB #Memory Used# [2025-02-14 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:16:06 [end_date_ymd] => 2025-02-14 16:16:06 [RateCDR] => 1 ) [2025-02-14 16:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:16:06' and `end` < '2025-02-14 16:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:16:25] Production.INFO: count ==4143 [2025-02-14 16:16:27] Production.ERROR: pbx CDR StartTime 2025-02-14 13:16:06 - End Time 2025-02-14 16:16:06 [2025-02-14 16:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474908', 'tblTempUsageDetail_20' ) start [2025-02-14 16:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474908', 'tblTempUsageDetail_20' ) end [2025-02-14 16:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474908', 'tblTempVendorCDR_20' ) start [2025-02-14 16:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474908', 'tblTempVendorCDR_20' ) end [2025-02-14 16:16:27] Production.INFO: ProcessCDR(1,14474908,1,1,2) [2025-02-14 16:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:16:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474908', 'tblTempUsageDetail_20' ) start [2025-02-14 16:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474908', 'tblTempUsageDetail_20' ) end [2025-02-14 16:16:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:16:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:16:32] Production.INFO: ==6486== Releasing lock... [2025-02-14 16:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:16:32] Production.INFO: 59 MB #Memory Used# [2025-02-14 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:17:05 [end_date_ymd] => 2025-02-14 16:17:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:17:05' and `end` < '2025-02-14 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-02-14 16:17:25] Production.INFO: count ==4125 [2025-02-14 16:17:27] Production.ERROR: pbx CDR StartTime 2025-02-14 13:17:05 - End Time 2025-02-14 16:17:05 [2025-02-14 16:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474913', 'tblTempUsageDetail_20' ) start [2025-02-14 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474913', 'tblTempUsageDetail_20' ) end [2025-02-14 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474913', 'tblTempVendorCDR_20' ) start [2025-02-14 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474913', 'tblTempVendorCDR_20' ) end [2025-02-14 16:17:27] Production.INFO: ProcessCDR(1,14474913,1,1,2) [2025-02-14 16:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474913', 'tblTempUsageDetail_20' ) start [2025-02-14 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474913', 'tblTempUsageDetail_20' ) end [2025-02-14 16:17:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:17:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:17:32] Production.INFO: ==6619== Releasing lock... [2025-02-14 16:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:17:32] Production.INFO: 59 MB #Memory Used# [2025-02-14 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:18:06 [end_date_ymd] => 2025-02-14 16:18:06 [RateCDR] => 1 ) [2025-02-14 16: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-02-14 13:18:06' and `end` < '2025-02-14 16: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-02-14 16:18:27] Production.INFO: count ==4130 [2025-02-14 16:18:29] Production.ERROR: pbx CDR StartTime 2025-02-14 13:18:06 - End Time 2025-02-14 16:18:06 [2025-02-14 16:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474918', 'tblTempUsageDetail_20' ) start [2025-02-14 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474918', 'tblTempUsageDetail_20' ) end [2025-02-14 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474918', 'tblTempVendorCDR_20' ) start [2025-02-14 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474918', 'tblTempVendorCDR_20' ) end [2025-02-14 16:18:29] Production.INFO: ProcessCDR(1,14474918,1,1,2) [2025-02-14 16:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:18:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:18:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:18:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474918', 'tblTempUsageDetail_20' ) start [2025-02-14 16:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474918', 'tblTempUsageDetail_20' ) end [2025-02-14 16:18:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:18:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:18:35] Production.INFO: ==6726== Releasing lock... [2025-02-14 16:18:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:18:35] Production.INFO: 59 MB #Memory Used# [2025-02-14 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:19:05 [end_date_ymd] => 2025-02-14 16:19:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:19:05' and `end` < '2025-02-14 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-02-14 16:19:24] Production.INFO: count ==4134 [2025-02-14 16:19:26] Production.ERROR: pbx CDR StartTime 2025-02-14 13:19:05 - End Time 2025-02-14 16:19:05 [2025-02-14 16:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474923', 'tblTempUsageDetail_20' ) start [2025-02-14 16:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474923', 'tblTempUsageDetail_20' ) end [2025-02-14 16:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474923', 'tblTempVendorCDR_20' ) start [2025-02-14 16:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474923', 'tblTempVendorCDR_20' ) end [2025-02-14 16:19:26] Production.INFO: ProcessCDR(1,14474923,1,1,2) [2025-02-14 16:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:19:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:19:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:19:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474923', 'tblTempUsageDetail_20' ) start [2025-02-14 16:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474923', 'tblTempUsageDetail_20' ) end [2025-02-14 16:19:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:19:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:19:31] Production.INFO: ==6827== Releasing lock... [2025-02-14 16:19:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:19:31] Production.INFO: 59 MB #Memory Used# [2025-02-14 16:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:20:07 [end_date_ymd] => 2025-02-14 16:20:07 [RateCDR] => 1 ) [2025-02-14 16:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:20:07' and `end` < '2025-02-14 16:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:20:24] Production.INFO: count ==4137 [2025-02-14 16:20:26] Production.ERROR: pbx CDR StartTime 2025-02-14 13:20:07 - End Time 2025-02-14 16:20:07 [2025-02-14 16:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474928', 'tblTempUsageDetail_20' ) start [2025-02-14 16:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474928', 'tblTempUsageDetail_20' ) end [2025-02-14 16:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474928', 'tblTempVendorCDR_20' ) start [2025-02-14 16:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474928', 'tblTempVendorCDR_20' ) end [2025-02-14 16:20:26] Production.INFO: ProcessCDR(1,14474928,1,1,2) [2025-02-14 16:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:20:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:20:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474928', 'tblTempUsageDetail_20' ) start [2025-02-14 16:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474928', 'tblTempUsageDetail_20' ) end [2025-02-14 16:20:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:20:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:20:32] Production.INFO: ==6924== Releasing lock... [2025-02-14 16:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:20:32] Production.INFO: 59 MB #Memory Used# [2025-02-14 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:21:05 [end_date_ymd] => 2025-02-14 16:21:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:21:05' and `end` < '2025-02-14 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-02-14 16:21:19] Production.INFO: count ==4123 [2025-02-14 16:21:21] Production.ERROR: pbx CDR StartTime 2025-02-14 13:21:05 - End Time 2025-02-14 16:21:05 [2025-02-14 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474934', 'tblTempUsageDetail_20' ) start [2025-02-14 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474934', 'tblTempUsageDetail_20' ) end [2025-02-14 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474934', 'tblTempVendorCDR_20' ) start [2025-02-14 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474934', 'tblTempVendorCDR_20' ) end [2025-02-14 16:21:21] Production.INFO: ProcessCDR(1,14474934,1,1,2) [2025-02-14 16:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474934', 'tblTempUsageDetail_20' ) start [2025-02-14 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474934', 'tblTempUsageDetail_20' ) end [2025-02-14 16:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:21:26] Production.INFO: ==7027== Releasing lock... [2025-02-14 16:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:21:26] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:22:05 [end_date_ymd] => 2025-02-14 16:22:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:22:05' and `end` < '2025-02-14 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-02-14 16:22:19] Production.INFO: count ==4125 [2025-02-14 16:22:21] Production.ERROR: pbx CDR StartTime 2025-02-14 13:22:05 - End Time 2025-02-14 16:22:05 [2025-02-14 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474939', 'tblTempUsageDetail_20' ) start [2025-02-14 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474939', 'tblTempUsageDetail_20' ) end [2025-02-14 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474939', 'tblTempVendorCDR_20' ) start [2025-02-14 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474939', 'tblTempVendorCDR_20' ) end [2025-02-14 16:22:21] Production.INFO: ProcessCDR(1,14474939,1,1,2) [2025-02-14 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474939', 'tblTempUsageDetail_20' ) start [2025-02-14 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474939', 'tblTempUsageDetail_20' ) end [2025-02-14 16:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:22:27] Production.INFO: ==7125== Releasing lock... [2025-02-14 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:22:27] Production.INFO: 59 MB #Memory Used# [2025-02-14 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:23:05 [end_date_ymd] => 2025-02-14 16:23:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:23:05' and `end` < '2025-02-14 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-02-14 16:23:21] Production.INFO: count ==4123 [2025-02-14 16:23:23] Production.ERROR: pbx CDR StartTime 2025-02-14 13:23:05 - End Time 2025-02-14 16:23:05 [2025-02-14 16:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474944', 'tblTempUsageDetail_20' ) start [2025-02-14 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474944', 'tblTempUsageDetail_20' ) end [2025-02-14 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474944', 'tblTempVendorCDR_20' ) start [2025-02-14 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474944', 'tblTempVendorCDR_20' ) end [2025-02-14 16:23:23] Production.INFO: ProcessCDR(1,14474944,1,1,2) [2025-02-14 16:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474944', 'tblTempUsageDetail_20' ) start [2025-02-14 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474944', 'tblTempUsageDetail_20' ) end [2025-02-14 16:23:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:23:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:23:28] Production.INFO: ==7219== Releasing lock... [2025-02-14 16:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:23:28] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:24:05 [end_date_ymd] => 2025-02-14 16:24:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:24:05' and `end` < '2025-02-14 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-02-14 16:24:26] Production.INFO: count ==4131 [2025-02-14 16:24:28] Production.ERROR: pbx CDR StartTime 2025-02-14 13:24:05 - End Time 2025-02-14 16:24:05 [2025-02-14 16:24:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474949', 'tblTempUsageDetail_20' ) start [2025-02-14 16:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474949', 'tblTempUsageDetail_20' ) end [2025-02-14 16:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474949', 'tblTempVendorCDR_20' ) start [2025-02-14 16:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474949', 'tblTempVendorCDR_20' ) end [2025-02-14 16:24:28] Production.INFO: ProcessCDR(1,14474949,1,1,2) [2025-02-14 16:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474949', 'tblTempUsageDetail_20' ) start [2025-02-14 16:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474949', 'tblTempUsageDetail_20' ) end [2025-02-14 16:24:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:24:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:24:33] Production.INFO: ==7316== Releasing lock... [2025-02-14 16:24:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:24:33] Production.INFO: 59 MB #Memory Used# [2025-02-14 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:25:05 [end_date_ymd] => 2025-02-14 16:25:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:25:05' and `end` < '2025-02-14 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-02-14 16:25:30] Production.INFO: count ==4140 [2025-02-14 16:25:32] Production.ERROR: pbx CDR StartTime 2025-02-14 13:25:05 - End Time 2025-02-14 16:25:05 [2025-02-14 16:25:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474954', 'tblTempUsageDetail_20' ) start [2025-02-14 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474954', 'tblTempUsageDetail_20' ) end [2025-02-14 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474954', 'tblTempVendorCDR_20' ) start [2025-02-14 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474954', 'tblTempVendorCDR_20' ) end [2025-02-14 16:25:32] Production.INFO: ProcessCDR(1,14474954,1,1,2) [2025-02-14 16:25:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:25:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:25:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474954', 'tblTempUsageDetail_20' ) start [2025-02-14 16:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474954', 'tblTempUsageDetail_20' ) end [2025-02-14 16:25:38] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:25:38] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:25:38] Production.INFO: ==7409== Releasing lock... [2025-02-14 16:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:25:38] Production.INFO: 59 MB #Memory Used# [2025-02-14 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:26:06 [end_date_ymd] => 2025-02-14 16:26:06 [RateCDR] => 1 ) [2025-02-14 16:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:26:06' and `end` < '2025-02-14 16:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:26:24] Production.INFO: count ==4123 [2025-02-14 16:26:26] Production.ERROR: pbx CDR StartTime 2025-02-14 13:26:06 - End Time 2025-02-14 16:26:06 [2025-02-14 16:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474959', 'tblTempUsageDetail_20' ) start [2025-02-14 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474959', 'tblTempUsageDetail_20' ) end [2025-02-14 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474959', 'tblTempVendorCDR_20' ) start [2025-02-14 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474959', 'tblTempVendorCDR_20' ) end [2025-02-14 16:26:26] Production.INFO: ProcessCDR(1,14474959,1,1,2) [2025-02-14 16:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474959', 'tblTempUsageDetail_20' ) start [2025-02-14 16:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474959', 'tblTempUsageDetail_20' ) end [2025-02-14 16:26:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:26:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:26:31] Production.INFO: ==7511== Releasing lock... [2025-02-14 16:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:26:31] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:27:06 [end_date_ymd] => 2025-02-14 16:27:06 [RateCDR] => 1 ) [2025-02-14 16:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:27:06' and `end` < '2025-02-14 16:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:27:19] Production.INFO: count ==4129 [2025-02-14 16:27:21] Production.ERROR: pbx CDR StartTime 2025-02-14 13:27:06 - End Time 2025-02-14 16:27:06 [2025-02-14 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474964', 'tblTempUsageDetail_20' ) start [2025-02-14 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474964', 'tblTempUsageDetail_20' ) end [2025-02-14 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474964', 'tblTempVendorCDR_20' ) start [2025-02-14 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474964', 'tblTempVendorCDR_20' ) end [2025-02-14 16:27:21] Production.INFO: ProcessCDR(1,14474964,1,1,2) [2025-02-14 16:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474964', 'tblTempUsageDetail_20' ) start [2025-02-14 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474964', 'tblTempUsageDetail_20' ) end [2025-02-14 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:27:27] Production.INFO: ==7604== Releasing lock... [2025-02-14 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:27:27] Production.INFO: 59 MB #Memory Used# [2025-02-14 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:28:06 [end_date_ymd] => 2025-02-14 16:28:06 [RateCDR] => 1 ) [2025-02-14 16:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:28:06' and `end` < '2025-02-14 16:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:28:21] Production.INFO: count ==4144 [2025-02-14 16:28:23] Production.ERROR: pbx CDR StartTime 2025-02-14 13:28:06 - End Time 2025-02-14 16:28:06 [2025-02-14 16:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474969', 'tblTempUsageDetail_20' ) start [2025-02-14 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474969', 'tblTempUsageDetail_20' ) end [2025-02-14 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474969', 'tblTempVendorCDR_20' ) start [2025-02-14 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474969', 'tblTempVendorCDR_20' ) end [2025-02-14 16:28:23] Production.INFO: ProcessCDR(1,14474969,1,1,2) [2025-02-14 16:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474969', 'tblTempUsageDetail_20' ) start [2025-02-14 16:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474969', 'tblTempUsageDetail_20' ) end [2025-02-14 16:28:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:28:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:28:29] Production.INFO: ==7700== Releasing lock... [2025-02-14 16:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:28:29] Production.INFO: 59 MB #Memory Used# [2025-02-14 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:29:05 [end_date_ymd] => 2025-02-14 16:29:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:29:05' and `end` < '2025-02-14 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-02-14 16:29:28] Production.INFO: count ==4141 [2025-02-14 16:29:30] Production.ERROR: pbx CDR StartTime 2025-02-14 13:29:05 - End Time 2025-02-14 16:29:05 [2025-02-14 16:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474974', 'tblTempUsageDetail_20' ) start [2025-02-14 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474974', 'tblTempUsageDetail_20' ) end [2025-02-14 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474974', 'tblTempVendorCDR_20' ) start [2025-02-14 16:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474974', 'tblTempVendorCDR_20' ) end [2025-02-14 16:29:30] Production.INFO: ProcessCDR(1,14474974,1,1,2) [2025-02-14 16:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:29:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:29:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:29:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474974', 'tblTempUsageDetail_20' ) start [2025-02-14 16:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474974', 'tblTempUsageDetail_20' ) end [2025-02-14 16:29:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:29:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:29:35] Production.INFO: ==7819== Releasing lock... [2025-02-14 16:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:29:35] Production.INFO: 59 MB #Memory Used# [2025-02-14 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:30:06 [end_date_ymd] => 2025-02-14 16:30:06 [RateCDR] => 1 ) [2025-02-14 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:30:06' and `end` < '2025-02-14 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:30:25] Production.INFO: count ==4156 [2025-02-14 16:30:27] Production.ERROR: pbx CDR StartTime 2025-02-14 13:30:06 - End Time 2025-02-14 16:30:06 [2025-02-14 16:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474979', 'tblTempUsageDetail_20' ) start [2025-02-14 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474979', 'tblTempUsageDetail_20' ) end [2025-02-14 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474979', 'tblTempVendorCDR_20' ) start [2025-02-14 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474979', 'tblTempVendorCDR_20' ) end [2025-02-14 16:30:27] Production.INFO: ProcessCDR(1,14474979,1,1,2) [2025-02-14 16:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474979', 'tblTempUsageDetail_20' ) start [2025-02-14 16:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474979', 'tblTempUsageDetail_20' ) end [2025-02-14 16:30:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:30:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:30:33] Production.INFO: ==7915== Releasing lock... [2025-02-14 16:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:30:33] Production.INFO: 59 MB #Memory Used# [2025-02-14 16:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:31:06 [end_date_ymd] => 2025-02-14 16:31:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:31:06' and `end` < '2025-02-14 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-02-14 16:31:21] Production.INFO: count ==4197 [2025-02-14 16:31:23] Production.ERROR: pbx CDR StartTime 2025-02-14 13:31:06 - End Time 2025-02-14 16:31:06 [2025-02-14 16:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474985', 'tblTempUsageDetail_20' ) start [2025-02-14 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474985', 'tblTempUsageDetail_20' ) end [2025-02-14 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474985', 'tblTempVendorCDR_20' ) start [2025-02-14 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474985', 'tblTempVendorCDR_20' ) end [2025-02-14 16:31:23] Production.INFO: ProcessCDR(1,14474985,1,1,2) [2025-02-14 16:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474985', 'tblTempUsageDetail_20' ) start [2025-02-14 16:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474985', 'tblTempUsageDetail_20' ) end [2025-02-14 16:31:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:31:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:31:29] Production.INFO: ==8009== Releasing lock... [2025-02-14 16:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:31:29] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:32:05 [end_date_ymd] => 2025-02-14 16:32:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:32:05' and `end` < '2025-02-14 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-02-14 16:32:26] Production.INFO: count ==4198 [2025-02-14 16:32:28] Production.ERROR: pbx CDR StartTime 2025-02-14 13:32:05 - End Time 2025-02-14 16:32:05 [2025-02-14 16:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474990', 'tblTempUsageDetail_20' ) start [2025-02-14 16:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474990', 'tblTempUsageDetail_20' ) end [2025-02-14 16:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474990', 'tblTempVendorCDR_20' ) start [2025-02-14 16:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474990', 'tblTempVendorCDR_20' ) end [2025-02-14 16:32:28] Production.INFO: ProcessCDR(1,14474990,1,1,2) [2025-02-14 16:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:32:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474990', 'tblTempUsageDetail_20' ) start [2025-02-14 16:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474990', 'tblTempUsageDetail_20' ) end [2025-02-14 16:32:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:32:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:32:34] Production.INFO: ==8106== Releasing lock... [2025-02-14 16:32:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:32:34] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:33:05 [end_date_ymd] => 2025-02-14 16:33:05 [RateCDR] => 1 ) [2025-02-14 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:33:05' and `end` < '2025-02-14 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:33:27] Production.INFO: count ==4206 [2025-02-14 16:33:28] Production.ERROR: pbx CDR StartTime 2025-02-14 13:33:05 - End Time 2025-02-14 16:33:05 [2025-02-14 16:33:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474995', 'tblTempUsageDetail_20' ) start [2025-02-14 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14474995', 'tblTempUsageDetail_20' ) end [2025-02-14 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474995', 'tblTempVendorCDR_20' ) start [2025-02-14 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14474995', 'tblTempVendorCDR_20' ) end [2025-02-14 16:33:28] Production.INFO: ProcessCDR(1,14474995,1,1,2) [2025-02-14 16:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14474995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:33:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14474995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:33:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14474995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:33:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14474995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474995', 'tblTempUsageDetail_20' ) start [2025-02-14 16:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14474995', 'tblTempUsageDetail_20' ) end [2025-02-14 16:33:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:33:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:33:33] Production.INFO: ==8248== Releasing lock... [2025-02-14 16:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:33:33] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:34:05 [end_date_ymd] => 2025-02-14 16:34:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:34:05' and `end` < '2025-02-14 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-02-14 16:34:22] Production.INFO: count ==4189 [2025-02-14 16:34:24] Production.ERROR: pbx CDR StartTime 2025-02-14 13:34:05 - End Time 2025-02-14 16:34:05 [2025-02-14 16:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475000', 'tblTempUsageDetail_20' ) start [2025-02-14 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475000', 'tblTempUsageDetail_20' ) end [2025-02-14 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475000', 'tblTempVendorCDR_20' ) start [2025-02-14 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475000', 'tblTempVendorCDR_20' ) end [2025-02-14 16:34:24] Production.INFO: ProcessCDR(1,14475000,1,1,2) [2025-02-14 16:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475000', 'tblTempUsageDetail_20' ) start [2025-02-14 16:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475000', 'tblTempUsageDetail_20' ) end [2025-02-14 16:34:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:34:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:34:29] Production.INFO: ==8346== Releasing lock... [2025-02-14 16:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:34:29] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:35:05 [end_date_ymd] => 2025-02-14 16:35:05 [RateCDR] => 1 ) [2025-02-14 16:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:35:05' and `end` < '2025-02-14 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-02-14 16:35:28] Production.INFO: count ==4198 [2025-02-14 16:35:30] Production.ERROR: pbx CDR StartTime 2025-02-14 13:35:05 - End Time 2025-02-14 16:35:05 [2025-02-14 16:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475005', 'tblTempUsageDetail_20' ) start [2025-02-14 16:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475005', 'tblTempUsageDetail_20' ) end [2025-02-14 16:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475005', 'tblTempVendorCDR_20' ) start [2025-02-14 16:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475005', 'tblTempVendorCDR_20' ) end [2025-02-14 16:35:30] Production.INFO: ProcessCDR(1,14475005,1,1,2) [2025-02-14 16:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:35:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:35:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:35:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475005', 'tblTempUsageDetail_20' ) start [2025-02-14 16:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475005', 'tblTempUsageDetail_20' ) end [2025-02-14 16:35:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:35:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:35:36] Production.INFO: ==8446== Releasing lock... [2025-02-14 16:35:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:35:36] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:36:05 [end_date_ymd] => 2025-02-14 16:36:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:36:05' and `end` < '2025-02-14 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-02-14 16:36:26] Production.INFO: count ==4240 [2025-02-14 16:36:27] Production.ERROR: pbx CDR StartTime 2025-02-14 13:36:05 - End Time 2025-02-14 16:36:05 [2025-02-14 16:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475010', 'tblTempUsageDetail_20' ) start [2025-02-14 16:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475010', 'tblTempUsageDetail_20' ) end [2025-02-14 16:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475010', 'tblTempVendorCDR_20' ) start [2025-02-14 16:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475010', 'tblTempVendorCDR_20' ) end [2025-02-14 16:36:28] Production.INFO: ProcessCDR(1,14475010,1,1,2) [2025-02-14 16:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475010', 'tblTempUsageDetail_20' ) start [2025-02-14 16:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475010', 'tblTempUsageDetail_20' ) end [2025-02-14 16:36:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:36:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:36:33] Production.INFO: ==8546== Releasing lock... [2025-02-14 16:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:36:33] Production.INFO: 60 MB #Memory Used# [2025-02-14 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:37:06 [end_date_ymd] => 2025-02-14 16:37:06 [RateCDR] => 1 ) [2025-02-14 16:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:37:06' and `end` < '2025-02-14 16:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:37:28] Production.INFO: count ==4244 [2025-02-14 16:37:29] Production.ERROR: pbx CDR StartTime 2025-02-14 13:37:06 - End Time 2025-02-14 16:37:06 [2025-02-14 16:37:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475015', 'tblTempUsageDetail_20' ) start [2025-02-14 16:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475015', 'tblTempUsageDetail_20' ) end [2025-02-14 16:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475015', 'tblTempVendorCDR_20' ) start [2025-02-14 16:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475015', 'tblTempVendorCDR_20' ) end [2025-02-14 16:37:29] Production.INFO: ProcessCDR(1,14475015,1,1,2) [2025-02-14 16:37:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:37:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:37:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475015', 'tblTempUsageDetail_20' ) start [2025-02-14 16:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475015', 'tblTempUsageDetail_20' ) end [2025-02-14 16:37:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:37:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:37:35] Production.INFO: ==8645== Releasing lock... [2025-02-14 16:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:37:35] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:38:05 [end_date_ymd] => 2025-02-14 16:38:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:38:05' and `end` < '2025-02-14 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-02-14 16:38:29] Production.INFO: count ==4245 [2025-02-14 16:38:30] Production.ERROR: pbx CDR StartTime 2025-02-14 13:38:05 - End Time 2025-02-14 16:38:05 [2025-02-14 16:38:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475020', 'tblTempUsageDetail_20' ) start [2025-02-14 16:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475020', 'tblTempUsageDetail_20' ) end [2025-02-14 16:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475020', 'tblTempVendorCDR_20' ) start [2025-02-14 16:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475020', 'tblTempVendorCDR_20' ) end [2025-02-14 16:38:30] Production.INFO: ProcessCDR(1,14475020,1,1,2) [2025-02-14 16:38:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:38:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:38:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:38:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:38:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475020', 'tblTempUsageDetail_20' ) start [2025-02-14 16:38:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475020', 'tblTempUsageDetail_20' ) end [2025-02-14 16:38:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:38:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:38:36] Production.INFO: ==8740== Releasing lock... [2025-02-14 16:38:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:38:36] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 16:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:39:06 [end_date_ymd] => 2025-02-14 16:39:06 [RateCDR] => 1 ) [2025-02-14 16:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:39:06' and `end` < '2025-02-14 16:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:39:33] Production.INFO: count ==4219 [2025-02-14 16:39:35] Production.ERROR: pbx CDR StartTime 2025-02-14 13:39:06 - End Time 2025-02-14 16:39:06 [2025-02-14 16:39:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:39:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475025', 'tblTempUsageDetail_20' ) start [2025-02-14 16:39:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475025', 'tblTempUsageDetail_20' ) end [2025-02-14 16:39:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475025', 'tblTempVendorCDR_20' ) start [2025-02-14 16:39:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475025', 'tblTempVendorCDR_20' ) end [2025-02-14 16:39:35] Production.INFO: ProcessCDR(1,14475025,1,1,2) [2025-02-14 16:39:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:39:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:39:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:39:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:39:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475025', 'tblTempUsageDetail_20' ) start [2025-02-14 16:39:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475025', 'tblTempUsageDetail_20' ) end [2025-02-14 16:39:40] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:39:40] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:39:40] Production.INFO: ==8842== Releasing lock... [2025-02-14 16:39:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:39:40] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:40:06 [end_date_ymd] => 2025-02-14 16:40:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:40:06' and `end` < '2025-02-14 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-02-14 16:40:32] Production.INFO: count ==4222 [2025-02-14 16:40:33] Production.ERROR: pbx CDR StartTime 2025-02-14 13:40:06 - End Time 2025-02-14 16:40:06 [2025-02-14 16:40:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475031', 'tblTempUsageDetail_20' ) start [2025-02-14 16:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475031', 'tblTempUsageDetail_20' ) end [2025-02-14 16:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475031', 'tblTempVendorCDR_20' ) start [2025-02-14 16:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475031', 'tblTempVendorCDR_20' ) end [2025-02-14 16:40:34] Production.INFO: ProcessCDR(1,14475031,1,1,2) [2025-02-14 16:40:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:40:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:40:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:40:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:40:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475031', 'tblTempUsageDetail_20' ) start [2025-02-14 16:40:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475031', 'tblTempUsageDetail_20' ) end [2025-02-14 16:40:39] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:40:39] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:40:39] Production.INFO: ==8932== Releasing lock... [2025-02-14 16:40:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:40:39] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 16:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:41:06 [end_date_ymd] => 2025-02-14 16:41:06 [RateCDR] => 1 ) [2025-02-14 16:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:41:06' and `end` < '2025-02-14 16:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:41:34] Production.INFO: count ==4252 [2025-02-14 16:41:35] Production.ERROR: pbx CDR StartTime 2025-02-14 13:41:06 - End Time 2025-02-14 16:41:06 [2025-02-14 16:41:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:41:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475036', 'tblTempUsageDetail_20' ) start [2025-02-14 16:41:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475036', 'tblTempUsageDetail_20' ) end [2025-02-14 16:41:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475036', 'tblTempVendorCDR_20' ) start [2025-02-14 16:41:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475036', 'tblTempVendorCDR_20' ) end [2025-02-14 16:41:36] Production.INFO: ProcessCDR(1,14475036,1,1,2) [2025-02-14 16:41:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:41:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:41:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:41:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:41:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475036', 'tblTempUsageDetail_20' ) start [2025-02-14 16:41:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475036', 'tblTempUsageDetail_20' ) end [2025-02-14 16:41:41] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:41:41] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:41:41] Production.INFO: ==9044== Releasing lock... [2025-02-14 16:41:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:41:41] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:42:05 [end_date_ymd] => 2025-02-14 16:42:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:42:05' and `end` < '2025-02-14 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-02-14 16:42:27] Production.INFO: count ==4269 [2025-02-14 16:42:29] Production.ERROR: pbx CDR StartTime 2025-02-14 13:42:05 - End Time 2025-02-14 16:42:05 [2025-02-14 16:42:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475041', 'tblTempUsageDetail_20' ) start [2025-02-14 16:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475041', 'tblTempUsageDetail_20' ) end [2025-02-14 16:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475041', 'tblTempVendorCDR_20' ) start [2025-02-14 16:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475041', 'tblTempVendorCDR_20' ) end [2025-02-14 16:42:29] Production.INFO: ProcessCDR(1,14475041,1,1,2) [2025-02-14 16:42:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:42:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:42:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:42:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475041', 'tblTempUsageDetail_20' ) start [2025-02-14 16:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475041', 'tblTempUsageDetail_20' ) end [2025-02-14 16:42:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:42:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:42:34] Production.INFO: ==9142== Releasing lock... [2025-02-14 16:42:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:42:34] Production.INFO: 60 MB #Memory Used# [2025-02-14 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:43:05 [end_date_ymd] => 2025-02-14 16:43:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:43:05' and `end` < '2025-02-14 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-02-14 16:43:27] Production.INFO: count ==4271 [2025-02-14 16:43:29] Production.ERROR: pbx CDR StartTime 2025-02-14 13:43:05 - End Time 2025-02-14 16:43:05 [2025-02-14 16:43:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475046', 'tblTempUsageDetail_20' ) start [2025-02-14 16:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475046', 'tblTempUsageDetail_20' ) end [2025-02-14 16:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475046', 'tblTempVendorCDR_20' ) start [2025-02-14 16:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475046', 'tblTempVendorCDR_20' ) end [2025-02-14 16:43:29] Production.INFO: ProcessCDR(1,14475046,1,1,2) [2025-02-14 16:43:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:43:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:43:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:43:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475046', 'tblTempUsageDetail_20' ) start [2025-02-14 16:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475046', 'tblTempUsageDetail_20' ) end [2025-02-14 16:43:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:43:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:43:34] Production.INFO: ==9237== Releasing lock... [2025-02-14 16:43:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:43:34] Production.INFO: 60 MB #Memory Used# [2025-02-14 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:44:05 [end_date_ymd] => 2025-02-14 16:44:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:44:05' and `end` < '2025-02-14 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-02-14 16:44:24] Production.INFO: count ==4263 [2025-02-14 16:44:26] Production.ERROR: pbx CDR StartTime 2025-02-14 13:44:05 - End Time 2025-02-14 16:44:05 [2025-02-14 16:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475051', 'tblTempUsageDetail_20' ) start [2025-02-14 16:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475051', 'tblTempUsageDetail_20' ) end [2025-02-14 16:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475051', 'tblTempVendorCDR_20' ) start [2025-02-14 16:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475051', 'tblTempVendorCDR_20' ) end [2025-02-14 16:44:26] Production.INFO: ProcessCDR(1,14475051,1,1,2) [2025-02-14 16:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475051', 'tblTempUsageDetail_20' ) start [2025-02-14 16:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475051', 'tblTempUsageDetail_20' ) end [2025-02-14 16:44:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:44:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:44:31] Production.INFO: ==9323== Releasing lock... [2025-02-14 16:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:44:31] Production.INFO: 60 MB #Memory Used# [2025-02-14 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:45:05 [end_date_ymd] => 2025-02-14 16:45:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:45:05' and `end` < '2025-02-14 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:45:25] Production.INFO: count ==4247 [2025-02-14 16:45:27] Production.ERROR: pbx CDR StartTime 2025-02-14 13:45:05 - End Time 2025-02-14 16:45:05 [2025-02-14 16:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475056', 'tblTempUsageDetail_20' ) start [2025-02-14 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475056', 'tblTempUsageDetail_20' ) end [2025-02-14 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475056', 'tblTempVendorCDR_20' ) start [2025-02-14 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475056', 'tblTempVendorCDR_20' ) end [2025-02-14 16:45:27] Production.INFO: ProcessCDR(1,14475056,1,1,2) [2025-02-14 16:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:45:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475056', 'tblTempUsageDetail_20' ) start [2025-02-14 16:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475056', 'tblTempUsageDetail_20' ) end [2025-02-14 16:45:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:45:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:45:33] Production.INFO: ==9419== Releasing lock... [2025-02-14 16:45:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:45:33] Production.INFO: 60 MB #Memory Used# [2025-02-14 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:46:05 [end_date_ymd] => 2025-02-14 16:46:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:46:05' and `end` < '2025-02-14 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-02-14 16:46:19] Production.INFO: count ==4242 [2025-02-14 16:46:21] Production.ERROR: pbx CDR StartTime 2025-02-14 13:46:05 - End Time 2025-02-14 16:46:05 [2025-02-14 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475061', 'tblTempUsageDetail_20' ) start [2025-02-14 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475061', 'tblTempUsageDetail_20' ) end [2025-02-14 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475061', 'tblTempVendorCDR_20' ) start [2025-02-14 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475061', 'tblTempVendorCDR_20' ) end [2025-02-14 16:46:21] Production.INFO: ProcessCDR(1,14475061,1,1,2) [2025-02-14 16:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475061', 'tblTempUsageDetail_20' ) start [2025-02-14 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475061', 'tblTempUsageDetail_20' ) end [2025-02-14 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:46:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:46:27] Production.INFO: ==9510== Releasing lock... [2025-02-14 16:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:46:27] Production.INFO: 60 MB #Memory Used# [2025-02-14 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:47:05 [end_date_ymd] => 2025-02-14 16:47:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:47:05' and `end` < '2025-02-14 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-02-14 16:47:20] Production.INFO: count ==4237 [2025-02-14 16:47:22] Production.ERROR: pbx CDR StartTime 2025-02-14 13:47:05 - End Time 2025-02-14 16:47:05 [2025-02-14 16:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475066', 'tblTempUsageDetail_20' ) start [2025-02-14 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475066', 'tblTempUsageDetail_20' ) end [2025-02-14 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475066', 'tblTempVendorCDR_20' ) start [2025-02-14 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475066', 'tblTempVendorCDR_20' ) end [2025-02-14 16:47:22] Production.INFO: ProcessCDR(1,14475066,1,1,2) [2025-02-14 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475066', 'tblTempUsageDetail_20' ) start [2025-02-14 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475066', 'tblTempUsageDetail_20' ) end [2025-02-14 16:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:47:27] Production.INFO: ==9597== Releasing lock... [2025-02-14 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:47:27] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:48:05 [end_date_ymd] => 2025-02-14 16:48:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:48:05' and `end` < '2025-02-14 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-02-14 16:48:21] Production.INFO: count ==4236 [2025-02-14 16:48:23] Production.ERROR: pbx CDR StartTime 2025-02-14 13:48:05 - End Time 2025-02-14 16:48:05 [2025-02-14 16:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475071', 'tblTempUsageDetail_20' ) start [2025-02-14 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475071', 'tblTempUsageDetail_20' ) end [2025-02-14 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475071', 'tblTempVendorCDR_20' ) start [2025-02-14 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475071', 'tblTempVendorCDR_20' ) end [2025-02-14 16:48:23] Production.INFO: ProcessCDR(1,14475071,1,1,2) [2025-02-14 16:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475071', 'tblTempUsageDetail_20' ) start [2025-02-14 16:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475071', 'tblTempUsageDetail_20' ) end [2025-02-14 16:48:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:48:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:48:29] Production.INFO: ==9722== Releasing lock... [2025-02-14 16:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:48:29] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 16:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:49:06 [end_date_ymd] => 2025-02-14 16:49:06 [RateCDR] => 1 ) [2025-02-14 16:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:49:06' and `end` < '2025-02-14 16:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:49:23] Production.INFO: count ==4246 [2025-02-14 16:49:24] Production.ERROR: pbx CDR StartTime 2025-02-14 13:49:06 - End Time 2025-02-14 16:49:06 [2025-02-14 16:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475076', 'tblTempUsageDetail_20' ) start [2025-02-14 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475076', 'tblTempUsageDetail_20' ) end [2025-02-14 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475076', 'tblTempVendorCDR_20' ) start [2025-02-14 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475076', 'tblTempVendorCDR_20' ) end [2025-02-14 16:49:24] Production.INFO: ProcessCDR(1,14475076,1,1,2) [2025-02-14 16:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475076', 'tblTempUsageDetail_20' ) start [2025-02-14 16:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475076', 'tblTempUsageDetail_20' ) end [2025-02-14 16:49:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:49:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:49:30] Production.INFO: ==9816== Releasing lock... [2025-02-14 16:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:49:30] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:50:06 [end_date_ymd] => 2025-02-14 16:50:06 [RateCDR] => 1 ) [2025-02-14 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:50:06' and `end` < '2025-02-14 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:50:28] Production.INFO: count ==4258 [2025-02-14 16:50:30] Production.ERROR: pbx CDR StartTime 2025-02-14 13:50:06 - End Time 2025-02-14 16:50:06 [2025-02-14 16:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475082', 'tblTempUsageDetail_20' ) start [2025-02-14 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475082', 'tblTempUsageDetail_20' ) end [2025-02-14 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475082', 'tblTempVendorCDR_20' ) start [2025-02-14 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475082', 'tblTempVendorCDR_20' ) end [2025-02-14 16:50:30] Production.INFO: ProcessCDR(1,14475082,1,1,2) [2025-02-14 16:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475082', 'tblTempUsageDetail_20' ) start [2025-02-14 16:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475082', 'tblTempUsageDetail_20' ) end [2025-02-14 16:50:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:50:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:50:36] Production.INFO: ==9911== Releasing lock... [2025-02-14 16:50:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:50:36] Production.INFO: 60 MB #Memory Used# [2025-02-14 16:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:51:06 [end_date_ymd] => 2025-02-14 16:51:06 [RateCDR] => 1 ) [2025-02-14 16:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:51:06' and `end` < '2025-02-14 16:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:51:21] Production.INFO: count ==4259 [2025-02-14 16:51:22] Production.ERROR: pbx CDR StartTime 2025-02-14 13:51:06 - End Time 2025-02-14 16:51:06 [2025-02-14 16:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475087', 'tblTempUsageDetail_20' ) start [2025-02-14 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475087', 'tblTempUsageDetail_20' ) end [2025-02-14 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475087', 'tblTempVendorCDR_20' ) start [2025-02-14 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475087', 'tblTempVendorCDR_20' ) end [2025-02-14 16:51:23] Production.INFO: ProcessCDR(1,14475087,1,1,2) [2025-02-14 16:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475087', 'tblTempUsageDetail_20' ) start [2025-02-14 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475087', 'tblTempUsageDetail_20' ) end [2025-02-14 16:51:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:51:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:51:28] Production.INFO: ==10003== Releasing lock... [2025-02-14 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:51:28] Production.INFO: 60 MB #Memory Used# [2025-02-14 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:52:05 [end_date_ymd] => 2025-02-14 16:52:05 [RateCDR] => 1 ) [2025-02-14 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:52:05' and `end` < '2025-02-14 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:52:20] Production.INFO: count ==4247 [2025-02-14 16:52:21] Production.ERROR: pbx CDR StartTime 2025-02-14 13:52:05 - End Time 2025-02-14 16:52:05 [2025-02-14 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475092', 'tblTempUsageDetail_20' ) start [2025-02-14 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475092', 'tblTempUsageDetail_20' ) end [2025-02-14 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475092', 'tblTempVendorCDR_20' ) start [2025-02-14 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475092', 'tblTempVendorCDR_20' ) end [2025-02-14 16:52:22] Production.INFO: ProcessCDR(1,14475092,1,1,2) [2025-02-14 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475092', 'tblTempUsageDetail_20' ) start [2025-02-14 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475092', 'tblTempUsageDetail_20' ) end [2025-02-14 16:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:52:27] Production.INFO: ==10093== Releasing lock... [2025-02-14 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:52:27] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:53:06 [end_date_ymd] => 2025-02-14 16:53:06 [RateCDR] => 1 ) [2025-02-14 16:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:53:06' and `end` < '2025-02-14 16:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:53:29] Production.INFO: count ==4249 [2025-02-14 16:53:31] Production.ERROR: pbx CDR StartTime 2025-02-14 13:53:06 - End Time 2025-02-14 16:53:06 [2025-02-14 16:53:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475097', 'tblTempUsageDetail_20' ) start [2025-02-14 16:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475097', 'tblTempUsageDetail_20' ) end [2025-02-14 16:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475097', 'tblTempVendorCDR_20' ) start [2025-02-14 16:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475097', 'tblTempVendorCDR_20' ) end [2025-02-14 16:53:31] Production.INFO: ProcessCDR(1,14475097,1,1,2) [2025-02-14 16:53:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:53:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:53:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:53:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475097', 'tblTempUsageDetail_20' ) start [2025-02-14 16:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475097', 'tblTempUsageDetail_20' ) end [2025-02-14 16:53:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:53:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:53:36] Production.INFO: ==10181== Releasing lock... [2025-02-14 16:53:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:53:36] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:54:05 [end_date_ymd] => 2025-02-14 16:54:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:54:05' and `end` < '2025-02-14 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-02-14 16:54:26] Production.INFO: count ==4264 [2025-02-14 16:54:28] Production.ERROR: pbx CDR StartTime 2025-02-14 13:54:05 - End Time 2025-02-14 16:54:05 [2025-02-14 16:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475102', 'tblTempUsageDetail_20' ) start [2025-02-14 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475102', 'tblTempUsageDetail_20' ) end [2025-02-14 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475102', 'tblTempVendorCDR_20' ) start [2025-02-14 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475102', 'tblTempVendorCDR_20' ) end [2025-02-14 16:54:28] Production.INFO: ProcessCDR(1,14475102,1,1,2) [2025-02-14 16:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:54:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475102', 'tblTempUsageDetail_20' ) start [2025-02-14 16:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475102', 'tblTempUsageDetail_20' ) end [2025-02-14 16:54:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:54:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:54:34] Production.INFO: ==10268== Releasing lock... [2025-02-14 16:54:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:54:34] Production.INFO: 60 MB #Memory Used# [2025-02-14 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:55:06 [end_date_ymd] => 2025-02-14 16:55:06 [RateCDR] => 1 ) [2025-02-14 16:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:55:06' and `end` < '2025-02-14 16:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:55:27] Production.INFO: count ==4259 [2025-02-14 16:55:29] Production.ERROR: pbx CDR StartTime 2025-02-14 13:55:06 - End Time 2025-02-14 16:55:06 [2025-02-14 16:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475107', 'tblTempUsageDetail_20' ) start [2025-02-14 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475107', 'tblTempUsageDetail_20' ) end [2025-02-14 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475107', 'tblTempVendorCDR_20' ) start [2025-02-14 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475107', 'tblTempVendorCDR_20' ) end [2025-02-14 16:55:29] Production.INFO: ProcessCDR(1,14475107,1,1,2) [2025-02-14 16:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475107', 'tblTempUsageDetail_20' ) start [2025-02-14 16:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475107', 'tblTempUsageDetail_20' ) end [2025-02-14 16:55:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:55:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:55:33] Production.INFO: ==10354== Releasing lock... [2025-02-14 16:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:55:33] Production.INFO: 60 MB #Memory Used# [2025-02-14 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:56:05 [end_date_ymd] => 2025-02-14 16:56:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 13:56:05' and `end` < '2025-02-14 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-02-14 16:56:28] Production.INFO: count ==4263 [2025-02-14 16:56:29] Production.ERROR: pbx CDR StartTime 2025-02-14 13:56:05 - End Time 2025-02-14 16:56:05 [2025-02-14 16:56:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475112', 'tblTempUsageDetail_20' ) start [2025-02-14 16:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475112', 'tblTempUsageDetail_20' ) end [2025-02-14 16:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475112', 'tblTempVendorCDR_20' ) start [2025-02-14 16:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475112', 'tblTempVendorCDR_20' ) end [2025-02-14 16:56:30] Production.INFO: ProcessCDR(1,14475112,1,1,2) [2025-02-14 16:56:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:56:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:56:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:56:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:56:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475112', 'tblTempUsageDetail_20' ) start [2025-02-14 16:56:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475112', 'tblTempUsageDetail_20' ) end [2025-02-14 16:56:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:56:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:56:35] Production.INFO: ==10444== Releasing lock... [2025-02-14 16:56:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:56:35] Production.INFO: 60 MB #Memory Used# [2025-02-14 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:57:06 [end_date_ymd] => 2025-02-14 16:57:06 [RateCDR] => 1 ) [2025-02-14 16:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:57:06' and `end` < '2025-02-14 16:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:57:24] Production.INFO: count ==4266 [2025-02-14 16:57:25] Production.ERROR: pbx CDR StartTime 2025-02-14 13:57:06 - End Time 2025-02-14 16:57:06 [2025-02-14 16:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475117', 'tblTempUsageDetail_20' ) start [2025-02-14 16:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475117', 'tblTempUsageDetail_20' ) end [2025-02-14 16:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475117', 'tblTempVendorCDR_20' ) start [2025-02-14 16:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475117', 'tblTempVendorCDR_20' ) end [2025-02-14 16:57:25] Production.INFO: ProcessCDR(1,14475117,1,1,2) [2025-02-14 16:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475117', 'tblTempUsageDetail_20' ) start [2025-02-14 16:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475117', 'tblTempUsageDetail_20' ) end [2025-02-14 16:57:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:57:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:57:29] Production.INFO: ==10532== Releasing lock... [2025-02-14 16:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:57:29] Production.INFO: 60 MB #Memory Used# [2025-02-14 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:58:06 [end_date_ymd] => 2025-02-14 16:58:06 [RateCDR] => 1 ) [2025-02-14 16:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:58:06' and `end` < '2025-02-14 16:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:58:20] Production.INFO: count ==4262 [2025-02-14 16:58:21] Production.ERROR: pbx CDR StartTime 2025-02-14 13:58:06 - End Time 2025-02-14 16:58:06 [2025-02-14 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475122', 'tblTempUsageDetail_20' ) start [2025-02-14 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475122', 'tblTempUsageDetail_20' ) end [2025-02-14 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475122', 'tblTempVendorCDR_20' ) start [2025-02-14 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475122', 'tblTempVendorCDR_20' ) end [2025-02-14 16:58:22] Production.INFO: ProcessCDR(1,14475122,1,1,2) [2025-02-14 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475122', 'tblTempUsageDetail_20' ) start [2025-02-14 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475122', 'tblTempUsageDetail_20' ) end [2025-02-14 16:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:58:27] Production.INFO: ==10622== Releasing lock... [2025-02-14 16:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:58:27] Production.INFO: 60 MB #Memory Used# [2025-02-14 16:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 13:59:06 [end_date_ymd] => 2025-02-14 16:59:06 [RateCDR] => 1 ) [2025-02-14 16:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 13:59:06' and `end` < '2025-02-14 16:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 16:59:26] Production.INFO: count ==4236 [2025-02-14 16:59:28] Production.ERROR: pbx CDR StartTime 2025-02-14 13:59:06 - End Time 2025-02-14 16:59:06 [2025-02-14 16:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 16:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475127', 'tblTempUsageDetail_20' ) start [2025-02-14 16:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475127', 'tblTempUsageDetail_20' ) end [2025-02-14 16:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475127', 'tblTempVendorCDR_20' ) start [2025-02-14 16:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475127', 'tblTempVendorCDR_20' ) end [2025-02-14 16:59:28] Production.INFO: ProcessCDR(1,14475127,1,1,2) [2025-02-14 16:59:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:59:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 16:59:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 16:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475127', 'tblTempUsageDetail_20' ) start [2025-02-14 16:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475127', 'tblTempUsageDetail_20' ) end [2025-02-14 16:59:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 16:59:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 16:59:33] Production.INFO: ==10709== Releasing lock... [2025-02-14 16:59:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 16:59:33] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:00:06 [end_date_ymd] => 2025-02-14 17:00:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:00:06' and `end` < '2025-02-14 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-02-14 17:00:25] Production.INFO: count ==4230 [2025-02-14 17:00:26] Production.ERROR: pbx CDR StartTime 2025-02-14 14:00:06 - End Time 2025-02-14 17:00:06 [2025-02-14 17:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475132', 'tblTempUsageDetail_20' ) start [2025-02-14 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475132', 'tblTempUsageDetail_20' ) end [2025-02-14 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475132', 'tblTempVendorCDR_20' ) start [2025-02-14 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475132', 'tblTempVendorCDR_20' ) end [2025-02-14 17:00:27] Production.INFO: ProcessCDR(1,14475132,1,1,2) [2025-02-14 17:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475132', 'tblTempUsageDetail_20' ) start [2025-02-14 17:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475132', 'tblTempUsageDetail_20' ) end [2025-02-14 17:00:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:00:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:00:32] Production.INFO: ==10802== Releasing lock... [2025-02-14 17:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:00:32] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:01:06 [end_date_ymd] => 2025-02-14 17:01:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:01:06' and `end` < '2025-02-14 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-02-14 17:01:21] Production.INFO: count ==4242 [2025-02-14 17:01:22] Production.ERROR: pbx CDR StartTime 2025-02-14 14:01:06 - End Time 2025-02-14 17:01:06 [2025-02-14 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475138', 'tblTempUsageDetail_20' ) start [2025-02-14 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475138', 'tblTempUsageDetail_20' ) end [2025-02-14 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475138', 'tblTempVendorCDR_20' ) start [2025-02-14 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475138', 'tblTempVendorCDR_20' ) end [2025-02-14 17:01:22] Production.INFO: ProcessCDR(1,14475138,1,1,2) [2025-02-14 17:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475138', 'tblTempUsageDetail_20' ) start [2025-02-14 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475138', 'tblTempUsageDetail_20' ) end [2025-02-14 17:01:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:01:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:01:28] Production.INFO: ==10905== Releasing lock... [2025-02-14 17:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:01:28] Production.INFO: 60 MB #Memory Used# [2025-02-14 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:02:06 [end_date_ymd] => 2025-02-14 17:02:06 [RateCDR] => 1 ) [2025-02-14 17: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-02-14 14:02:06' and `end` < '2025-02-14 17: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-02-14 17:02:25] Production.INFO: count ==4239 [2025-02-14 17:02:27] Production.ERROR: pbx CDR StartTime 2025-02-14 14:02:06 - End Time 2025-02-14 17:02:06 [2025-02-14 17:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475143', 'tblTempUsageDetail_20' ) start [2025-02-14 17:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475143', 'tblTempUsageDetail_20' ) end [2025-02-14 17:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475143', 'tblTempVendorCDR_20' ) start [2025-02-14 17:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475143', 'tblTempVendorCDR_20' ) end [2025-02-14 17:02:27] Production.INFO: ProcessCDR(1,14475143,1,1,2) [2025-02-14 17:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:02:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:02:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475143', 'tblTempUsageDetail_20' ) start [2025-02-14 17:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475143', 'tblTempUsageDetail_20' ) end [2025-02-14 17:02:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:02:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:02:33] Production.INFO: ==10994== Releasing lock... [2025-02-14 17:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:02:33] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:03:05 [end_date_ymd] => 2025-02-14 17:03:05 [RateCDR] => 1 ) [2025-02-14 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:03:05' and `end` < '2025-02-14 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:03:25] Production.INFO: count ==4250 [2025-02-14 17:03:27] Production.ERROR: pbx CDR StartTime 2025-02-14 14:03:05 - End Time 2025-02-14 17:03:05 [2025-02-14 17:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475148', 'tblTempUsageDetail_20' ) start [2025-02-14 17:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475148', 'tblTempUsageDetail_20' ) end [2025-02-14 17:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475148', 'tblTempVendorCDR_20' ) start [2025-02-14 17:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475148', 'tblTempVendorCDR_20' ) end [2025-02-14 17:03:27] Production.INFO: ProcessCDR(1,14475148,1,1,2) [2025-02-14 17:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475148', 'tblTempUsageDetail_20' ) start [2025-02-14 17:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475148', 'tblTempUsageDetail_20' ) end [2025-02-14 17:03:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:03:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:03:33] Production.INFO: ==11128== Releasing lock... [2025-02-14 17:03:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:03:33] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:04:06 [end_date_ymd] => 2025-02-14 17:04:06 [RateCDR] => 1 ) [2025-02-14 17:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:04:06' and `end` < '2025-02-14 17:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:04:23] Production.INFO: count ==4235 [2025-02-14 17:04:25] Production.ERROR: pbx CDR StartTime 2025-02-14 14:04:06 - End Time 2025-02-14 17:04:06 [2025-02-14 17:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475153', 'tblTempUsageDetail_20' ) start [2025-02-14 17:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475153', 'tblTempUsageDetail_20' ) end [2025-02-14 17:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475153', 'tblTempVendorCDR_20' ) start [2025-02-14 17:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475153', 'tblTempVendorCDR_20' ) end [2025-02-14 17:04:25] Production.INFO: ProcessCDR(1,14475153,1,1,2) [2025-02-14 17:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475153', 'tblTempUsageDetail_20' ) start [2025-02-14 17:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475153', 'tblTempUsageDetail_20' ) end [2025-02-14 17:04:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:04:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:04:30] Production.INFO: ==11223== Releasing lock... [2025-02-14 17:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:04:30] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:05:06 [end_date_ymd] => 2025-02-14 17:05:06 [RateCDR] => 1 ) [2025-02-14 17:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:05:06' and `end` < '2025-02-14 17:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:05:29] Production.INFO: count ==4254 [2025-02-14 17:05:31] Production.ERROR: pbx CDR StartTime 2025-02-14 14:05:06 - End Time 2025-02-14 17:05:06 [2025-02-14 17:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475158', 'tblTempUsageDetail_20' ) start [2025-02-14 17:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475158', 'tblTempUsageDetail_20' ) end [2025-02-14 17:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475158', 'tblTempVendorCDR_20' ) start [2025-02-14 17:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475158', 'tblTempVendorCDR_20' ) end [2025-02-14 17:05:31] Production.INFO: ProcessCDR(1,14475158,1,1,2) [2025-02-14 17:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475158', 'tblTempUsageDetail_20' ) start [2025-02-14 17:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475158', 'tblTempUsageDetail_20' ) end [2025-02-14 17:05:35] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:05:35] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:05:35] Production.INFO: ==11313== Releasing lock... [2025-02-14 17:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:05:35] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:06:05 [end_date_ymd] => 2025-02-14 17:06:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:06:05' and `end` < '2025-02-14 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-02-14 17:06:25] Production.INFO: count ==4256 [2025-02-14 17:06:27] Production.ERROR: pbx CDR StartTime 2025-02-14 14:06:05 - End Time 2025-02-14 17:06:05 [2025-02-14 17:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475163', 'tblTempUsageDetail_20' ) start [2025-02-14 17:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475163', 'tblTempUsageDetail_20' ) end [2025-02-14 17:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475163', 'tblTempVendorCDR_20' ) start [2025-02-14 17:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475163', 'tblTempVendorCDR_20' ) end [2025-02-14 17:06:27] Production.INFO: ProcessCDR(1,14475163,1,1,2) [2025-02-14 17:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475163', 'tblTempUsageDetail_20' ) start [2025-02-14 17:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475163', 'tblTempUsageDetail_20' ) end [2025-02-14 17:06:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:06:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:06:33] Production.INFO: ==11413== Releasing lock... [2025-02-14 17:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:06:33] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:07:06 [end_date_ymd] => 2025-02-14 17:07:06 [RateCDR] => 1 ) [2025-02-14 17:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:07:06' and `end` < '2025-02-14 17:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:07:20] Production.INFO: count ==4242 [2025-02-14 17:07:22] Production.ERROR: pbx CDR StartTime 2025-02-14 14:07:06 - End Time 2025-02-14 17:07:06 [2025-02-14 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475168', 'tblTempUsageDetail_20' ) start [2025-02-14 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475168', 'tblTempUsageDetail_20' ) end [2025-02-14 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475168', 'tblTempVendorCDR_20' ) start [2025-02-14 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475168', 'tblTempVendorCDR_20' ) end [2025-02-14 17:07:22] Production.INFO: ProcessCDR(1,14475168,1,1,2) [2025-02-14 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475168', 'tblTempUsageDetail_20' ) start [2025-02-14 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475168', 'tblTempUsageDetail_20' ) end [2025-02-14 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:07:27] Production.INFO: ==11502== Releasing lock... [2025-02-14 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:07:27] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:08:06 [end_date_ymd] => 2025-02-14 17:08:06 [RateCDR] => 1 ) [2025-02-14 17:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:08:06' and `end` < '2025-02-14 17:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:08:27] Production.INFO: count ==4237 [2025-02-14 17:08:29] Production.ERROR: pbx CDR StartTime 2025-02-14 14:08:06 - End Time 2025-02-14 17:08:06 [2025-02-14 17:08:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475173', 'tblTempUsageDetail_20' ) start [2025-02-14 17:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475173', 'tblTempUsageDetail_20' ) end [2025-02-14 17:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475173', 'tblTempVendorCDR_20' ) start [2025-02-14 17:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475173', 'tblTempVendorCDR_20' ) end [2025-02-14 17:08:29] Production.INFO: ProcessCDR(1,14475173,1,1,2) [2025-02-14 17:08:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:08:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:08:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:08:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475173', 'tblTempUsageDetail_20' ) start [2025-02-14 17:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475173', 'tblTempUsageDetail_20' ) end [2025-02-14 17:08:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:08:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:08:34] Production.INFO: ==11596== Releasing lock... [2025-02-14 17:08:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:08:34] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:09:06 [end_date_ymd] => 2025-02-14 17:09:06 [RateCDR] => 1 ) [2025-02-14 17:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:09:06' and `end` < '2025-02-14 17:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:09:30] Production.INFO: count ==4239 [2025-02-14 17:09:32] Production.ERROR: pbx CDR StartTime 2025-02-14 14:09:06 - End Time 2025-02-14 17:09:06 [2025-02-14 17:09:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475178', 'tblTempUsageDetail_20' ) start [2025-02-14 17:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475178', 'tblTempUsageDetail_20' ) end [2025-02-14 17:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475178', 'tblTempVendorCDR_20' ) start [2025-02-14 17:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475178', 'tblTempVendorCDR_20' ) end [2025-02-14 17:09:32] Production.INFO: ProcessCDR(1,14475178,1,1,2) [2025-02-14 17:09:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:09:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:09:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:09:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:09:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475178', 'tblTempUsageDetail_20' ) start [2025-02-14 17:09:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475178', 'tblTempUsageDetail_20' ) end [2025-02-14 17:09:38] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:09:38] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:09:38] Production.INFO: ==11687== Releasing lock... [2025-02-14 17:09:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:09:38] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:10:06 [end_date_ymd] => 2025-02-14 17:10:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:10:06' and `end` < '2025-02-14 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-02-14 17:10:30] Production.INFO: count ==4242 [2025-02-14 17:10:31] Production.ERROR: pbx CDR StartTime 2025-02-14 14:10:06 - End Time 2025-02-14 17:10:06 [2025-02-14 17:10:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475184', 'tblTempUsageDetail_20' ) start [2025-02-14 17:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475184', 'tblTempUsageDetail_20' ) end [2025-02-14 17:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475184', 'tblTempVendorCDR_20' ) start [2025-02-14 17:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475184', 'tblTempVendorCDR_20' ) end [2025-02-14 17:10:32] Production.INFO: ProcessCDR(1,14475184,1,1,2) [2025-02-14 17:10:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:10:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:10:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:10:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:10:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475184', 'tblTempUsageDetail_20' ) start [2025-02-14 17:10:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475184', 'tblTempUsageDetail_20' ) end [2025-02-14 17:10:37] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:10:37] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:10:37] Production.INFO: ==11785== Releasing lock... [2025-02-14 17:10:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:10:37] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:11:06 [end_date_ymd] => 2025-02-14 17:11:06 [RateCDR] => 1 ) [2025-02-14 17:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:11:06' and `end` < '2025-02-14 17:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:11:25] Production.INFO: count ==4230 [2025-02-14 17:11:26] Production.ERROR: pbx CDR StartTime 2025-02-14 14:11:06 - End Time 2025-02-14 17:11:06 [2025-02-14 17:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475189', 'tblTempUsageDetail_20' ) start [2025-02-14 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475189', 'tblTempUsageDetail_20' ) end [2025-02-14 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475189', 'tblTempVendorCDR_20' ) start [2025-02-14 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475189', 'tblTempVendorCDR_20' ) end [2025-02-14 17:11:26] Production.INFO: ProcessCDR(1,14475189,1,1,2) [2025-02-14 17:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475189', 'tblTempUsageDetail_20' ) start [2025-02-14 17:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475189', 'tblTempUsageDetail_20' ) end [2025-02-14 17:11:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:11:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:11:32] Production.INFO: ==11882== Releasing lock... [2025-02-14 17:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:11:32] Production.INFO: 59.75 MB #Memory Used# [2025-02-14 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:12:05 [end_date_ymd] => 2025-02-14 17:12:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:12:05' and `end` < '2025-02-14 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-02-14 17:12:23] Production.INFO: count ==4222 [2025-02-14 17:12:25] Production.ERROR: pbx CDR StartTime 2025-02-14 14:12:05 - End Time 2025-02-14 17:12:05 [2025-02-14 17:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475194', 'tblTempUsageDetail_20' ) start [2025-02-14 17:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475194', 'tblTempUsageDetail_20' ) end [2025-02-14 17:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475194', 'tblTempVendorCDR_20' ) start [2025-02-14 17:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475194', 'tblTempVendorCDR_20' ) end [2025-02-14 17:12:25] Production.INFO: ProcessCDR(1,14475194,1,1,2) [2025-02-14 17:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475194', 'tblTempUsageDetail_20' ) start [2025-02-14 17:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475194', 'tblTempUsageDetail_20' ) end [2025-02-14 17:12:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:12:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:12:29] Production.INFO: ==11982== Releasing lock... [2025-02-14 17:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:12:29] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:13:06 [end_date_ymd] => 2025-02-14 17:13:06 [RateCDR] => 1 ) [2025-02-14 17:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:13:06' and `end` < '2025-02-14 17:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:13:20] Production.INFO: count ==4217 [2025-02-14 17:13:22] Production.ERROR: pbx CDR StartTime 2025-02-14 14:13:06 - End Time 2025-02-14 17:13:06 [2025-02-14 17:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475199', 'tblTempUsageDetail_20' ) start [2025-02-14 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475199', 'tblTempUsageDetail_20' ) end [2025-02-14 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475199', 'tblTempVendorCDR_20' ) start [2025-02-14 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475199', 'tblTempVendorCDR_20' ) end [2025-02-14 17:13:22] Production.INFO: ProcessCDR(1,14475199,1,1,2) [2025-02-14 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475199', 'tblTempUsageDetail_20' ) start [2025-02-14 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475199', 'tblTempUsageDetail_20' ) end [2025-02-14 17:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:13:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:13:28] Production.INFO: ==12074== Releasing lock... [2025-02-14 17:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:13:28] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:14:05 [end_date_ymd] => 2025-02-14 17:14:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:14:05' and `end` < '2025-02-14 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-02-14 17:14:22] Production.INFO: count ==4216 [2025-02-14 17:14:24] Production.ERROR: pbx CDR StartTime 2025-02-14 14:14:05 - End Time 2025-02-14 17:14:05 [2025-02-14 17:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475204', 'tblTempUsageDetail_20' ) start [2025-02-14 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475204', 'tblTempUsageDetail_20' ) end [2025-02-14 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475204', 'tblTempVendorCDR_20' ) start [2025-02-14 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475204', 'tblTempVendorCDR_20' ) end [2025-02-14 17:14:24] Production.INFO: ProcessCDR(1,14475204,1,1,2) [2025-02-14 17:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475204', 'tblTempUsageDetail_20' ) start [2025-02-14 17:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475204', 'tblTempUsageDetail_20' ) end [2025-02-14 17:14:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:14:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:14:29] Production.INFO: ==12170== Releasing lock... [2025-02-14 17:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:14:29] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:15:05 [end_date_ymd] => 2025-02-14 17:15:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:15:05' and `end` < '2025-02-14 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:15:26] Production.INFO: count ==4217 [2025-02-14 17:15:28] Production.ERROR: pbx CDR StartTime 2025-02-14 14:15:05 - End Time 2025-02-14 17:15:05 [2025-02-14 17:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475209', 'tblTempUsageDetail_20' ) start [2025-02-14 17:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475209', 'tblTempUsageDetail_20' ) end [2025-02-14 17:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475209', 'tblTempVendorCDR_20' ) start [2025-02-14 17:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475209', 'tblTempVendorCDR_20' ) end [2025-02-14 17:15:28] Production.INFO: ProcessCDR(1,14475209,1,1,2) [2025-02-14 17:15:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475209', 'tblTempUsageDetail_20' ) start [2025-02-14 17:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475209', 'tblTempUsageDetail_20' ) end [2025-02-14 17:15:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:15:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:15:33] Production.INFO: ==12268== Releasing lock... [2025-02-14 17:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:15:33] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:16:05 [end_date_ymd] => 2025-02-14 17:16:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:16:05' and `end` < '2025-02-14 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-02-14 17:16:22] Production.INFO: count ==4191 [2025-02-14 17:16:24] Production.ERROR: pbx CDR StartTime 2025-02-14 14:16:05 - End Time 2025-02-14 17:16:05 [2025-02-14 17:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475214', 'tblTempUsageDetail_20' ) start [2025-02-14 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475214', 'tblTempUsageDetail_20' ) end [2025-02-14 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475214', 'tblTempVendorCDR_20' ) start [2025-02-14 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475214', 'tblTempVendorCDR_20' ) end [2025-02-14 17:16:24] Production.INFO: ProcessCDR(1,14475214,1,1,2) [2025-02-14 17:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475214', 'tblTempUsageDetail_20' ) start [2025-02-14 17:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475214', 'tblTempUsageDetail_20' ) end [2025-02-14 17:16:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:16:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:16:29] Production.INFO: ==12362== Releasing lock... [2025-02-14 17:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:16:29] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:17:06 [end_date_ymd] => 2025-02-14 17:17:06 [RateCDR] => 1 ) [2025-02-14 17:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:17:06' and `end` < '2025-02-14 17:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:17:20] Production.INFO: count ==4185 [2025-02-14 17:17:22] Production.ERROR: pbx CDR StartTime 2025-02-14 14:17:06 - End Time 2025-02-14 17:17:06 [2025-02-14 17:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475219', 'tblTempUsageDetail_20' ) start [2025-02-14 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475219', 'tblTempUsageDetail_20' ) end [2025-02-14 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475219', 'tblTempVendorCDR_20' ) start [2025-02-14 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475219', 'tblTempVendorCDR_20' ) end [2025-02-14 17:17:22] Production.INFO: ProcessCDR(1,14475219,1,1,2) [2025-02-14 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475219', 'tblTempUsageDetail_20' ) start [2025-02-14 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475219', 'tblTempUsageDetail_20' ) end [2025-02-14 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:17:27] Production.INFO: ==12465== Releasing lock... [2025-02-14 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:17:27] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:18:06 [end_date_ymd] => 2025-02-14 17:18:06 [RateCDR] => 1 ) [2025-02-14 17: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-02-14 14:18:06' and `end` < '2025-02-14 17: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-02-14 17:18:20] Production.INFO: count ==4169 [2025-02-14 17:18:22] Production.ERROR: pbx CDR StartTime 2025-02-14 14:18:06 - End Time 2025-02-14 17:18:06 [2025-02-14 17:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475224', 'tblTempUsageDetail_20' ) start [2025-02-14 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475224', 'tblTempUsageDetail_20' ) end [2025-02-14 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475224', 'tblTempVendorCDR_20' ) start [2025-02-14 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475224', 'tblTempVendorCDR_20' ) end [2025-02-14 17:18:22] Production.INFO: ProcessCDR(1,14475224,1,1,2) [2025-02-14 17:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475224', 'tblTempUsageDetail_20' ) start [2025-02-14 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475224', 'tblTempUsageDetail_20' ) end [2025-02-14 17:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:18:27] Production.INFO: ==12559== Releasing lock... [2025-02-14 17:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:18:27] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:19:06 [end_date_ymd] => 2025-02-14 17:19:06 [RateCDR] => 1 ) [2025-02-14 17:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:19:06' and `end` < '2025-02-14 17:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:19:25] Production.INFO: count ==4164 [2025-02-14 17:19:26] Production.ERROR: pbx CDR StartTime 2025-02-14 14:19:06 - End Time 2025-02-14 17:19:06 [2025-02-14 17:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475229', 'tblTempUsageDetail_20' ) start [2025-02-14 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475229', 'tblTempUsageDetail_20' ) end [2025-02-14 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475229', 'tblTempVendorCDR_20' ) start [2025-02-14 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475229', 'tblTempVendorCDR_20' ) end [2025-02-14 17:19:26] Production.INFO: ProcessCDR(1,14475229,1,1,2) [2025-02-14 17:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:19:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:19:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475229', 'tblTempUsageDetail_20' ) start [2025-02-14 17:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475229', 'tblTempUsageDetail_20' ) end [2025-02-14 17:19:32] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:19:32] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:19:32] Production.INFO: ==12693== Releasing lock... [2025-02-14 17:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:19:32] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:20:06 [end_date_ymd] => 2025-02-14 17:20:06 [RateCDR] => 1 ) [2025-02-14 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:20:06' and `end` < '2025-02-14 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:20:29] Production.INFO: count ==4160 [2025-02-14 17:20:31] Production.ERROR: pbx CDR StartTime 2025-02-14 14:20:06 - End Time 2025-02-14 17:20:06 [2025-02-14 17:20:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475235', 'tblTempUsageDetail_20' ) start [2025-02-14 17:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475235', 'tblTempUsageDetail_20' ) end [2025-02-14 17:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475235', 'tblTempVendorCDR_20' ) start [2025-02-14 17:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475235', 'tblTempVendorCDR_20' ) end [2025-02-14 17:20:31] Production.INFO: ProcessCDR(1,14475235,1,1,2) [2025-02-14 17:20:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:20:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:20:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:20:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475235', 'tblTempUsageDetail_20' ) start [2025-02-14 17:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475235', 'tblTempUsageDetail_20' ) end [2025-02-14 17:20:36] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:20:36] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:20:36] Production.INFO: ==12789== Releasing lock... [2025-02-14 17:20:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:20:36] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 17:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:21:06 [end_date_ymd] => 2025-02-14 17:21:06 [RateCDR] => 1 ) [2025-02-14 17:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:21:06' and `end` < '2025-02-14 17:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:21:20] Production.INFO: count ==4176 [2025-02-14 17:21:22] Production.ERROR: pbx CDR StartTime 2025-02-14 14:21:06 - End Time 2025-02-14 17:21:06 [2025-02-14 17:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475240', 'tblTempUsageDetail_20' ) start [2025-02-14 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475240', 'tblTempUsageDetail_20' ) end [2025-02-14 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475240', 'tblTempVendorCDR_20' ) start [2025-02-14 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475240', 'tblTempVendorCDR_20' ) end [2025-02-14 17:21:22] Production.INFO: ProcessCDR(1,14475240,1,1,2) [2025-02-14 17:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475240', 'tblTempUsageDetail_20' ) start [2025-02-14 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475240', 'tblTempUsageDetail_20' ) end [2025-02-14 17:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:21:27] Production.INFO: ==12883== Releasing lock... [2025-02-14 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:21:27] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:22:05 [end_date_ymd] => 2025-02-14 17:22:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:22:05' and `end` < '2025-02-14 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-02-14 17:22:24] Production.INFO: count ==4163 [2025-02-14 17:22:25] Production.ERROR: pbx CDR StartTime 2025-02-14 14:22:05 - End Time 2025-02-14 17:22:05 [2025-02-14 17:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475245', 'tblTempUsageDetail_20' ) start [2025-02-14 17:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475245', 'tblTempUsageDetail_20' ) end [2025-02-14 17:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475245', 'tblTempVendorCDR_20' ) start [2025-02-14 17:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475245', 'tblTempVendorCDR_20' ) end [2025-02-14 17:22:25] Production.INFO: ProcessCDR(1,14475245,1,1,2) [2025-02-14 17:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475245', 'tblTempUsageDetail_20' ) start [2025-02-14 17:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475245', 'tblTempUsageDetail_20' ) end [2025-02-14 17:22:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:22:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:22:31] Production.INFO: ==12982== Releasing lock... [2025-02-14 17:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:22:31] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 17:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:23:06 [end_date_ymd] => 2025-02-14 17:23:06 [RateCDR] => 1 ) [2025-02-14 17:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:23:06' and `end` < '2025-02-14 17:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:23:26] Production.INFO: count ==4167 [2025-02-14 17:23:28] Production.ERROR: pbx CDR StartTime 2025-02-14 14:23:06 - End Time 2025-02-14 17:23:06 [2025-02-14 17:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475250', 'tblTempUsageDetail_20' ) start [2025-02-14 17:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475250', 'tblTempUsageDetail_20' ) end [2025-02-14 17:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475250', 'tblTempVendorCDR_20' ) start [2025-02-14 17:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475250', 'tblTempVendorCDR_20' ) end [2025-02-14 17:23:28] Production.INFO: ProcessCDR(1,14475250,1,1,2) [2025-02-14 17:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:23:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:23:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:23:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475250', 'tblTempUsageDetail_20' ) start [2025-02-14 17:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475250', 'tblTempUsageDetail_20' ) end [2025-02-14 17:23:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:23:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:23:33] Production.INFO: ==13088== Releasing lock... [2025-02-14 17:23:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:23:33] Production.INFO: 59.5 MB #Memory Used# [2025-02-14 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:24:06 [end_date_ymd] => 2025-02-14 17:24:06 [RateCDR] => 1 ) [2025-02-14 17:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:24:06' and `end` < '2025-02-14 17:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:24:24] Production.INFO: count ==4170 [2025-02-14 17:24:26] Production.ERROR: pbx CDR StartTime 2025-02-14 14:24:06 - End Time 2025-02-14 17:24:06 [2025-02-14 17:24:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475255', 'tblTempUsageDetail_20' ) start [2025-02-14 17:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475255', 'tblTempUsageDetail_20' ) end [2025-02-14 17:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475255', 'tblTempVendorCDR_20' ) start [2025-02-14 17:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475255', 'tblTempVendorCDR_20' ) end [2025-02-14 17:24:26] Production.INFO: ProcessCDR(1,14475255,1,1,2) [2025-02-14 17:24:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:24:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475255', 'tblTempUsageDetail_20' ) start [2025-02-14 17:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475255', 'tblTempUsageDetail_20' ) end [2025-02-14 17:24:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:24:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:24:31] Production.INFO: ==13179== Releasing lock... [2025-02-14 17:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:24:31] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:25:06 [end_date_ymd] => 2025-02-14 17:25:06 [RateCDR] => 1 ) [2025-02-14 17:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:25:06' and `end` < '2025-02-14 17:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:25:22] Production.INFO: count ==4166 [2025-02-14 17:25:24] Production.ERROR: pbx CDR StartTime 2025-02-14 14:25:06 - End Time 2025-02-14 17:25:06 [2025-02-14 17:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475260', 'tblTempUsageDetail_20' ) start [2025-02-14 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475260', 'tblTempUsageDetail_20' ) end [2025-02-14 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475260', 'tblTempVendorCDR_20' ) start [2025-02-14 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475260', 'tblTempVendorCDR_20' ) end [2025-02-14 17:25:24] Production.INFO: ProcessCDR(1,14475260,1,1,2) [2025-02-14 17:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475260', 'tblTempUsageDetail_20' ) start [2025-02-14 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475260', 'tblTempUsageDetail_20' ) end [2025-02-14 17:25:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:25:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:25:28] Production.INFO: ==13278== Releasing lock... [2025-02-14 17:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:25:28] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 17:26:26] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:26:26 [end_date_ymd] => 2025-02-14 17:26:26 [RateCDR] => 1 ) [2025-02-14 17:26:26] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:26:26' and `end` < '2025-02-14 17:26:26' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:26:42] Production.INFO: count ==4161 [2025-02-14 17:27:48] Production.ERROR: pbx CDR StartTime 2025-02-14 14:26:26 - End Time 2025-02-14 17:26:26 [2025-02-14 17:27:48] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:27:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475265', 'tblTempUsageDetail_20' ) start [2025-02-14 17:27:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475265', 'tblTempUsageDetail_20' ) end [2025-02-14 17:27:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475265', 'tblTempVendorCDR_20' ) start [2025-02-14 17:27:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475265', 'tblTempVendorCDR_20' ) end [2025-02-14 17:27:55] Production.INFO: ProcessCDR(1,14475265,1,1,2) [2025-02-14 17:27:55] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:28:11] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:28:11] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475265', 'tblTempUsageDetail_20' ) start [2025-02-14 17:28:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475265', 'tblTempUsageDetail_20' ) end [2025-02-14 17:28:47] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:28:47] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:28:51] Production.INFO: ==13366== Releasing lock... [2025-02-14 17:28:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:28:51] Production.INFO: 59.25 MB #Memory Used# [2025-02-14 17:29:19] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:29:19 [end_date_ymd] => 2025-02-14 17:29:19 [RateCDR] => 1 ) [2025-02-14 17:29:19] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:29:19' and `end` < '2025-02-14 17:29:19' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:29:37] Production.INFO: count ==4150 [2025-02-14 17:30:31] Production.ERROR: pbx CDR StartTime 2025-02-14 14:29:19 - End Time 2025-02-14 17:29:19 [2025-02-14 17:30:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475275', 'tblTempUsageDetail_20' ) start [2025-02-14 17:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475275', 'tblTempUsageDetail_20' ) end [2025-02-14 17:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475275', 'tblTempVendorCDR_20' ) start [2025-02-14 17:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475275', 'tblTempVendorCDR_20' ) end [2025-02-14 17:30:36] Production.INFO: ProcessCDR(1,14475275,1,1,2) [2025-02-14 17:30:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:30:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:30:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:31:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:31:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475275', 'tblTempUsageDetail_20' ) start [2025-02-14 17:31:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475275', 'tblTempUsageDetail_20' ) end [2025-02-14 17:31:51] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:31:51] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:31:57] Production.INFO: ==13595== Releasing lock... [2025-02-14 17:31:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:31:57] Production.INFO: 59 MB #Memory Used# [2025-02-14 17:32:41] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:32:41 [end_date_ymd] => 2025-02-14 17:32:41 [RateCDR] => 1 ) [2025-02-14 17:32:41] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:32:41' and `end` < '2025-02-14 17:32:41' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:33:00] Production.INFO: count ==4143 [2025-02-14 17:33:37] Production.ERROR: pbx CDR StartTime 2025-02-14 14:32:41 - End Time 2025-02-14 17:32:41 [2025-02-14 17:33:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:33:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475287', 'tblTempUsageDetail_20' ) start [2025-02-14 17:33:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475287', 'tblTempUsageDetail_20' ) end [2025-02-14 17:33:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475287', 'tblTempVendorCDR_20' ) start [2025-02-14 17:33:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475287', 'tblTempVendorCDR_20' ) end [2025-02-14 17:33:45] Production.INFO: ProcessCDR(1,14475287,1,1,2) [2025-02-14 17:33:45] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:33:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:33:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:34:06] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:34:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475287', 'tblTempUsageDetail_20' ) start [2025-02-14 17:34:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475287', 'tblTempUsageDetail_20' ) end [2025-02-14 17:34:06] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:34:07] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:34:07] Production.INFO: ==13854== Releasing lock... [2025-02-14 17:34:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:34:07] Production.INFO: 59 MB #Memory Used# [2025-02-14 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:35:05 [end_date_ymd] => 2025-02-14 17:35:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:35:05' and `end` < '2025-02-14 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-02-14 17:35:26] Production.INFO: count ==4150 [2025-02-14 17:35:28] Production.ERROR: pbx CDR StartTime 2025-02-14 14:35:05 - End Time 2025-02-14 17:35:05 [2025-02-14 17:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475299', 'tblTempUsageDetail_20' ) start [2025-02-14 17:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475299', 'tblTempUsageDetail_20' ) end [2025-02-14 17:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475299', 'tblTempVendorCDR_20' ) start [2025-02-14 17:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475299', 'tblTempVendorCDR_20' ) end [2025-02-14 17:35:28] Production.INFO: ProcessCDR(1,14475299,1,1,2) [2025-02-14 17:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475299', 'tblTempUsageDetail_20' ) start [2025-02-14 17:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475299', 'tblTempUsageDetail_20' ) end [2025-02-14 17:35:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:35:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:35:33] Production.INFO: ==14120== Releasing lock... [2025-02-14 17:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:35:33] Production.INFO: 59 MB #Memory Used# [2025-02-14 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:36:05 [end_date_ymd] => 2025-02-14 17:36:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:36:05' and `end` < '2025-02-14 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-02-14 17:36:23] Production.INFO: count ==4140 [2025-02-14 17:36:24] Production.ERROR: pbx CDR StartTime 2025-02-14 14:36:05 - End Time 2025-02-14 17:36:05 [2025-02-14 17:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475304', 'tblTempUsageDetail_20' ) start [2025-02-14 17:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475304', 'tblTempUsageDetail_20' ) end [2025-02-14 17:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475304', 'tblTempVendorCDR_20' ) start [2025-02-14 17:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475304', 'tblTempVendorCDR_20' ) end [2025-02-14 17:36:24] Production.INFO: ProcessCDR(1,14475304,1,1,2) [2025-02-14 17:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475304', 'tblTempUsageDetail_20' ) start [2025-02-14 17:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475304', 'tblTempUsageDetail_20' ) end [2025-02-14 17:36:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:36:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:36:30] Production.INFO: ==14203== Releasing lock... [2025-02-14 17:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:36:30] Production.INFO: 59 MB #Memory Used# [2025-02-14 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:37:05 [end_date_ymd] => 2025-02-14 17:37:05 [RateCDR] => 1 ) [2025-02-14 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:37:05' and `end` < '2025-02-14 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:37:18] Production.INFO: count ==4130 [2025-02-14 17:37:20] Production.ERROR: pbx CDR StartTime 2025-02-14 14:37:05 - End Time 2025-02-14 17:37:05 [2025-02-14 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475309', 'tblTempUsageDetail_20' ) start [2025-02-14 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475309', 'tblTempUsageDetail_20' ) end [2025-02-14 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475309', 'tblTempVendorCDR_20' ) start [2025-02-14 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475309', 'tblTempVendorCDR_20' ) end [2025-02-14 17:37:20] Production.INFO: ProcessCDR(1,14475309,1,1,2) [2025-02-14 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475309', 'tblTempUsageDetail_20' ) start [2025-02-14 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475309', 'tblTempUsageDetail_20' ) end [2025-02-14 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:37:25] Production.INFO: ==14284== Releasing lock... [2025-02-14 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:37:25] Production.INFO: 59 MB #Memory Used# [2025-02-14 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:38:05 [end_date_ymd] => 2025-02-14 17:38:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:38:05' and `end` < '2025-02-14 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-02-14 17:38:19] Production.INFO: count ==4120 [2025-02-14 17:38:21] Production.ERROR: pbx CDR StartTime 2025-02-14 14:38:05 - End Time 2025-02-14 17:38:05 [2025-02-14 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475314', 'tblTempUsageDetail_20' ) start [2025-02-14 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475314', 'tblTempUsageDetail_20' ) end [2025-02-14 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475314', 'tblTempVendorCDR_20' ) start [2025-02-14 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475314', 'tblTempVendorCDR_20' ) end [2025-02-14 17:38:21] Production.INFO: ProcessCDR(1,14475314,1,1,2) [2025-02-14 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475314', 'tblTempUsageDetail_20' ) start [2025-02-14 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475314', 'tblTempUsageDetail_20' ) end [2025-02-14 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:38:25] Production.INFO: ==14365== Releasing lock... [2025-02-14 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:38:25] Production.INFO: 59 MB #Memory Used# [2025-02-14 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:39:05 [end_date_ymd] => 2025-02-14 17:39:05 [RateCDR] => 1 ) [2025-02-14 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:39:05' and `end` < '2025-02-14 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:39:21] Production.INFO: count ==4111 [2025-02-14 17:39:22] Production.ERROR: pbx CDR StartTime 2025-02-14 14:39:05 - End Time 2025-02-14 17:39:05 [2025-02-14 17:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475319', 'tblTempUsageDetail_20' ) start [2025-02-14 17:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475319', 'tblTempUsageDetail_20' ) end [2025-02-14 17:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475319', 'tblTempVendorCDR_20' ) start [2025-02-14 17:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475319', 'tblTempVendorCDR_20' ) end [2025-02-14 17:39:23] Production.INFO: ProcessCDR(1,14475319,1,1,2) [2025-02-14 17:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475319', 'tblTempUsageDetail_20' ) start [2025-02-14 17:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475319', 'tblTempUsageDetail_20' ) end [2025-02-14 17:39:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:39:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:39:28] Production.INFO: ==14438== Releasing lock... [2025-02-14 17:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:39:28] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:40:06 [end_date_ymd] => 2025-02-14 17:40:06 [RateCDR] => 1 ) [2025-02-14 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:40:06' and `end` < '2025-02-14 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:40:20] Production.INFO: count ==4098 [2025-02-14 17:40:22] Production.ERROR: pbx CDR StartTime 2025-02-14 14:40:06 - End Time 2025-02-14 17:40:06 [2025-02-14 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475324', 'tblTempUsageDetail_20' ) start [2025-02-14 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475324', 'tblTempUsageDetail_20' ) end [2025-02-14 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475324', 'tblTempVendorCDR_20' ) start [2025-02-14 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475324', 'tblTempVendorCDR_20' ) end [2025-02-14 17:40:22] Production.INFO: ProcessCDR(1,14475324,1,1,2) [2025-02-14 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475324', 'tblTempUsageDetail_20' ) start [2025-02-14 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475324', 'tblTempUsageDetail_20' ) end [2025-02-14 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:40:27] Production.INFO: ==14517== Releasing lock... [2025-02-14 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:40:27] Production.INFO: 58.75 MB #Memory Used# [2025-02-14 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:41:05 [end_date_ymd] => 2025-02-14 17:41:05 [RateCDR] => 1 ) [2025-02-14 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:41:05' and `end` < '2025-02-14 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:41:22] Production.INFO: count ==4091 [2025-02-14 17:41:24] Production.ERROR: pbx CDR StartTime 2025-02-14 14:41:05 - End Time 2025-02-14 17:41:05 [2025-02-14 17:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475330', 'tblTempUsageDetail_20' ) start [2025-02-14 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475330', 'tblTempUsageDetail_20' ) end [2025-02-14 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475330', 'tblTempVendorCDR_20' ) start [2025-02-14 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475330', 'tblTempVendorCDR_20' ) end [2025-02-14 17:41:24] Production.INFO: ProcessCDR(1,14475330,1,1,2) [2025-02-14 17:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475330', 'tblTempUsageDetail_20' ) start [2025-02-14 17:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475330', 'tblTempUsageDetail_20' ) end [2025-02-14 17:41:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:41:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:41:28] Production.INFO: ==14596== Releasing lock... [2025-02-14 17:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:41:28] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:42:05 [end_date_ymd] => 2025-02-14 17:42:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:42:05' and `end` < '2025-02-14 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-02-14 17:42:20] Production.INFO: count ==4087 [2025-02-14 17:42:22] Production.ERROR: pbx CDR StartTime 2025-02-14 14:42:05 - End Time 2025-02-14 17:42:05 [2025-02-14 17:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475335', 'tblTempUsageDetail_20' ) start [2025-02-14 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475335', 'tblTempUsageDetail_20' ) end [2025-02-14 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475335', 'tblTempVendorCDR_20' ) start [2025-02-14 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475335', 'tblTempVendorCDR_20' ) end [2025-02-14 17:42:22] Production.INFO: ProcessCDR(1,14475335,1,1,2) [2025-02-14 17:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475335', 'tblTempUsageDetail_20' ) start [2025-02-14 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475335', 'tblTempUsageDetail_20' ) end [2025-02-14 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:42:26] Production.INFO: ==14671== Releasing lock... [2025-02-14 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:42:26] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:43:06 [end_date_ymd] => 2025-02-14 17:43:06 [RateCDR] => 1 ) [2025-02-14 17:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:43:06' and `end` < '2025-02-14 17:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:43:21] Production.INFO: count ==4087 [2025-02-14 17:43:22] Production.ERROR: pbx CDR StartTime 2025-02-14 14:43:06 - End Time 2025-02-14 17:43:06 [2025-02-14 17:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475340', 'tblTempUsageDetail_20' ) start [2025-02-14 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475340', 'tblTempUsageDetail_20' ) end [2025-02-14 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475340', 'tblTempVendorCDR_20' ) start [2025-02-14 17:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475340', 'tblTempVendorCDR_20' ) end [2025-02-14 17:43:23] Production.INFO: ProcessCDR(1,14475340,1,1,2) [2025-02-14 17:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475340', 'tblTempUsageDetail_20' ) start [2025-02-14 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475340', 'tblTempUsageDetail_20' ) end [2025-02-14 17:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:43:27] Production.INFO: ==14748== Releasing lock... [2025-02-14 17:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:43:27] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:44:05 [end_date_ymd] => 2025-02-14 17:44:05 [RateCDR] => 1 ) [2025-02-14 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:44:05' and `end` < '2025-02-14 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:44:23] Production.INFO: count ==4088 [2025-02-14 17:44:24] Production.ERROR: pbx CDR StartTime 2025-02-14 14:44:05 - End Time 2025-02-14 17:44:05 [2025-02-14 17:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475345', 'tblTempUsageDetail_20' ) start [2025-02-14 17:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475345', 'tblTempUsageDetail_20' ) end [2025-02-14 17:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475345', 'tblTempVendorCDR_20' ) start [2025-02-14 17:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475345', 'tblTempVendorCDR_20' ) end [2025-02-14 17:44:25] Production.INFO: ProcessCDR(1,14475345,1,1,2) [2025-02-14 17:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475345', 'tblTempUsageDetail_20' ) start [2025-02-14 17:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475345', 'tblTempUsageDetail_20' ) end [2025-02-14 17:44:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:44:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:44:28] Production.INFO: ==14821== Releasing lock... [2025-02-14 17:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:44:28] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:45:06 [end_date_ymd] => 2025-02-14 17:45:06 [RateCDR] => 1 ) [2025-02-14 17: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-02-14 14:45:06' and `end` < '2025-02-14 17: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-02-14 17:45:20] Production.INFO: count ==4080 [2025-02-14 17:45:22] Production.ERROR: pbx CDR StartTime 2025-02-14 14:45:06 - End Time 2025-02-14 17:45:06 [2025-02-14 17:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475350', 'tblTempUsageDetail_20' ) start [2025-02-14 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475350', 'tblTempUsageDetail_20' ) end [2025-02-14 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475350', 'tblTempVendorCDR_20' ) start [2025-02-14 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475350', 'tblTempVendorCDR_20' ) end [2025-02-14 17:45:22] Production.INFO: ProcessCDR(1,14475350,1,1,2) [2025-02-14 17:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475350', 'tblTempUsageDetail_20' ) start [2025-02-14 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475350', 'tblTempUsageDetail_20' ) end [2025-02-14 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:45:26] Production.INFO: ==14902== Releasing lock... [2025-02-14 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:45:26] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:46:05 [end_date_ymd] => 2025-02-14 17:46:05 [RateCDR] => 1 ) [2025-02-14 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:46:05' and `end` < '2025-02-14 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:46:21] Production.INFO: count ==4063 [2025-02-14 17:46:22] Production.ERROR: pbx CDR StartTime 2025-02-14 14:46:05 - End Time 2025-02-14 17:46:05 [2025-02-14 17:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475355', 'tblTempUsageDetail_20' ) start [2025-02-14 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475355', 'tblTempUsageDetail_20' ) end [2025-02-14 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475355', 'tblTempVendorCDR_20' ) start [2025-02-14 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475355', 'tblTempVendorCDR_20' ) end [2025-02-14 17:46:22] Production.INFO: ProcessCDR(1,14475355,1,1,2) [2025-02-14 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475355', 'tblTempUsageDetail_20' ) start [2025-02-14 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475355', 'tblTempUsageDetail_20' ) end [2025-02-14 17:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:46:26] Production.INFO: ==14974== Releasing lock... [2025-02-14 17:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:46:26] Production.INFO: 58.25 MB #Memory Used# [2025-02-14 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:47:06 [end_date_ymd] => 2025-02-14 17:47:06 [RateCDR] => 1 ) [2025-02-14 17:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:47:06' and `end` < '2025-02-14 17:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:47:24] Production.INFO: count ==4046 [2025-02-14 17:47:26] Production.ERROR: pbx CDR StartTime 2025-02-14 14:47:06 - End Time 2025-02-14 17:47:06 [2025-02-14 17:47:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475360', 'tblTempUsageDetail_20' ) start [2025-02-14 17:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475360', 'tblTempUsageDetail_20' ) end [2025-02-14 17:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475360', 'tblTempVendorCDR_20' ) start [2025-02-14 17:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475360', 'tblTempVendorCDR_20' ) end [2025-02-14 17:47:26] Production.INFO: ProcessCDR(1,14475360,1,1,2) [2025-02-14 17:47:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475360', 'tblTempUsageDetail_20' ) start [2025-02-14 17:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475360', 'tblTempUsageDetail_20' ) end [2025-02-14 17:47:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:47:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:47:29] Production.INFO: ==15048== Releasing lock... [2025-02-14 17:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:47:29] Production.INFO: 58.25 MB #Memory Used# [2025-02-14 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:48:05 [end_date_ymd] => 2025-02-14 17:48:05 [RateCDR] => 1 ) [2025-02-14 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:48:05' and `end` < '2025-02-14 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:48:23] Production.INFO: count ==4037 [2025-02-14 17:48:25] Production.ERROR: pbx CDR StartTime 2025-02-14 14:48:05 - End Time 2025-02-14 17:48:05 [2025-02-14 17:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475365', 'tblTempUsageDetail_20' ) start [2025-02-14 17:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475365', 'tblTempUsageDetail_20' ) end [2025-02-14 17:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475365', 'tblTempVendorCDR_20' ) start [2025-02-14 17:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475365', 'tblTempVendorCDR_20' ) end [2025-02-14 17:48:25] Production.INFO: ProcessCDR(1,14475365,1,1,2) [2025-02-14 17:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475365', 'tblTempUsageDetail_20' ) start [2025-02-14 17:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475365', 'tblTempUsageDetail_20' ) end [2025-02-14 17:48:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:48:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:48:30] Production.INFO: ==15121== Releasing lock... [2025-02-14 17:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:48:30] Production.INFO: 58.25 MB #Memory Used# [2025-02-14 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:49:06 [end_date_ymd] => 2025-02-14 17:49:06 [RateCDR] => 1 ) [2025-02-14 17:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:49:06' and `end` < '2025-02-14 17:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:49:21] Production.INFO: count ==4034 [2025-02-14 17:49:23] Production.ERROR: pbx CDR StartTime 2025-02-14 14:49:06 - End Time 2025-02-14 17:49:06 [2025-02-14 17:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475370', 'tblTempUsageDetail_20' ) start [2025-02-14 17:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475370', 'tblTempUsageDetail_20' ) end [2025-02-14 17:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475370', 'tblTempVendorCDR_20' ) start [2025-02-14 17:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475370', 'tblTempVendorCDR_20' ) end [2025-02-14 17:49:23] Production.INFO: ProcessCDR(1,14475370,1,1,2) [2025-02-14 17:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475370', 'tblTempUsageDetail_20' ) start [2025-02-14 17:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475370', 'tblTempUsageDetail_20' ) end [2025-02-14 17:49:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:49:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:49:29] Production.INFO: ==15195== Releasing lock... [2025-02-14 17:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:49:29] Production.INFO: 58.25 MB #Memory Used# [2025-02-14 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:50:06 [end_date_ymd] => 2025-02-14 17:50:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:50:06' and `end` < '2025-02-14 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-02-14 17:50:20] Production.INFO: count ==4029 [2025-02-14 17:50:21] Production.ERROR: pbx CDR StartTime 2025-02-14 14:50:06 - End Time 2025-02-14 17:50:06 [2025-02-14 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475376', 'tblTempUsageDetail_20' ) start [2025-02-14 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475376', 'tblTempUsageDetail_20' ) end [2025-02-14 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475376', 'tblTempVendorCDR_20' ) start [2025-02-14 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475376', 'tblTempVendorCDR_20' ) end [2025-02-14 17:50:22] Production.INFO: ProcessCDR(1,14475376,1,1,2) [2025-02-14 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475376', 'tblTempUsageDetail_20' ) start [2025-02-14 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475376', 'tblTempUsageDetail_20' ) end [2025-02-14 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:50:25] Production.INFO: ==15312== Releasing lock... [2025-02-14 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:50:25] Production.INFO: 58.25 MB #Memory Used# [2025-02-14 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:51:06 [end_date_ymd] => 2025-02-14 17:51:06 [RateCDR] => 1 ) [2025-02-14 17:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:51:06' and `end` < '2025-02-14 17:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:51:19] Production.INFO: count ==4028 [2025-02-14 17:51:21] Production.ERROR: pbx CDR StartTime 2025-02-14 14:51:06 - End Time 2025-02-14 17:51:06 [2025-02-14 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475381', 'tblTempUsageDetail_20' ) start [2025-02-14 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475381', 'tblTempUsageDetail_20' ) end [2025-02-14 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475381', 'tblTempVendorCDR_20' ) start [2025-02-14 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475381', 'tblTempVendorCDR_20' ) end [2025-02-14 17:51:21] Production.INFO: ProcessCDR(1,14475381,1,1,2) [2025-02-14 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475381', 'tblTempUsageDetail_20' ) start [2025-02-14 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475381', 'tblTempUsageDetail_20' ) end [2025-02-14 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:51:26] Production.INFO: ==15386== Releasing lock... [2025-02-14 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:51:26] Production.INFO: 58.5 MB #Memory Used# [2025-02-14 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:52:05 [end_date_ymd] => 2025-02-14 17:52:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:52:05' and `end` < '2025-02-14 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-02-14 17:52:21] Production.INFO: count ==4019 [2025-02-14 17:52:23] Production.ERROR: pbx CDR StartTime 2025-02-14 14:52:05 - End Time 2025-02-14 17:52:05 [2025-02-14 17:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475386', 'tblTempUsageDetail_20' ) start [2025-02-14 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475386', 'tblTempUsageDetail_20' ) end [2025-02-14 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475386', 'tblTempVendorCDR_20' ) start [2025-02-14 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475386', 'tblTempVendorCDR_20' ) end [2025-02-14 17:52:23] Production.INFO: ProcessCDR(1,14475386,1,1,2) [2025-02-14 17:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475386', 'tblTempUsageDetail_20' ) start [2025-02-14 17:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475386', 'tblTempUsageDetail_20' ) end [2025-02-14 17:52:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:52:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:52:28] Production.INFO: ==15455== Releasing lock... [2025-02-14 17:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:52:28] Production.INFO: 58 MB #Memory Used# [2025-02-14 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:53:05 [end_date_ymd] => 2025-02-14 17:53:05 [RateCDR] => 1 ) [2025-02-14 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:53:05' and `end` < '2025-02-14 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:53:23] Production.INFO: count ==3989 [2025-02-14 17:53:24] Production.ERROR: pbx CDR StartTime 2025-02-14 14:53:05 - End Time 2025-02-14 17:53:05 [2025-02-14 17:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475391', 'tblTempUsageDetail_20' ) start [2025-02-14 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475391', 'tblTempUsageDetail_20' ) end [2025-02-14 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475391', 'tblTempVendorCDR_20' ) start [2025-02-14 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475391', 'tblTempVendorCDR_20' ) end [2025-02-14 17:53:24] Production.INFO: ProcessCDR(1,14475391,1,1,2) [2025-02-14 17:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475391', 'tblTempUsageDetail_20' ) start [2025-02-14 17:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475391', 'tblTempUsageDetail_20' ) end [2025-02-14 17:53:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:53:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:53:28] Production.INFO: ==15528== Releasing lock... [2025-02-14 17:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:53:28] Production.INFO: 58 MB #Memory Used# [2025-02-14 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:54:05 [end_date_ymd] => 2025-02-14 17:54:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:54:05' and `end` < '2025-02-14 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-02-14 17:54:20] Production.INFO: count ==3980 [2025-02-14 17:54:21] Production.ERROR: pbx CDR StartTime 2025-02-14 14:54:05 - End Time 2025-02-14 17:54:05 [2025-02-14 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475396', 'tblTempUsageDetail_20' ) start [2025-02-14 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475396', 'tblTempUsageDetail_20' ) end [2025-02-14 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475396', 'tblTempVendorCDR_20' ) start [2025-02-14 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475396', 'tblTempVendorCDR_20' ) end [2025-02-14 17:54:21] Production.INFO: ProcessCDR(1,14475396,1,1,2) [2025-02-14 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475396', 'tblTempUsageDetail_20' ) start [2025-02-14 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475396', 'tblTempUsageDetail_20' ) end [2025-02-14 17:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:54:25] Production.INFO: ==15597== Releasing lock... [2025-02-14 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:54:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-14 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:55:06 [end_date_ymd] => 2025-02-14 17:55:06 [RateCDR] => 1 ) [2025-02-14 17:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:55:06' and `end` < '2025-02-14 17:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:55:19] Production.INFO: count ==3964 [2025-02-14 17:55:21] Production.ERROR: pbx CDR StartTime 2025-02-14 14:55:06 - End Time 2025-02-14 17:55:06 [2025-02-14 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475401', 'tblTempUsageDetail_20' ) start [2025-02-14 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475401', 'tblTempUsageDetail_20' ) end [2025-02-14 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475401', 'tblTempVendorCDR_20' ) start [2025-02-14 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475401', 'tblTempVendorCDR_20' ) end [2025-02-14 17:55:21] Production.INFO: ProcessCDR(1,14475401,1,1,2) [2025-02-14 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475401', 'tblTempUsageDetail_20' ) start [2025-02-14 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475401', 'tblTempUsageDetail_20' ) end [2025-02-14 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:55:25] Production.INFO: ==15669== Releasing lock... [2025-02-14 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:55:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-14 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:56:06 [end_date_ymd] => 2025-02-14 17:56:06 [RateCDR] => 1 ) [2025-02-14 17:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:56:06' and `end` < '2025-02-14 17:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:56:20] Production.INFO: count ==3952 [2025-02-14 17:56:21] Production.ERROR: pbx CDR StartTime 2025-02-14 14:56:06 - End Time 2025-02-14 17:56:06 [2025-02-14 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475406', 'tblTempUsageDetail_20' ) start [2025-02-14 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475406', 'tblTempUsageDetail_20' ) end [2025-02-14 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475406', 'tblTempVendorCDR_20' ) start [2025-02-14 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475406', 'tblTempVendorCDR_20' ) end [2025-02-14 17:56:21] Production.INFO: ProcessCDR(1,14475406,1,1,2) [2025-02-14 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475406', 'tblTempUsageDetail_20' ) start [2025-02-14 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475406', 'tblTempUsageDetail_20' ) end [2025-02-14 17:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:56:27] Production.INFO: ==15740== Releasing lock... [2025-02-14 17:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:56:27] Production.INFO: 57.75 MB #Memory Used# [2025-02-14 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:57:05 [end_date_ymd] => 2025-02-14 17:57:05 [RateCDR] => 1 ) [2025-02-14 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 14:57:05' and `end` < '2025-02-14 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 17:57:19] Production.INFO: count ==3946 [2025-02-14 17:57:20] Production.ERROR: pbx CDR StartTime 2025-02-14 14:57:05 - End Time 2025-02-14 17:57:05 [2025-02-14 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475411', 'tblTempUsageDetail_20' ) start [2025-02-14 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475411', 'tblTempUsageDetail_20' ) end [2025-02-14 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475411', 'tblTempVendorCDR_20' ) start [2025-02-14 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475411', 'tblTempVendorCDR_20' ) end [2025-02-14 17:57:20] Production.INFO: ProcessCDR(1,14475411,1,1,2) [2025-02-14 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475411', 'tblTempUsageDetail_20' ) start [2025-02-14 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475411', 'tblTempUsageDetail_20' ) end [2025-02-14 17:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:57:24] Production.INFO: ==15810== Releasing lock... [2025-02-14 17:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:57:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-14 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:58:05 [end_date_ymd] => 2025-02-14 17:58:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:58:05' and `end` < '2025-02-14 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-02-14 17:58:19] Production.INFO: count ==3937 [2025-02-14 17:58:21] Production.ERROR: pbx CDR StartTime 2025-02-14 14:58:05 - End Time 2025-02-14 17:58:05 [2025-02-14 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475416', 'tblTempUsageDetail_20' ) start [2025-02-14 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475416', 'tblTempUsageDetail_20' ) end [2025-02-14 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475416', 'tblTempVendorCDR_20' ) start [2025-02-14 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475416', 'tblTempVendorCDR_20' ) end [2025-02-14 17:58:21] Production.INFO: ProcessCDR(1,14475416,1,1,2) [2025-02-14 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475416', 'tblTempUsageDetail_20' ) start [2025-02-14 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475416', 'tblTempUsageDetail_20' ) end [2025-02-14 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:58:25] Production.INFO: ==15885== Releasing lock... [2025-02-14 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:58:25] Production.INFO: 57.5 MB #Memory Used# [2025-02-14 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 14:59:05 [end_date_ymd] => 2025-02-14 17:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 14:59:05' and `end` < '2025-02-14 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-02-14 17:59:20] Production.INFO: count ==3911 [2025-02-14 17:59:21] Production.ERROR: pbx CDR StartTime 2025-02-14 14:59:05 - End Time 2025-02-14 17:59:05 [2025-02-14 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475421', 'tblTempUsageDetail_20' ) start [2025-02-14 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475421', 'tblTempUsageDetail_20' ) end [2025-02-14 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475421', 'tblTempVendorCDR_20' ) start [2025-02-14 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475421', 'tblTempVendorCDR_20' ) end [2025-02-14 17:59:21] Production.INFO: ProcessCDR(1,14475421,1,1,2) [2025-02-14 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475421', 'tblTempUsageDetail_20' ) start [2025-02-14 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475421', 'tblTempUsageDetail_20' ) end [2025-02-14 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 17:59:25] Production.INFO: ==15961== Releasing lock... [2025-02-14 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 17:59:25] Production.INFO: 57.25 MB #Memory Used# [2025-02-14 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:00:06 [end_date_ymd] => 2025-02-14 18:00:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:00:06' and `end` < '2025-02-14 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:00:30] Production.INFO: count ==3906 [2025-02-14 18:00:31] Production.ERROR: pbx CDR StartTime 2025-02-14 15:00:06 - End Time 2025-02-14 18:00:06 [2025-02-14 18:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475427', 'tblTempUsageDetail_20' ) start [2025-02-14 18:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475427', 'tblTempUsageDetail_20' ) end [2025-02-14 18:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475427', 'tblTempVendorCDR_20' ) start [2025-02-14 18:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475427', 'tblTempVendorCDR_20' ) end [2025-02-14 18:00:32] Production.INFO: ProcessCDR(1,14475427,1,1,2) [2025-02-14 18:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475427', 'tblTempUsageDetail_20' ) start [2025-02-14 18:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475427', 'tblTempUsageDetail_20' ) end [2025-02-14 18:00:37] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:00:37] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:00:37] Production.INFO: ==16037== Releasing lock... [2025-02-14 18:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:00:37] Production.INFO: 57.25 MB #Memory Used# [2025-02-14 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:01:05 [end_date_ymd] => 2025-02-14 18:01:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:01:05' and `end` < '2025-02-14 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-02-14 18:01:31] Production.INFO: count ==3900 [2025-02-14 18:01:33] Production.ERROR: pbx CDR StartTime 2025-02-14 15:01:05 - End Time 2025-02-14 18:01:05 [2025-02-14 18:01:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475432', 'tblTempUsageDetail_20' ) start [2025-02-14 18:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475432', 'tblTempUsageDetail_20' ) end [2025-02-14 18:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475432', 'tblTempVendorCDR_20' ) start [2025-02-14 18:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475432', 'tblTempVendorCDR_20' ) end [2025-02-14 18:01:33] Production.INFO: ProcessCDR(1,14475432,1,1,2) [2025-02-14 18:01:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:01:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:01:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:01:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:01:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475432', 'tblTempUsageDetail_20' ) start [2025-02-14 18:01:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475432', 'tblTempUsageDetail_20' ) end [2025-02-14 18:01:38] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:01:38] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:01:38] Production.INFO: ==16122== Releasing lock... [2025-02-14 18:01:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:01:38] Production.INFO: 57 MB #Memory Used# [2025-02-14 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:02:06 [end_date_ymd] => 2025-02-14 18:02:06 [RateCDR] => 1 ) [2025-02-14 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:02:06' and `end` < '2025-02-14 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:02:25] Production.INFO: count ==3907 [2025-02-14 18:02:27] Production.ERROR: pbx CDR StartTime 2025-02-14 15:02:06 - End Time 2025-02-14 18:02:06 [2025-02-14 18:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475437', 'tblTempUsageDetail_20' ) start [2025-02-14 18:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475437', 'tblTempUsageDetail_20' ) end [2025-02-14 18:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475437', 'tblTempVendorCDR_20' ) start [2025-02-14 18:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475437', 'tblTempVendorCDR_20' ) end [2025-02-14 18:02:27] Production.INFO: ProcessCDR(1,14475437,1,1,2) [2025-02-14 18:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475437', 'tblTempUsageDetail_20' ) start [2025-02-14 18:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475437', 'tblTempUsageDetail_20' ) end [2025-02-14 18:02:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:02:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:02:31] Production.INFO: ==16193== Releasing lock... [2025-02-14 18:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:02:31] Production.INFO: 57.25 MB #Memory Used# [2025-02-14 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:03:05 [end_date_ymd] => 2025-02-14 18:03:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:03:05' and `end` < '2025-02-14 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-02-14 18:03:23] Production.INFO: count ==3893 [2025-02-14 18:03:24] Production.ERROR: pbx CDR StartTime 2025-02-14 15:03:05 - End Time 2025-02-14 18:03:05 [2025-02-14 18:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475442', 'tblTempUsageDetail_20' ) start [2025-02-14 18:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475442', 'tblTempUsageDetail_20' ) end [2025-02-14 18:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475442', 'tblTempVendorCDR_20' ) start [2025-02-14 18:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475442', 'tblTempVendorCDR_20' ) end [2025-02-14 18:03:24] Production.INFO: ProcessCDR(1,14475442,1,1,2) [2025-02-14 18:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475442', 'tblTempUsageDetail_20' ) start [2025-02-14 18:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475442', 'tblTempUsageDetail_20' ) end [2025-02-14 18:03:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:03:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:03:28] Production.INFO: ==16263== Releasing lock... [2025-02-14 18:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:03:28] Production.INFO: 57.25 MB #Memory Used# [2025-02-14 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:04:06 [end_date_ymd] => 2025-02-14 18:04:06 [RateCDR] => 1 ) [2025-02-14 18:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:04:06' and `end` < '2025-02-14 18:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:04:22] Production.INFO: count ==3887 [2025-02-14 18:04:23] Production.ERROR: pbx CDR StartTime 2025-02-14 15:04:06 - End Time 2025-02-14 18:04:06 [2025-02-14 18:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475447', 'tblTempUsageDetail_20' ) start [2025-02-14 18:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475447', 'tblTempUsageDetail_20' ) end [2025-02-14 18:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475447', 'tblTempVendorCDR_20' ) start [2025-02-14 18:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475447', 'tblTempVendorCDR_20' ) end [2025-02-14 18:04:24] Production.INFO: ProcessCDR(1,14475447,1,1,2) [2025-02-14 18:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475447', 'tblTempUsageDetail_20' ) start [2025-02-14 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475447', 'tblTempUsageDetail_20' ) end [2025-02-14 18:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:04:27] Production.INFO: ==16335== Releasing lock... [2025-02-14 18:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:04:27] Production.INFO: 57 MB #Memory Used# [2025-02-14 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:05:05 [end_date_ymd] => 2025-02-14 18:05:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:05:05' and `end` < '2025-02-14 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-02-14 18:05:23] Production.INFO: count ==3855 [2025-02-14 18:05:25] Production.ERROR: pbx CDR StartTime 2025-02-14 15:05:05 - End Time 2025-02-14 18:05:05 [2025-02-14 18:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475452', 'tblTempUsageDetail_20' ) start [2025-02-14 18:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475452', 'tblTempUsageDetail_20' ) end [2025-02-14 18:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475452', 'tblTempVendorCDR_20' ) start [2025-02-14 18:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475452', 'tblTempVendorCDR_20' ) end [2025-02-14 18:05:25] Production.INFO: ProcessCDR(1,14475452,1,1,2) [2025-02-14 18:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475452', 'tblTempUsageDetail_20' ) start [2025-02-14 18:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475452', 'tblTempUsageDetail_20' ) end [2025-02-14 18:05:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:05:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:05:30] Production.INFO: ==16442== Releasing lock... [2025-02-14 18:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:05:30] Production.INFO: 56.75 MB #Memory Used# [2025-02-14 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:06:06 [end_date_ymd] => 2025-02-14 18:06:06 [RateCDR] => 1 ) [2025-02-14 18:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:06:06' and `end` < '2025-02-14 18:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:06:20] Production.INFO: count ==3847 [2025-02-14 18:06:22] Production.ERROR: pbx CDR StartTime 2025-02-14 15:06:06 - End Time 2025-02-14 18:06:06 [2025-02-14 18:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475457', 'tblTempUsageDetail_20' ) start [2025-02-14 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475457', 'tblTempUsageDetail_20' ) end [2025-02-14 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475457', 'tblTempVendorCDR_20' ) start [2025-02-14 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475457', 'tblTempVendorCDR_20' ) end [2025-02-14 18:06:22] Production.INFO: ProcessCDR(1,14475457,1,1,2) [2025-02-14 18:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475457', 'tblTempUsageDetail_20' ) start [2025-02-14 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475457', 'tblTempUsageDetail_20' ) end [2025-02-14 18:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:06:26] Production.INFO: ==16513== Releasing lock... [2025-02-14 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:06:26] Production.INFO: 56.75 MB #Memory Used# [2025-02-14 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:07:05 [end_date_ymd] => 2025-02-14 18:07:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:07:05' and `end` < '2025-02-14 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-02-14 18:07:22] Production.INFO: count ==3837 [2025-02-14 18:07:24] Production.ERROR: pbx CDR StartTime 2025-02-14 15:07:05 - End Time 2025-02-14 18:07:05 [2025-02-14 18:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475462', 'tblTempUsageDetail_20' ) start [2025-02-14 18:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475462', 'tblTempUsageDetail_20' ) end [2025-02-14 18:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475462', 'tblTempVendorCDR_20' ) start [2025-02-14 18:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475462', 'tblTempVendorCDR_20' ) end [2025-02-14 18:07:24] Production.INFO: ProcessCDR(1,14475462,1,1,2) [2025-02-14 18:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475462', 'tblTempUsageDetail_20' ) start [2025-02-14 18:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475462', 'tblTempUsageDetail_20' ) end [2025-02-14 18:07:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:07:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:07:29] Production.INFO: ==16586== Releasing lock... [2025-02-14 18:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:07:29] Production.INFO: 56.75 MB #Memory Used# [2025-02-14 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:08:05 [end_date_ymd] => 2025-02-14 18:08:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:08:05' and `end` < '2025-02-14 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-02-14 18:08:25] Production.INFO: count ==3836 [2025-02-14 18:08:26] Production.ERROR: pbx CDR StartTime 2025-02-14 15:08:05 - End Time 2025-02-14 18:08:05 [2025-02-14 18:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475467', 'tblTempUsageDetail_20' ) start [2025-02-14 18:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475467', 'tblTempUsageDetail_20' ) end [2025-02-14 18:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475467', 'tblTempVendorCDR_20' ) start [2025-02-14 18:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475467', 'tblTempVendorCDR_20' ) end [2025-02-14 18:08:26] Production.INFO: ProcessCDR(1,14475467,1,1,2) [2025-02-14 18:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475467', 'tblTempUsageDetail_20' ) start [2025-02-14 18:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475467', 'tblTempUsageDetail_20' ) end [2025-02-14 18:08:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:08:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:08:30] Production.INFO: ==16659== Releasing lock... [2025-02-14 18:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:08:30] Production.INFO: 56.75 MB #Memory Used# [2025-02-14 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:09:05 [end_date_ymd] => 2025-02-14 18:09:05 [RateCDR] => 1 ) [2025-02-14 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:09:05' and `end` < '2025-02-14 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:09:19] Production.INFO: count ==3820 [2025-02-14 18:09:20] Production.ERROR: pbx CDR StartTime 2025-02-14 15:09:05 - End Time 2025-02-14 18:09:05 [2025-02-14 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475472', 'tblTempUsageDetail_20' ) start [2025-02-14 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475472', 'tblTempUsageDetail_20' ) end [2025-02-14 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475472', 'tblTempVendorCDR_20' ) start [2025-02-14 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475472', 'tblTempVendorCDR_20' ) end [2025-02-14 18:09:20] Production.INFO: ProcessCDR(1,14475472,1,1,2) [2025-02-14 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475472', 'tblTempUsageDetail_20' ) start [2025-02-14 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475472', 'tblTempUsageDetail_20' ) end [2025-02-14 18:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:09:24] Production.INFO: ==16728== Releasing lock... [2025-02-14 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:09:24] Production.INFO: 57.25 MB #Memory Used# [2025-02-14 18:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:10:07 [end_date_ymd] => 2025-02-14 18:10:07 [RateCDR] => 1 ) [2025-02-14 18:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:10:07' and `end` < '2025-02-14 18:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:10:26] Production.INFO: count ==3833 [2025-02-14 18:10:27] Production.ERROR: pbx CDR StartTime 2025-02-14 15:10:07 - End Time 2025-02-14 18:10:07 [2025-02-14 18:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475478', 'tblTempUsageDetail_20' ) start [2025-02-14 18:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475478', 'tblTempUsageDetail_20' ) end [2025-02-14 18:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475478', 'tblTempVendorCDR_20' ) start [2025-02-14 18:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475478', 'tblTempVendorCDR_20' ) end [2025-02-14 18:10:27] Production.INFO: ProcessCDR(1,14475478,1,1,2) [2025-02-14 18:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475478', 'tblTempUsageDetail_20' ) start [2025-02-14 18:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475478', 'tblTempUsageDetail_20' ) end [2025-02-14 18:10:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:10:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:10:33] Production.INFO: ==16807== Releasing lock... [2025-02-14 18:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:10:33] Production.INFO: 56.75 MB #Memory Used# [2025-02-14 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:11:05 [end_date_ymd] => 2025-02-14 18:11:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:11:05' and `end` < '2025-02-14 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-02-14 18:11:21] Production.INFO: count ==3865 [2025-02-14 18:11:23] Production.ERROR: pbx CDR StartTime 2025-02-14 15:11:05 - End Time 2025-02-14 18:11:05 [2025-02-14 18:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475483', 'tblTempUsageDetail_20' ) start [2025-02-14 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475483', 'tblTempUsageDetail_20' ) end [2025-02-14 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475483', 'tblTempVendorCDR_20' ) start [2025-02-14 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475483', 'tblTempVendorCDR_20' ) end [2025-02-14 18:11:23] Production.INFO: ProcessCDR(1,14475483,1,1,2) [2025-02-14 18:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475483', 'tblTempUsageDetail_20' ) start [2025-02-14 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475483', 'tblTempUsageDetail_20' ) end [2025-02-14 18:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:11:26] Production.INFO: ==16881== Releasing lock... [2025-02-14 18:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:11:26] Production.INFO: 56.75 MB #Memory Used# [2025-02-14 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:12:06 [end_date_ymd] => 2025-02-14 18:12:06 [RateCDR] => 1 ) [2025-02-14 18:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:12:06' and `end` < '2025-02-14 18:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:12:26] Production.INFO: count ==3876 [2025-02-14 18:12:28] Production.ERROR: pbx CDR StartTime 2025-02-14 15:12:06 - End Time 2025-02-14 18:12:06 [2025-02-14 18:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475488', 'tblTempUsageDetail_20' ) start [2025-02-14 18:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475488', 'tblTempUsageDetail_20' ) end [2025-02-14 18:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475488', 'tblTempVendorCDR_20' ) start [2025-02-14 18:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475488', 'tblTempVendorCDR_20' ) end [2025-02-14 18:12:28] Production.INFO: ProcessCDR(1,14475488,1,1,2) [2025-02-14 18:12:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475488', 'tblTempUsageDetail_20' ) start [2025-02-14 18:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475488', 'tblTempUsageDetail_20' ) end [2025-02-14 18:12:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:12:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:12:31] Production.INFO: ==16951== Releasing lock... [2025-02-14 18:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:12:31] Production.INFO: 57 MB #Memory Used# [2025-02-14 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:13:05 [end_date_ymd] => 2025-02-14 18:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:13:05' and `end` < '2025-02-14 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-02-14 18:13:23] Production.INFO: count ==3863 [2025-02-14 18:13:24] Production.ERROR: pbx CDR StartTime 2025-02-14 15:13:05 - End Time 2025-02-14 18:13:05 [2025-02-14 18:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475493', 'tblTempUsageDetail_20' ) start [2025-02-14 18:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475493', 'tblTempUsageDetail_20' ) end [2025-02-14 18:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475493', 'tblTempVendorCDR_20' ) start [2025-02-14 18:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475493', 'tblTempVendorCDR_20' ) end [2025-02-14 18:13:24] Production.INFO: ProcessCDR(1,14475493,1,1,2) [2025-02-14 18:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475493', 'tblTempUsageDetail_20' ) start [2025-02-14 18:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475493', 'tblTempUsageDetail_20' ) end [2025-02-14 18:13:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:13:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:13:29] Production.INFO: ==17027== Releasing lock... [2025-02-14 18:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:13:29] Production.INFO: 57 MB #Memory Used# [2025-02-14 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:14:06 [end_date_ymd] => 2025-02-14 18:14:06 [RateCDR] => 1 ) [2025-02-14 18:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:14:06' and `end` < '2025-02-14 18:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:14:22] Production.INFO: count ==3872 [2025-02-14 18:14:23] Production.ERROR: pbx CDR StartTime 2025-02-14 15:14:06 - End Time 2025-02-14 18:14:06 [2025-02-14 18:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475498', 'tblTempUsageDetail_20' ) start [2025-02-14 18:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475498', 'tblTempUsageDetail_20' ) end [2025-02-14 18:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475498', 'tblTempVendorCDR_20' ) start [2025-02-14 18:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475498', 'tblTempVendorCDR_20' ) end [2025-02-14 18:14:23] Production.INFO: ProcessCDR(1,14475498,1,1,2) [2025-02-14 18:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475498', 'tblTempUsageDetail_20' ) start [2025-02-14 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475498', 'tblTempUsageDetail_20' ) end [2025-02-14 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:14:26] Production.INFO: ==17098== Releasing lock... [2025-02-14 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:14:26] Production.INFO: 57 MB #Memory Used# [2025-02-14 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:15:05 [end_date_ymd] => 2025-02-14 18:15:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:15:05' and `end` < '2025-02-14 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-02-14 18:15:28] Production.INFO: count ==3841 [2025-02-14 18:15:29] Production.ERROR: pbx CDR StartTime 2025-02-14 15:15:05 - End Time 2025-02-14 18:15:05 [2025-02-14 18:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475503', 'tblTempUsageDetail_20' ) start [2025-02-14 18:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475503', 'tblTempUsageDetail_20' ) end [2025-02-14 18:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475503', 'tblTempVendorCDR_20' ) start [2025-02-14 18:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475503', 'tblTempVendorCDR_20' ) end [2025-02-14 18:15:29] Production.INFO: ProcessCDR(1,14475503,1,1,2) [2025-02-14 18:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475503', 'tblTempUsageDetail_20' ) start [2025-02-14 18:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475503', 'tblTempUsageDetail_20' ) end [2025-02-14 18:15:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:15:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:15:34] Production.INFO: ==17172== Releasing lock... [2025-02-14 18:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:15:34] Production.INFO: 56.75 MB #Memory Used# [2025-02-14 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:16:06 [end_date_ymd] => 2025-02-14 18:16:06 [RateCDR] => 1 ) [2025-02-14 18:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:16:06' and `end` < '2025-02-14 18:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:16:24] Production.INFO: count ==3826 [2025-02-14 18:16:25] Production.ERROR: pbx CDR StartTime 2025-02-14 15:16:06 - End Time 2025-02-14 18:16:06 [2025-02-14 18:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475508', 'tblTempUsageDetail_20' ) start [2025-02-14 18:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475508', 'tblTempUsageDetail_20' ) end [2025-02-14 18:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475508', 'tblTempVendorCDR_20' ) start [2025-02-14 18:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475508', 'tblTempVendorCDR_20' ) end [2025-02-14 18:16:25] Production.INFO: ProcessCDR(1,14475508,1,1,2) [2025-02-14 18:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475508', 'tblTempUsageDetail_20' ) start [2025-02-14 18:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475508', 'tblTempUsageDetail_20' ) end [2025-02-14 18:16:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:16:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:16:30] Production.INFO: ==17244== Releasing lock... [2025-02-14 18:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:16:30] Production.INFO: 56.5 MB #Memory Used# [2025-02-14 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:17:05 [end_date_ymd] => 2025-02-14 18:17:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:17:05' and `end` < '2025-02-14 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-02-14 18:17:28] Production.INFO: count ==3815 [2025-02-14 18:17:30] Production.ERROR: pbx CDR StartTime 2025-02-14 15:17:05 - End Time 2025-02-14 18:17:05 [2025-02-14 18:17:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475513', 'tblTempUsageDetail_20' ) start [2025-02-14 18:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475513', 'tblTempUsageDetail_20' ) end [2025-02-14 18:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475513', 'tblTempVendorCDR_20' ) start [2025-02-14 18:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475513', 'tblTempVendorCDR_20' ) end [2025-02-14 18:17:30] Production.INFO: ProcessCDR(1,14475513,1,1,2) [2025-02-14 18:17:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:17:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:17:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:17:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475513', 'tblTempUsageDetail_20' ) start [2025-02-14 18:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475513', 'tblTempUsageDetail_20' ) end [2025-02-14 18:17:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:17:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:17:34] Production.INFO: ==17316== Releasing lock... [2025-02-14 18:17:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:17:34] Production.INFO: 56.5 MB #Memory Used# [2025-02-14 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:18:05 [end_date_ymd] => 2025-02-14 18:18:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:18:05' and `end` < '2025-02-14 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-02-14 18:18:22] Production.INFO: count ==3807 [2025-02-14 18:18:23] Production.ERROR: pbx CDR StartTime 2025-02-14 15:18:05 - End Time 2025-02-14 18:18:05 [2025-02-14 18:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475518', 'tblTempUsageDetail_20' ) start [2025-02-14 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475518', 'tblTempUsageDetail_20' ) end [2025-02-14 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475518', 'tblTempVendorCDR_20' ) start [2025-02-14 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475518', 'tblTempVendorCDR_20' ) end [2025-02-14 18:18:23] Production.INFO: ProcessCDR(1,14475518,1,1,2) [2025-02-14 18:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475518', 'tblTempUsageDetail_20' ) start [2025-02-14 18:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475518', 'tblTempUsageDetail_20' ) end [2025-02-14 18:18:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:18:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:18:28] Production.INFO: ==17387== Releasing lock... [2025-02-14 18:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:18:28] Production.INFO: 56.5 MB #Memory Used# [2025-02-14 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:19:05 [end_date_ymd] => 2025-02-14 18:19:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:19:05' and `end` < '2025-02-14 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-02-14 18:19:25] Production.INFO: count ==3796 [2025-02-14 18:19:26] Production.ERROR: pbx CDR StartTime 2025-02-14 15:19:05 - End Time 2025-02-14 18:19:05 [2025-02-14 18:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475523', 'tblTempUsageDetail_20' ) start [2025-02-14 18:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475523', 'tblTempUsageDetail_20' ) end [2025-02-14 18:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475523', 'tblTempVendorCDR_20' ) start [2025-02-14 18:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475523', 'tblTempVendorCDR_20' ) end [2025-02-14 18:19:26] Production.INFO: ProcessCDR(1,14475523,1,1,2) [2025-02-14 18:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475523', 'tblTempUsageDetail_20' ) start [2025-02-14 18:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475523', 'tblTempUsageDetail_20' ) end [2025-02-14 18:19:30] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:19:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:19:30] Production.INFO: ==17458== Releasing lock... [2025-02-14 18:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:19:30] Production.INFO: 56.25 MB #Memory Used# [2025-02-14 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:20:06 [end_date_ymd] => 2025-02-14 18:20:06 [RateCDR] => 1 ) [2025-02-14 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:20:06' and `end` < '2025-02-14 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:20:23] Production.INFO: count ==3787 [2025-02-14 18:20:24] Production.ERROR: pbx CDR StartTime 2025-02-14 15:20:06 - End Time 2025-02-14 18:20:06 [2025-02-14 18:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475528', 'tblTempUsageDetail_20' ) start [2025-02-14 18:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475528', 'tblTempUsageDetail_20' ) end [2025-02-14 18:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475528', 'tblTempVendorCDR_20' ) start [2025-02-14 18:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475528', 'tblTempVendorCDR_20' ) end [2025-02-14 18:20:25] Production.INFO: ProcessCDR(1,14475528,1,1,2) [2025-02-14 18:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475528', 'tblTempUsageDetail_20' ) start [2025-02-14 18:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475528', 'tblTempUsageDetail_20' ) end [2025-02-14 18:20:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:20:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:20:29] Production.INFO: ==17531== Releasing lock... [2025-02-14 18:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:20:29] Production.INFO: 56.25 MB #Memory Used# [2025-02-14 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:21:05 [end_date_ymd] => 2025-02-14 18:21:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:21:05' and `end` < '2025-02-14 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-02-14 18:21:19] Production.INFO: count ==3755 [2025-02-14 18:21:20] Production.ERROR: pbx CDR StartTime 2025-02-14 15:21:05 - End Time 2025-02-14 18:21:05 [2025-02-14 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475534', 'tblTempUsageDetail_20' ) start [2025-02-14 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475534', 'tblTempUsageDetail_20' ) end [2025-02-14 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475534', 'tblTempVendorCDR_20' ) start [2025-02-14 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475534', 'tblTempVendorCDR_20' ) end [2025-02-14 18:21:20] Production.INFO: ProcessCDR(1,14475534,1,1,2) [2025-02-14 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475534', 'tblTempUsageDetail_20' ) start [2025-02-14 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475534', 'tblTempUsageDetail_20' ) end [2025-02-14 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:21:25] Production.INFO: ==17643== Releasing lock... [2025-02-14 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:21:25] Production.INFO: 56 MB #Memory Used# [2025-02-14 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:22:05 [end_date_ymd] => 2025-02-14 18:22:05 [RateCDR] => 1 ) [2025-02-14 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:22:05' and `end` < '2025-02-14 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:22:20] Production.INFO: count ==3754 [2025-02-14 18:22:21] Production.ERROR: pbx CDR StartTime 2025-02-14 15:22:05 - End Time 2025-02-14 18:22:05 [2025-02-14 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475539', 'tblTempUsageDetail_20' ) start [2025-02-14 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475539', 'tblTempUsageDetail_20' ) end [2025-02-14 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475539', 'tblTempVendorCDR_20' ) start [2025-02-14 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475539', 'tblTempVendorCDR_20' ) end [2025-02-14 18:22:21] Production.INFO: ProcessCDR(1,14475539,1,1,2) [2025-02-14 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475539', 'tblTempUsageDetail_20' ) start [2025-02-14 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475539', 'tblTempUsageDetail_20' ) end [2025-02-14 18:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:22:26] Production.INFO: ==17714== Releasing lock... [2025-02-14 18:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:22:26] Production.INFO: 56 MB #Memory Used# [2025-02-14 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:23:05 [end_date_ymd] => 2025-02-14 18:23:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:23:05' and `end` < '2025-02-14 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-02-14 18:23:19] Production.INFO: count ==3748 [2025-02-14 18:23:21] Production.ERROR: pbx CDR StartTime 2025-02-14 15:23:05 - End Time 2025-02-14 18:23:05 [2025-02-14 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475544', 'tblTempUsageDetail_20' ) start [2025-02-14 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475544', 'tblTempUsageDetail_20' ) end [2025-02-14 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475544', 'tblTempVendorCDR_20' ) start [2025-02-14 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475544', 'tblTempVendorCDR_20' ) end [2025-02-14 18:23:21] Production.INFO: ProcessCDR(1,14475544,1,1,2) [2025-02-14 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475544', 'tblTempUsageDetail_20' ) start [2025-02-14 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475544', 'tblTempUsageDetail_20' ) end [2025-02-14 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:23:25] Production.INFO: ==17787== Releasing lock... [2025-02-14 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:23:25] Production.INFO: 56 MB #Memory Used# [2025-02-14 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:24:05 [end_date_ymd] => 2025-02-14 18:24:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:24:05' and `end` < '2025-02-14 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-02-14 18:24:19] Production.INFO: count ==3743 [2025-02-14 18:24:20] Production.ERROR: pbx CDR StartTime 2025-02-14 15:24:05 - End Time 2025-02-14 18:24:05 [2025-02-14 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475549', 'tblTempUsageDetail_20' ) start [2025-02-14 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475549', 'tblTempUsageDetail_20' ) end [2025-02-14 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475549', 'tblTempVendorCDR_20' ) start [2025-02-14 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475549', 'tblTempVendorCDR_20' ) end [2025-02-14 18:24:20] Production.INFO: ProcessCDR(1,14475549,1,1,2) [2025-02-14 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475549', 'tblTempUsageDetail_20' ) start [2025-02-14 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475549', 'tblTempUsageDetail_20' ) end [2025-02-14 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:24:25] Production.INFO: ==17858== Releasing lock... [2025-02-14 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:24:25] Production.INFO: 56 MB #Memory Used# [2025-02-14 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:25:05 [end_date_ymd] => 2025-02-14 18:25:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:25:05' and `end` < '2025-02-14 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-02-14 18:25:19] Production.INFO: count ==3740 [2025-02-14 18:25:20] Production.ERROR: pbx CDR StartTime 2025-02-14 15:25:05 - End Time 2025-02-14 18:25:05 [2025-02-14 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475554', 'tblTempUsageDetail_20' ) start [2025-02-14 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475554', 'tblTempUsageDetail_20' ) end [2025-02-14 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475554', 'tblTempVendorCDR_20' ) start [2025-02-14 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475554', 'tblTempVendorCDR_20' ) end [2025-02-14 18:25:20] Production.INFO: ProcessCDR(1,14475554,1,1,2) [2025-02-14 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475554', 'tblTempUsageDetail_20' ) start [2025-02-14 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475554', 'tblTempUsageDetail_20' ) end [2025-02-14 18:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:25:23] Production.INFO: ==17928== Releasing lock... [2025-02-14 18:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:25:23] Production.INFO: 56 MB #Memory Used# [2025-02-14 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:26:05 [end_date_ymd] => 2025-02-14 18:26:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:26:05' and `end` < '2025-02-14 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-02-14 18:26:21] Production.INFO: count ==3737 [2025-02-14 18:26:22] Production.ERROR: pbx CDR StartTime 2025-02-14 15:26:05 - End Time 2025-02-14 18:26:05 [2025-02-14 18:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475559', 'tblTempUsageDetail_20' ) start [2025-02-14 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475559', 'tblTempUsageDetail_20' ) end [2025-02-14 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475559', 'tblTempVendorCDR_20' ) start [2025-02-14 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475559', 'tblTempVendorCDR_20' ) end [2025-02-14 18:26:22] Production.INFO: ProcessCDR(1,14475559,1,1,2) [2025-02-14 18:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475559', 'tblTempUsageDetail_20' ) start [2025-02-14 18:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475559', 'tblTempUsageDetail_20' ) end [2025-02-14 18:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:26:27] Production.INFO: ==18002== Releasing lock... [2025-02-14 18:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:26:27] Production.INFO: 56 MB #Memory Used# [2025-02-14 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:27:05 [end_date_ymd] => 2025-02-14 18:27:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:27:05' and `end` < '2025-02-14 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-02-14 18:27:19] Production.INFO: count ==3740 [2025-02-14 18:27:20] Production.ERROR: pbx CDR StartTime 2025-02-14 15:27:05 - End Time 2025-02-14 18:27:05 [2025-02-14 18:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475564', 'tblTempUsageDetail_20' ) start [2025-02-14 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475564', 'tblTempUsageDetail_20' ) end [2025-02-14 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475564', 'tblTempVendorCDR_20' ) start [2025-02-14 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475564', 'tblTempVendorCDR_20' ) end [2025-02-14 18:27:20] Production.INFO: ProcessCDR(1,14475564,1,1,2) [2025-02-14 18:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475564', 'tblTempUsageDetail_20' ) start [2025-02-14 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475564', 'tblTempUsageDetail_20' ) end [2025-02-14 18:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:27:23] Production.INFO: ==18073== Releasing lock... [2025-02-14 18:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:27:23] Production.INFO: 56.25 MB #Memory Used# [2025-02-14 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:28:05 [end_date_ymd] => 2025-02-14 18:28:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:28:05' and `end` < '2025-02-14 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-02-14 18:28:19] Production.INFO: count ==3741 [2025-02-14 18:28:20] Production.ERROR: pbx CDR StartTime 2025-02-14 15:28:05 - End Time 2025-02-14 18:28:05 [2025-02-14 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475569', 'tblTempUsageDetail_20' ) start [2025-02-14 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475569', 'tblTempUsageDetail_20' ) end [2025-02-14 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475569', 'tblTempVendorCDR_20' ) start [2025-02-14 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475569', 'tblTempVendorCDR_20' ) end [2025-02-14 18:28:20] Production.INFO: ProcessCDR(1,14475569,1,1,2) [2025-02-14 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475569', 'tblTempUsageDetail_20' ) start [2025-02-14 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475569', 'tblTempUsageDetail_20' ) end [2025-02-14 18:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:28:23] Production.INFO: ==18147== Releasing lock... [2025-02-14 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:28:23] Production.INFO: 56 MB #Memory Used# [2025-02-14 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:29:05 [end_date_ymd] => 2025-02-14 18:29:05 [RateCDR] => 1 ) [2025-02-14 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:29:05' and `end` < '2025-02-14 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:29:22] Production.INFO: count ==3737 [2025-02-14 18:29:23] Production.ERROR: pbx CDR StartTime 2025-02-14 15:29:05 - End Time 2025-02-14 18:29:05 [2025-02-14 18:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475574', 'tblTempUsageDetail_20' ) start [2025-02-14 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475574', 'tblTempUsageDetail_20' ) end [2025-02-14 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475574', 'tblTempVendorCDR_20' ) start [2025-02-14 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475574', 'tblTempVendorCDR_20' ) end [2025-02-14 18:29:23] Production.INFO: ProcessCDR(1,14475574,1,1,2) [2025-02-14 18:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475574', 'tblTempUsageDetail_20' ) start [2025-02-14 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475574', 'tblTempUsageDetail_20' ) end [2025-02-14 18:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:29:26] Production.INFO: ==18224== Releasing lock... [2025-02-14 18:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:29:26] Production.INFO: 56 MB #Memory Used# [2025-02-14 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:30:05 [end_date_ymd] => 2025-02-14 18:30:05 [RateCDR] => 1 ) [2025-02-14 18: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-02-14 15:30:05' and `end` < '2025-02-14 18: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-02-14 18:30:25] Production.INFO: count ==3716 [2025-02-14 18:30:26] Production.ERROR: pbx CDR StartTime 2025-02-14 15:30:05 - End Time 2025-02-14 18:30:05 [2025-02-14 18:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475579', 'tblTempUsageDetail_20' ) start [2025-02-14 18:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475579', 'tblTempUsageDetail_20' ) end [2025-02-14 18:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475579', 'tblTempVendorCDR_20' ) start [2025-02-14 18:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475579', 'tblTempVendorCDR_20' ) end [2025-02-14 18:30:26] Production.INFO: ProcessCDR(1,14475579,1,1,2) [2025-02-14 18:30:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475579', 'tblTempUsageDetail_20' ) start [2025-02-14 18:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475579', 'tblTempUsageDetail_20' ) end [2025-02-14 18:30:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:30:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:30:29] Production.INFO: ==18299== Releasing lock... [2025-02-14 18:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:30:29] Production.INFO: 56.25 MB #Memory Used# [2025-02-14 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:31:05 [end_date_ymd] => 2025-02-14 18:31:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:31:05' and `end` < '2025-02-14 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-02-14 18:31:22] Production.INFO: count ==3731 [2025-02-14 18:31:23] Production.ERROR: pbx CDR StartTime 2025-02-14 15:31:05 - End Time 2025-02-14 18:31:05 [2025-02-14 18:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475585', 'tblTempUsageDetail_20' ) start [2025-02-14 18:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475585', 'tblTempUsageDetail_20' ) end [2025-02-14 18:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475585', 'tblTempVendorCDR_20' ) start [2025-02-14 18:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475585', 'tblTempVendorCDR_20' ) end [2025-02-14 18:31:23] Production.INFO: ProcessCDR(1,14475585,1,1,2) [2025-02-14 18:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475585', 'tblTempUsageDetail_20' ) start [2025-02-14 18:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475585', 'tblTempUsageDetail_20' ) end [2025-02-14 18:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:31:26] Production.INFO: ==18378== Releasing lock... [2025-02-14 18:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:31:26] Production.INFO: 55.75 MB #Memory Used# [2025-02-14 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:32:05 [end_date_ymd] => 2025-02-14 18:32:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:32:05' and `end` < '2025-02-14 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-02-14 18:32:20] Production.INFO: count ==3720 [2025-02-14 18:32:21] Production.ERROR: pbx CDR StartTime 2025-02-14 15:32:05 - End Time 2025-02-14 18:32:05 [2025-02-14 18:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475590', 'tblTempUsageDetail_20' ) start [2025-02-14 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475590', 'tblTempUsageDetail_20' ) end [2025-02-14 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475590', 'tblTempVendorCDR_20' ) start [2025-02-14 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475590', 'tblTempVendorCDR_20' ) end [2025-02-14 18:32:21] Production.INFO: ProcessCDR(1,14475590,1,1,2) [2025-02-14 18:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475590', 'tblTempUsageDetail_20' ) start [2025-02-14 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475590', 'tblTempUsageDetail_20' ) end [2025-02-14 18:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:32:25] Production.INFO: ==18453== Releasing lock... [2025-02-14 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:32:25] Production.INFO: 55.75 MB #Memory Used# [2025-02-14 18:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:33:04 [end_date_ymd] => 2025-02-14 18:33:04 [RateCDR] => 1 ) [2025-02-14 18: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-02-14 15:33:04' and `end` < '2025-02-14 18: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-02-14 18:33:21] Production.INFO: count ==3720 [2025-02-14 18:33:22] Production.ERROR: pbx CDR StartTime 2025-02-14 15:33:04 - End Time 2025-02-14 18:33:04 [2025-02-14 18:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475595', 'tblTempUsageDetail_20' ) start [2025-02-14 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475595', 'tblTempUsageDetail_20' ) end [2025-02-14 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475595', 'tblTempVendorCDR_20' ) start [2025-02-14 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475595', 'tblTempVendorCDR_20' ) end [2025-02-14 18:33:22] Production.INFO: ProcessCDR(1,14475595,1,1,2) [2025-02-14 18:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475595', 'tblTempUsageDetail_20' ) start [2025-02-14 18:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475595', 'tblTempUsageDetail_20' ) end [2025-02-14 18:33:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:33:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:33:28] Production.INFO: ==18527== Releasing lock... [2025-02-14 18:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:33:28] Production.INFO: 55.75 MB #Memory Used# [2025-02-14 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:34:05 [end_date_ymd] => 2025-02-14 18:34:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:34:05' and `end` < '2025-02-14 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-02-14 18:34:26] Production.INFO: count ==3725 [2025-02-14 18:34:27] Production.ERROR: pbx CDR StartTime 2025-02-14 15:34:05 - End Time 2025-02-14 18:34:05 [2025-02-14 18:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475600', 'tblTempUsageDetail_20' ) start [2025-02-14 18:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475600', 'tblTempUsageDetail_20' ) end [2025-02-14 18:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475600', 'tblTempVendorCDR_20' ) start [2025-02-14 18:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475600', 'tblTempVendorCDR_20' ) end [2025-02-14 18:34:27] Production.INFO: ProcessCDR(1,14475600,1,1,2) [2025-02-14 18:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475600', 'tblTempUsageDetail_20' ) start [2025-02-14 18:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475600', 'tblTempUsageDetail_20' ) end [2025-02-14 18:34:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:34:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:34:32] Production.INFO: ==18610== Releasing lock... [2025-02-14 18:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:34:32] Production.INFO: 56.25 MB #Memory Used# [2025-02-14 18:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:35:04 [end_date_ymd] => 2025-02-14 18:35:04 [RateCDR] => 1 ) [2025-02-14 18: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-02-14 15:35:04' and `end` < '2025-02-14 18: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-02-14 18:35:21] Production.INFO: count ==3719 [2025-02-14 18:35:22] Production.ERROR: pbx CDR StartTime 2025-02-14 15:35:04 - End Time 2025-02-14 18:35:04 [2025-02-14 18:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475605', 'tblTempUsageDetail_20' ) start [2025-02-14 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475605', 'tblTempUsageDetail_20' ) end [2025-02-14 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475605', 'tblTempVendorCDR_20' ) start [2025-02-14 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475605', 'tblTempVendorCDR_20' ) end [2025-02-14 18:35:22] Production.INFO: ProcessCDR(1,14475605,1,1,2) [2025-02-14 18:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475605', 'tblTempUsageDetail_20' ) start [2025-02-14 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475605', 'tblTempUsageDetail_20' ) end [2025-02-14 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:35:26] Production.INFO: ==18685== Releasing lock... [2025-02-14 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:35:26] Production.INFO: 55.75 MB #Memory Used# [2025-02-14 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:36:05 [end_date_ymd] => 2025-02-14 18:36:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:36:05' and `end` < '2025-02-14 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-02-14 18:36:19] Production.INFO: count ==3715 [2025-02-14 18:36:20] Production.ERROR: pbx CDR StartTime 2025-02-14 15:36:05 - End Time 2025-02-14 18:36:05 [2025-02-14 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475610', 'tblTempUsageDetail_20' ) start [2025-02-14 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475610', 'tblTempUsageDetail_20' ) end [2025-02-14 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475610', 'tblTempVendorCDR_20' ) start [2025-02-14 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475610', 'tblTempVendorCDR_20' ) end [2025-02-14 18:36:20] Production.INFO: ProcessCDR(1,14475610,1,1,2) [2025-02-14 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475610', 'tblTempUsageDetail_20' ) start [2025-02-14 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475610', 'tblTempUsageDetail_20' ) end [2025-02-14 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:36:24] Production.INFO: ==18799== Releasing lock... [2025-02-14 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:36:24] Production.INFO: 56.25 MB #Memory Used# [2025-02-14 18:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:37:06 [end_date_ymd] => 2025-02-14 18:37:06 [RateCDR] => 1 ) [2025-02-14 18:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:37:06' and `end` < '2025-02-14 18:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:37:24] Production.INFO: count ==3712 [2025-02-14 18:37:25] Production.ERROR: pbx CDR StartTime 2025-02-14 15:37:06 - End Time 2025-02-14 18:37:06 [2025-02-14 18:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475615', 'tblTempUsageDetail_20' ) start [2025-02-14 18:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475615', 'tblTempUsageDetail_20' ) end [2025-02-14 18:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475615', 'tblTempVendorCDR_20' ) start [2025-02-14 18:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475615', 'tblTempVendorCDR_20' ) end [2025-02-14 18:37:25] Production.INFO: ProcessCDR(1,14475615,1,1,2) [2025-02-14 18:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475615', 'tblTempUsageDetail_20' ) start [2025-02-14 18:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475615', 'tblTempUsageDetail_20' ) end [2025-02-14 18:37:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:37:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:37:28] Production.INFO: ==18876== Releasing lock... [2025-02-14 18:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:37:28] Production.INFO: 55.75 MB #Memory Used# [2025-02-14 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:38:05 [end_date_ymd] => 2025-02-14 18:38:05 [RateCDR] => 1 ) [2025-02-14 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:38:05' and `end` < '2025-02-14 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:38:19] Production.INFO: count ==3690 [2025-02-14 18:38:20] Production.ERROR: pbx CDR StartTime 2025-02-14 15:38:05 - End Time 2025-02-14 18:38:05 [2025-02-14 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475620', 'tblTempUsageDetail_20' ) start [2025-02-14 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475620', 'tblTempUsageDetail_20' ) end [2025-02-14 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475620', 'tblTempVendorCDR_20' ) start [2025-02-14 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475620', 'tblTempVendorCDR_20' ) end [2025-02-14 18:38:20] Production.INFO: ProcessCDR(1,14475620,1,1,2) [2025-02-14 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475620', 'tblTempUsageDetail_20' ) start [2025-02-14 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475620', 'tblTempUsageDetail_20' ) end [2025-02-14 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:38:24] Production.INFO: ==18952== Releasing lock... [2025-02-14 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:38:24] Production.INFO: 55.75 MB #Memory Used# [2025-02-14 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:39:06 [end_date_ymd] => 2025-02-14 18:39:06 [RateCDR] => 1 ) [2025-02-14 18:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:39:06' and `end` < '2025-02-14 18:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:39:20] Production.INFO: count ==3660 [2025-02-14 18:39:21] Production.ERROR: pbx CDR StartTime 2025-02-14 15:39:06 - End Time 2025-02-14 18:39:06 [2025-02-14 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475625', 'tblTempUsageDetail_20' ) start [2025-02-14 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475625', 'tblTempUsageDetail_20' ) end [2025-02-14 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475625', 'tblTempVendorCDR_20' ) start [2025-02-14 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475625', 'tblTempVendorCDR_20' ) end [2025-02-14 18:39:21] Production.INFO: ProcessCDR(1,14475625,1,1,2) [2025-02-14 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475625', 'tblTempUsageDetail_20' ) start [2025-02-14 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475625', 'tblTempUsageDetail_20' ) end [2025-02-14 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:39:24] Production.INFO: ==19027== Releasing lock... [2025-02-14 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:39:24] Production.INFO: 55.25 MB #Memory Used# [2025-02-14 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:40:05 [end_date_ymd] => 2025-02-14 18:40:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:40:05' and `end` < '2025-02-14 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-02-14 18:40:19] Production.INFO: count ==3623 [2025-02-14 18:40:20] Production.ERROR: pbx CDR StartTime 2025-02-14 15:40:05 - End Time 2025-02-14 18:40:05 [2025-02-14 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475630', 'tblTempUsageDetail_20' ) start [2025-02-14 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475630', 'tblTempUsageDetail_20' ) end [2025-02-14 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475630', 'tblTempVendorCDR_20' ) start [2025-02-14 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475630', 'tblTempVendorCDR_20' ) end [2025-02-14 18:40:20] Production.INFO: ProcessCDR(1,14475630,1,1,2) [2025-02-14 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475630', 'tblTempUsageDetail_20' ) start [2025-02-14 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475630', 'tblTempUsageDetail_20' ) end [2025-02-14 18:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:40:23] Production.INFO: ==19116== Releasing lock... [2025-02-14 18:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:40:23] Production.INFO: 55.25 MB #Memory Used# [2025-02-14 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:41:05 [end_date_ymd] => 2025-02-14 18:41:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:41:05' and `end` < '2025-02-14 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-02-14 18:41:22] Production.INFO: count ==3570 [2025-02-14 18:41:23] Production.ERROR: pbx CDR StartTime 2025-02-14 15:41:05 - End Time 2025-02-14 18:41:05 [2025-02-14 18:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475636', 'tblTempUsageDetail_20' ) start [2025-02-14 18:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475636', 'tblTempUsageDetail_20' ) end [2025-02-14 18:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475636', 'tblTempVendorCDR_20' ) start [2025-02-14 18:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475636', 'tblTempVendorCDR_20' ) end [2025-02-14 18:41:23] Production.INFO: ProcessCDR(1,14475636,1,1,2) [2025-02-14 18:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475636', 'tblTempUsageDetail_20' ) start [2025-02-14 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475636', 'tblTempUsageDetail_20' ) end [2025-02-14 18:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:41:26] Production.INFO: ==19199== Releasing lock... [2025-02-14 18:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:41:26] Production.INFO: 54.75 MB #Memory Used# [2025-02-14 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:42:05 [end_date_ymd] => 2025-02-14 18:42:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:42:05' and `end` < '2025-02-14 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-02-14 18:42:22] Production.INFO: count ==3547 [2025-02-14 18:42:24] Production.ERROR: pbx CDR StartTime 2025-02-14 15:42:05 - End Time 2025-02-14 18:42:05 [2025-02-14 18:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475641', 'tblTempUsageDetail_20' ) start [2025-02-14 18:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475641', 'tblTempUsageDetail_20' ) end [2025-02-14 18:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475641', 'tblTempVendorCDR_20' ) start [2025-02-14 18:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475641', 'tblTempVendorCDR_20' ) end [2025-02-14 18:42:24] Production.INFO: ProcessCDR(1,14475641,1,1,2) [2025-02-14 18:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475641', 'tblTempUsageDetail_20' ) start [2025-02-14 18:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475641', 'tblTempUsageDetail_20' ) end [2025-02-14 18:42:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:42:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:42:28] Production.INFO: ==19272== Releasing lock... [2025-02-14 18:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:42:28] Production.INFO: 55.5 MB #Memory Used# [2025-02-14 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:43:05 [end_date_ymd] => 2025-02-14 18:43:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:43:05' and `end` < '2025-02-14 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-02-14 18:43:18] Production.INFO: count ==3535 [2025-02-14 18:43:19] Production.ERROR: pbx CDR StartTime 2025-02-14 15:43:05 - End Time 2025-02-14 18:43:05 [2025-02-14 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475646', 'tblTempUsageDetail_20' ) start [2025-02-14 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475646', 'tblTempUsageDetail_20' ) end [2025-02-14 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475646', 'tblTempVendorCDR_20' ) start [2025-02-14 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475646', 'tblTempVendorCDR_20' ) end [2025-02-14 18:43:19] Production.INFO: ProcessCDR(1,14475646,1,1,2) [2025-02-14 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475646', 'tblTempUsageDetail_20' ) start [2025-02-14 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475646', 'tblTempUsageDetail_20' ) end [2025-02-14 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:43:24] Production.INFO: ==19345== Releasing lock... [2025-02-14 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:43:24] Production.INFO: 54.5 MB #Memory Used# [2025-02-14 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:44:05 [end_date_ymd] => 2025-02-14 18:44:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:44:05' and `end` < '2025-02-14 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-02-14 18:44:18] Production.INFO: count ==3527 [2025-02-14 18:44:19] Production.ERROR: pbx CDR StartTime 2025-02-14 15:44:05 - End Time 2025-02-14 18:44:05 [2025-02-14 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475651', 'tblTempUsageDetail_20' ) start [2025-02-14 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475651', 'tblTempUsageDetail_20' ) end [2025-02-14 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475651', 'tblTempVendorCDR_20' ) start [2025-02-14 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475651', 'tblTempVendorCDR_20' ) end [2025-02-14 18:44:19] Production.INFO: ProcessCDR(1,14475651,1,1,2) [2025-02-14 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475651', 'tblTempUsageDetail_20' ) start [2025-02-14 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475651', 'tblTempUsageDetail_20' ) end [2025-02-14 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:44:23] Production.INFO: ==19423== Releasing lock... [2025-02-14 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:44:23] Production.INFO: 55 MB #Memory Used# [2025-02-14 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:45:05 [end_date_ymd] => 2025-02-14 18:45:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:45:05' and `end` < '2025-02-14 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-02-14 18:45:20] Production.INFO: count ==3530 [2025-02-14 18:45:21] Production.ERROR: pbx CDR StartTime 2025-02-14 15:45:05 - End Time 2025-02-14 18:45:05 [2025-02-14 18:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475656', 'tblTempUsageDetail_20' ) start [2025-02-14 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475656', 'tblTempUsageDetail_20' ) end [2025-02-14 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475656', 'tblTempVendorCDR_20' ) start [2025-02-14 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475656', 'tblTempVendorCDR_20' ) end [2025-02-14 18:45:21] Production.INFO: ProcessCDR(1,14475656,1,1,2) [2025-02-14 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475656', 'tblTempUsageDetail_20' ) start [2025-02-14 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475656', 'tblTempUsageDetail_20' ) end [2025-02-14 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:45:24] Production.INFO: ==19501== Releasing lock... [2025-02-14 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:45:24] Production.INFO: 54.25 MB #Memory Used# [2025-02-14 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:46:05 [end_date_ymd] => 2025-02-14 18:46:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:46:05' and `end` < '2025-02-14 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-02-14 18:46:19] Production.INFO: count ==3536 [2025-02-14 18:46:20] Production.ERROR: pbx CDR StartTime 2025-02-14 15:46:05 - End Time 2025-02-14 18:46:05 [2025-02-14 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475661', 'tblTempUsageDetail_20' ) start [2025-02-14 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475661', 'tblTempUsageDetail_20' ) end [2025-02-14 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475661', 'tblTempVendorCDR_20' ) start [2025-02-14 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475661', 'tblTempVendorCDR_20' ) end [2025-02-14 18:46:20] Production.INFO: ProcessCDR(1,14475661,1,1,2) [2025-02-14 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475661', 'tblTempUsageDetail_20' ) start [2025-02-14 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475661', 'tblTempUsageDetail_20' ) end [2025-02-14 18:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:46:25] Production.INFO: ==19575== Releasing lock... [2025-02-14 18:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:46:25] Production.INFO: 55 MB #Memory Used# [2025-02-14 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:47:05 [end_date_ymd] => 2025-02-14 18:47:05 [RateCDR] => 1 ) [2025-02-14 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:47:05' and `end` < '2025-02-14 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:47:18] Production.INFO: count ==3508 [2025-02-14 18:47:19] Production.ERROR: pbx CDR StartTime 2025-02-14 15:47:05 - End Time 2025-02-14 18:47:05 [2025-02-14 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475666', 'tblTempUsageDetail_20' ) start [2025-02-14 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475666', 'tblTempUsageDetail_20' ) end [2025-02-14 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475666', 'tblTempVendorCDR_20' ) start [2025-02-14 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475666', 'tblTempVendorCDR_20' ) end [2025-02-14 18:47:19] Production.INFO: ProcessCDR(1,14475666,1,1,2) [2025-02-14 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475666', 'tblTempUsageDetail_20' ) start [2025-02-14 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475666', 'tblTempUsageDetail_20' ) end [2025-02-14 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:47:23] Production.INFO: ==19653== Releasing lock... [2025-02-14 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:47:23] Production.INFO: 54.5 MB #Memory Used# [2025-02-14 18:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:48:06 [end_date_ymd] => 2025-02-14 18:48:06 [RateCDR] => 1 ) [2025-02-14 18:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:48:06' and `end` < '2025-02-14 18:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:48:20] Production.INFO: count ==3496 [2025-02-14 18:48:21] Production.ERROR: pbx CDR StartTime 2025-02-14 15:48:06 - End Time 2025-02-14 18:48:06 [2025-02-14 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475671', 'tblTempUsageDetail_20' ) start [2025-02-14 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475671', 'tblTempUsageDetail_20' ) end [2025-02-14 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475671', 'tblTempVendorCDR_20' ) start [2025-02-14 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475671', 'tblTempVendorCDR_20' ) end [2025-02-14 18:48:21] Production.INFO: ProcessCDR(1,14475671,1,1,2) [2025-02-14 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475671', 'tblTempUsageDetail_20' ) start [2025-02-14 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475671', 'tblTempUsageDetail_20' ) end [2025-02-14 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:48:24] Production.INFO: ==19735== Releasing lock... [2025-02-14 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:48:24] Production.INFO: 54 MB #Memory Used# [2025-02-14 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:49:05 [end_date_ymd] => 2025-02-14 18:49:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:49:05' and `end` < '2025-02-14 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-02-14 18:49:18] Production.INFO: count ==3499 [2025-02-14 18:49:19] Production.ERROR: pbx CDR StartTime 2025-02-14 15:49:05 - End Time 2025-02-14 18:49:05 [2025-02-14 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475676', 'tblTempUsageDetail_20' ) start [2025-02-14 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475676', 'tblTempUsageDetail_20' ) end [2025-02-14 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475676', 'tblTempVendorCDR_20' ) start [2025-02-14 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475676', 'tblTempVendorCDR_20' ) end [2025-02-14 18:49:20] Production.INFO: ProcessCDR(1,14475676,1,1,2) [2025-02-14 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475676', 'tblTempUsageDetail_20' ) start [2025-02-14 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475676', 'tblTempUsageDetail_20' ) end [2025-02-14 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:49:24] Production.INFO: ==19814== Releasing lock... [2025-02-14 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:49:24] Production.INFO: 54 MB #Memory Used# [2025-02-14 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:50:06 [end_date_ymd] => 2025-02-14 18:50:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:50:06' and `end` < '2025-02-14 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-02-14 18:50:20] Production.INFO: count ==3495 [2025-02-14 18:50:21] Production.ERROR: pbx CDR StartTime 2025-02-14 15:50:06 - End Time 2025-02-14 18:50:06 [2025-02-14 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475682', 'tblTempUsageDetail_20' ) start [2025-02-14 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475682', 'tblTempUsageDetail_20' ) end [2025-02-14 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475682', 'tblTempVendorCDR_20' ) start [2025-02-14 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475682', 'tblTempVendorCDR_20' ) end [2025-02-14 18:50:21] Production.INFO: ProcessCDR(1,14475682,1,1,2) [2025-02-14 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475682', 'tblTempUsageDetail_20' ) start [2025-02-14 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475682', 'tblTempUsageDetail_20' ) end [2025-02-14 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:50:24] Production.INFO: ==19890== Releasing lock... [2025-02-14 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:50:24] Production.INFO: 54.5 MB #Memory Used# [2025-02-14 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:51:05 [end_date_ymd] => 2025-02-14 18:51:05 [RateCDR] => 1 ) [2025-02-14 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:51:05' and `end` < '2025-02-14 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:51:19] Production.INFO: count ==3524 [2025-02-14 18:51:20] Production.ERROR: pbx CDR StartTime 2025-02-14 15:51:05 - End Time 2025-02-14 18:51:05 [2025-02-14 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475687', 'tblTempUsageDetail_20' ) start [2025-02-14 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475687', 'tblTempUsageDetail_20' ) end [2025-02-14 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475687', 'tblTempVendorCDR_20' ) start [2025-02-14 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475687', 'tblTempVendorCDR_20' ) end [2025-02-14 18:51:20] Production.INFO: ProcessCDR(1,14475687,1,1,2) [2025-02-14 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475687', 'tblTempUsageDetail_20' ) start [2025-02-14 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475687', 'tblTempUsageDetail_20' ) end [2025-02-14 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:51:24] Production.INFO: ==20005== Releasing lock... [2025-02-14 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:51:24] Production.INFO: 55 MB #Memory Used# [2025-02-14 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:52:06 [end_date_ymd] => 2025-02-14 18:52:06 [RateCDR] => 1 ) [2025-02-14 18:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 15:52:06' and `end` < '2025-02-14 18:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 18:52:21] Production.INFO: count ==3522 [2025-02-14 18:52:22] Production.ERROR: pbx CDR StartTime 2025-02-14 15:52:06 - End Time 2025-02-14 18:52:06 [2025-02-14 18:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475692', 'tblTempUsageDetail_20' ) start [2025-02-14 18:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475692', 'tblTempUsageDetail_20' ) end [2025-02-14 18:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475692', 'tblTempVendorCDR_20' ) start [2025-02-14 18:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475692', 'tblTempVendorCDR_20' ) end [2025-02-14 18:52:22] Production.INFO: ProcessCDR(1,14475692,1,1,2) [2025-02-14 18:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475692', 'tblTempUsageDetail_20' ) start [2025-02-14 18:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475692', 'tblTempUsageDetail_20' ) end [2025-02-14 18:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:52:27] Production.INFO: ==20079== Releasing lock... [2025-02-14 18:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:52:27] Production.INFO: 54.5 MB #Memory Used# [2025-02-14 18:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:53:04 [end_date_ymd] => 2025-02-14 18:53:04 [RateCDR] => 1 ) [2025-02-14 18: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-02-14 15:53:04' and `end` < '2025-02-14 18: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-02-14 18:53:20] Production.INFO: count ==3516 [2025-02-14 18:53:21] Production.ERROR: pbx CDR StartTime 2025-02-14 15:53:04 - End Time 2025-02-14 18:53:04 [2025-02-14 18:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475697', 'tblTempUsageDetail_20' ) start [2025-02-14 18:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475697', 'tblTempUsageDetail_20' ) end [2025-02-14 18:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475697', 'tblTempVendorCDR_20' ) start [2025-02-14 18:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475697', 'tblTempVendorCDR_20' ) end [2025-02-14 18:53:22] Production.INFO: ProcessCDR(1,14475697,1,1,2) [2025-02-14 18:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475697', 'tblTempUsageDetail_20' ) start [2025-02-14 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475697', 'tblTempUsageDetail_20' ) end [2025-02-14 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:53:25] Production.INFO: ==20156== Releasing lock... [2025-02-14 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:53:25] Production.INFO: 55 MB #Memory Used# [2025-02-14 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:54:05 [end_date_ymd] => 2025-02-14 18:54:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:54:05' and `end` < '2025-02-14 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-02-14 18:54:20] Production.INFO: count ==3500 [2025-02-14 18:54:21] Production.ERROR: pbx CDR StartTime 2025-02-14 15:54:05 - End Time 2025-02-14 18:54:05 [2025-02-14 18:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475702', 'tblTempUsageDetail_20' ) start [2025-02-14 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475702', 'tblTempUsageDetail_20' ) end [2025-02-14 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475702', 'tblTempVendorCDR_20' ) start [2025-02-14 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475702', 'tblTempVendorCDR_20' ) end [2025-02-14 18:54:21] Production.INFO: ProcessCDR(1,14475702,1,1,2) [2025-02-14 18:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475702', 'tblTempUsageDetail_20' ) start [2025-02-14 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475702', 'tblTempUsageDetail_20' ) end [2025-02-14 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:54:25] Production.INFO: ==20239== Releasing lock... [2025-02-14 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:54:25] Production.INFO: 54.25 MB #Memory Used# [2025-02-14 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:55:05 [end_date_ymd] => 2025-02-14 18:55:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:55:05' and `end` < '2025-02-14 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-02-14 18:55:21] Production.INFO: count ==3501 [2025-02-14 18:55:22] Production.ERROR: pbx CDR StartTime 2025-02-14 15:55:05 - End Time 2025-02-14 18:55:05 [2025-02-14 18:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475707', 'tblTempUsageDetail_20' ) start [2025-02-14 18:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475707', 'tblTempUsageDetail_20' ) end [2025-02-14 18:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475707', 'tblTempVendorCDR_20' ) start [2025-02-14 18:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475707', 'tblTempVendorCDR_20' ) end [2025-02-14 18:55:22] Production.INFO: ProcessCDR(1,14475707,1,1,2) [2025-02-14 18:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475707', 'tblTempUsageDetail_20' ) start [2025-02-14 18:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475707', 'tblTempUsageDetail_20' ) end [2025-02-14 18:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:55:26] Production.INFO: ==20317== Releasing lock... [2025-02-14 18:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:55:26] Production.INFO: 54 MB #Memory Used# [2025-02-14 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:56:05 [end_date_ymd] => 2025-02-14 18:56:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:56:05' and `end` < '2025-02-14 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-02-14 18:56:22] Production.INFO: count ==3503 [2025-02-14 18:56:23] Production.ERROR: pbx CDR StartTime 2025-02-14 15:56:05 - End Time 2025-02-14 18:56:05 [2025-02-14 18:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475712', 'tblTempUsageDetail_20' ) start [2025-02-14 18:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475712', 'tblTempUsageDetail_20' ) end [2025-02-14 18:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475712', 'tblTempVendorCDR_20' ) start [2025-02-14 18:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475712', 'tblTempVendorCDR_20' ) end [2025-02-14 18:56:23] Production.INFO: ProcessCDR(1,14475712,1,1,2) [2025-02-14 18:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475712', 'tblTempUsageDetail_20' ) start [2025-02-14 18:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475712', 'tblTempUsageDetail_20' ) end [2025-02-14 18:56:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:56:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:56:28] Production.INFO: ==20410== Releasing lock... [2025-02-14 18:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:56:28] Production.INFO: 55 MB #Memory Used# [2025-02-14 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:57:05 [end_date_ymd] => 2025-02-14 18:57:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:57:05' and `end` < '2025-02-14 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-02-14 18:57:20] Production.INFO: count ==3477 [2025-02-14 18:57:21] Production.ERROR: pbx CDR StartTime 2025-02-14 15:57:05 - End Time 2025-02-14 18:57:05 [2025-02-14 18:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475717', 'tblTempUsageDetail_20' ) start [2025-02-14 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475717', 'tblTempUsageDetail_20' ) end [2025-02-14 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475717', 'tblTempVendorCDR_20' ) start [2025-02-14 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475717', 'tblTempVendorCDR_20' ) end [2025-02-14 18:57:21] Production.INFO: ProcessCDR(1,14475717,1,1,2) [2025-02-14 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475717', 'tblTempUsageDetail_20' ) start [2025-02-14 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475717', 'tblTempUsageDetail_20' ) end [2025-02-14 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:57:24] Production.INFO: ==20529== Releasing lock... [2025-02-14 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:57:24] Production.INFO: 54 MB #Memory Used# [2025-02-14 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:58:05 [end_date_ymd] => 2025-02-14 18:58:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:58:05' and `end` < '2025-02-14 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-02-14 18:58:23] Production.INFO: count ==3458 [2025-02-14 18:58:24] Production.ERROR: pbx CDR StartTime 2025-02-14 15:58:05 - End Time 2025-02-14 18:58:05 [2025-02-14 18:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475722', 'tblTempUsageDetail_20' ) start [2025-02-14 18:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475722', 'tblTempUsageDetail_20' ) end [2025-02-14 18:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475722', 'tblTempVendorCDR_20' ) start [2025-02-14 18:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475722', 'tblTempVendorCDR_20' ) end [2025-02-14 18:58:24] Production.INFO: ProcessCDR(1,14475722,1,1,2) [2025-02-14 18:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475722', 'tblTempUsageDetail_20' ) start [2025-02-14 18:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475722', 'tblTempUsageDetail_20' ) end [2025-02-14 18:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:58:27] Production.INFO: ==20640== Releasing lock... [2025-02-14 18:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:58:27] Production.INFO: 54 MB #Memory Used# [2025-02-14 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 15:59:05 [end_date_ymd] => 2025-02-14 18:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 15:59:05' and `end` < '2025-02-14 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-02-14 18:59:20] Production.INFO: count ==3439 [2025-02-14 18:59:21] Production.ERROR: pbx CDR StartTime 2025-02-14 15:59:05 - End Time 2025-02-14 18:59:05 [2025-02-14 18:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475727', 'tblTempUsageDetail_20' ) start [2025-02-14 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475727', 'tblTempUsageDetail_20' ) end [2025-02-14 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475727', 'tblTempVendorCDR_20' ) start [2025-02-14 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475727', 'tblTempVendorCDR_20' ) end [2025-02-14 18:59:21] Production.INFO: ProcessCDR(1,14475727,1,1,2) [2025-02-14 18:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475727', 'tblTempUsageDetail_20' ) start [2025-02-14 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475727', 'tblTempUsageDetail_20' ) end [2025-02-14 18:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 18:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 18:59:25] Production.INFO: ==20761== Releasing lock... [2025-02-14 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 18:59:25] Production.INFO: 54 MB #Memory Used# [2025-02-14 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:00:05 [end_date_ymd] => 2025-02-14 19:00:05 [RateCDR] => 1 ) [2025-02-14 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 16:00:05' and `end` < '2025-02-14 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 19:00:23] Production.INFO: count ==3431 [2025-02-14 19:00:24] Production.ERROR: pbx CDR StartTime 2025-02-14 16:00:05 - End Time 2025-02-14 19:00:05 [2025-02-14 19:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475732', 'tblTempUsageDetail_20' ) start [2025-02-14 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475732', 'tblTempUsageDetail_20' ) end [2025-02-14 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475732', 'tblTempVendorCDR_20' ) start [2025-02-14 19:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475732', 'tblTempVendorCDR_20' ) end [2025-02-14 19:00:24] Production.INFO: ProcessCDR(1,14475732,1,1,2) [2025-02-14 19:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475732', 'tblTempUsageDetail_20' ) start [2025-02-14 19:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475732', 'tblTempUsageDetail_20' ) end [2025-02-14 19:00:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:00:29] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:00:29] Production.INFO: ==20844== Releasing lock... [2025-02-14 19:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:00:29] Production.INFO: 53.5 MB #Memory Used# [2025-02-14 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:01:06 [end_date_ymd] => 2025-02-14 19:01:06 [RateCDR] => 1 ) [2025-02-14 19:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 16:01:06' and `end` < '2025-02-14 19:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 19:01:20] Production.INFO: count ==3389 [2025-02-14 19:01:21] Production.ERROR: pbx CDR StartTime 2025-02-14 16:01:06 - End Time 2025-02-14 19:01:06 [2025-02-14 19:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475738', 'tblTempUsageDetail_20' ) start [2025-02-14 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475738', 'tblTempUsageDetail_20' ) end [2025-02-14 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475738', 'tblTempVendorCDR_20' ) start [2025-02-14 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475738', 'tblTempVendorCDR_20' ) end [2025-02-14 19:01:21] Production.INFO: ProcessCDR(1,14475738,1,1,2) [2025-02-14 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475738', 'tblTempUsageDetail_20' ) start [2025-02-14 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475738', 'tblTempUsageDetail_20' ) end [2025-02-14 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:01:24] Production.INFO: ==20960== Releasing lock... [2025-02-14 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:01:24] Production.INFO: 53.25 MB #Memory Used# [2025-02-14 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:02:05 [end_date_ymd] => 2025-02-14 19:02:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:02:05' and `end` < '2025-02-14 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-02-14 19:02:19] Production.INFO: count ==3383 [2025-02-14 19:02:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:02:05 - End Time 2025-02-14 19:02:05 [2025-02-14 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475743', 'tblTempUsageDetail_20' ) start [2025-02-14 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475743', 'tblTempUsageDetail_20' ) end [2025-02-14 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475743', 'tblTempVendorCDR_20' ) start [2025-02-14 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475743', 'tblTempVendorCDR_20' ) end [2025-02-14 19:02:20] Production.INFO: ProcessCDR(1,14475743,1,1,2) [2025-02-14 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475743', 'tblTempUsageDetail_20' ) start [2025-02-14 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475743', 'tblTempUsageDetail_20' ) end [2025-02-14 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:02:23] Production.INFO: ==21131== Releasing lock... [2025-02-14 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:02:23] Production.INFO: 53.5 MB #Memory Used# [2025-02-14 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:03:06 [end_date_ymd] => 2025-02-14 19:03:06 [RateCDR] => 1 ) [2025-02-14 19:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 16:03:06' and `end` < '2025-02-14 19:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 19:03:20] Production.INFO: count ==3361 [2025-02-14 19:03:21] Production.ERROR: pbx CDR StartTime 2025-02-14 16:03:06 - End Time 2025-02-14 19:03:06 [2025-02-14 19:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475748', 'tblTempUsageDetail_20' ) start [2025-02-14 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475748', 'tblTempUsageDetail_20' ) end [2025-02-14 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475748', 'tblTempVendorCDR_20' ) start [2025-02-14 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475748', 'tblTempVendorCDR_20' ) end [2025-02-14 19:03:21] Production.INFO: ProcessCDR(1,14475748,1,1,2) [2025-02-14 19:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475748', 'tblTempUsageDetail_20' ) start [2025-02-14 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475748', 'tblTempUsageDetail_20' ) end [2025-02-14 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:03:24] Production.INFO: ==21237== Releasing lock... [2025-02-14 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:03:24] Production.INFO: 53.25 MB #Memory Used# [2025-02-14 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:04:05 [end_date_ymd] => 2025-02-14 19:04:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:04:05' and `end` < '2025-02-14 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-02-14 19:04:19] Production.INFO: count ==3350 [2025-02-14 19:04:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:04:05 - End Time 2025-02-14 19:04:05 [2025-02-14 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475753', 'tblTempUsageDetail_20' ) start [2025-02-14 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475753', 'tblTempUsageDetail_20' ) end [2025-02-14 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475753', 'tblTempVendorCDR_20' ) start [2025-02-14 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475753', 'tblTempVendorCDR_20' ) end [2025-02-14 19:04:20] Production.INFO: ProcessCDR(1,14475753,1,1,2) [2025-02-14 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475753', 'tblTempUsageDetail_20' ) start [2025-02-14 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475753', 'tblTempUsageDetail_20' ) end [2025-02-14 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:04:24] Production.INFO: ==21316== Releasing lock... [2025-02-14 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:04:24] Production.INFO: 54 MB #Memory Used# [2025-02-14 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:05:05 [end_date_ymd] => 2025-02-14 19:05:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:05:05' and `end` < '2025-02-14 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-02-14 19:05:19] Production.INFO: count ==3346 [2025-02-14 19:05:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:05:05 - End Time 2025-02-14 19:05:05 [2025-02-14 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475758', 'tblTempUsageDetail_20' ) start [2025-02-14 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475758', 'tblTempUsageDetail_20' ) end [2025-02-14 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475758', 'tblTempVendorCDR_20' ) start [2025-02-14 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475758', 'tblTempVendorCDR_20' ) end [2025-02-14 19:05:20] Production.INFO: ProcessCDR(1,14475758,1,1,2) [2025-02-14 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475758', 'tblTempUsageDetail_20' ) start [2025-02-14 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475758', 'tblTempUsageDetail_20' ) end [2025-02-14 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:05:23] Production.INFO: ==21496== Releasing lock... [2025-02-14 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:05:23] Production.INFO: 54 MB #Memory Used# [2025-02-14 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:06:05 [end_date_ymd] => 2025-02-14 19:06:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:06:05' and `end` < '2025-02-14 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-02-14 19:06:19] Production.INFO: count ==3337 [2025-02-14 19:06:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:06:05 - End Time 2025-02-14 19:06:05 [2025-02-14 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475763', 'tblTempUsageDetail_20' ) start [2025-02-14 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475763', 'tblTempUsageDetail_20' ) end [2025-02-14 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475763', 'tblTempVendorCDR_20' ) start [2025-02-14 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475763', 'tblTempVendorCDR_20' ) end [2025-02-14 19:06:20] Production.INFO: ProcessCDR(1,14475763,1,1,2) [2025-02-14 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475763', 'tblTempUsageDetail_20' ) start [2025-02-14 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475763', 'tblTempUsageDetail_20' ) end [2025-02-14 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:06:23] Production.INFO: ==21588== Releasing lock... [2025-02-14 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:06:23] Production.INFO: 53.75 MB #Memory Used# [2025-02-14 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:07:05 [end_date_ymd] => 2025-02-14 19:07:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:07:05' and `end` < '2025-02-14 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-02-14 19:07:19] Production.INFO: count ==3327 [2025-02-14 19:07:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:07:05 - End Time 2025-02-14 19:07:05 [2025-02-14 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475768', 'tblTempUsageDetail_20' ) start [2025-02-14 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475768', 'tblTempUsageDetail_20' ) end [2025-02-14 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475768', 'tblTempVendorCDR_20' ) start [2025-02-14 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475768', 'tblTempVendorCDR_20' ) end [2025-02-14 19:07:20] Production.INFO: ProcessCDR(1,14475768,1,1,2) [2025-02-14 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475768', 'tblTempUsageDetail_20' ) start [2025-02-14 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475768', 'tblTempUsageDetail_20' ) end [2025-02-14 19:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:07:25] Production.INFO: ==21770== Releasing lock... [2025-02-14 19:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:07:25] Production.INFO: 53.5 MB #Memory Used# [2025-02-14 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:08:05 [end_date_ymd] => 2025-02-14 19:08:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:08:05' and `end` < '2025-02-14 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-02-14 19:08:21] Production.INFO: count ==3306 [2025-02-14 19:08:22] Production.ERROR: pbx CDR StartTime 2025-02-14 16:08:05 - End Time 2025-02-14 19:08:05 [2025-02-14 19:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475773', 'tblTempUsageDetail_20' ) start [2025-02-14 19:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475773', 'tblTempUsageDetail_20' ) end [2025-02-14 19:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475773', 'tblTempVendorCDR_20' ) start [2025-02-14 19:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475773', 'tblTempVendorCDR_20' ) end [2025-02-14 19:08:22] Production.INFO: ProcessCDR(1,14475773,1,1,2) [2025-02-14 19:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475773', 'tblTempUsageDetail_20' ) start [2025-02-14 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475773', 'tblTempUsageDetail_20' ) end [2025-02-14 19:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:08:25] Production.INFO: ==21983== Releasing lock... [2025-02-14 19:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:08:25] Production.INFO: 52.75 MB #Memory Used# [2025-02-14 19:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:09:06 [end_date_ymd] => 2025-02-14 19:09:06 [RateCDR] => 1 ) [2025-02-14 19:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 16:09:06' and `end` < '2025-02-14 19:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 19:09:21] Production.INFO: count ==3288 [2025-02-14 19:09:22] Production.ERROR: pbx CDR StartTime 2025-02-14 16:09:06 - End Time 2025-02-14 19:09:06 [2025-02-14 19:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475778', 'tblTempUsageDetail_20' ) start [2025-02-14 19:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475778', 'tblTempUsageDetail_20' ) end [2025-02-14 19:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475778', 'tblTempVendorCDR_20' ) start [2025-02-14 19:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475778', 'tblTempVendorCDR_20' ) end [2025-02-14 19:09:22] Production.INFO: ProcessCDR(1,14475778,1,1,2) [2025-02-14 19:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475778', 'tblTempUsageDetail_20' ) start [2025-02-14 19:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475778', 'tblTempUsageDetail_20' ) end [2025-02-14 19:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:09:26] Production.INFO: ==22083== Releasing lock... [2025-02-14 19:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:09:26] Production.INFO: 52.5 MB #Memory Used# [2025-02-14 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:10:06 [end_date_ymd] => 2025-02-14 19:10:06 [RateCDR] => 1 ) [2025-02-14 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 16:10:06' and `end` < '2025-02-14 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 19:10:20] Production.INFO: count ==3272 [2025-02-14 19:10:21] Production.ERROR: pbx CDR StartTime 2025-02-14 16:10:06 - End Time 2025-02-14 19:10:06 [2025-02-14 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475784', 'tblTempUsageDetail_20' ) start [2025-02-14 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475784', 'tblTempUsageDetail_20' ) end [2025-02-14 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475784', 'tblTempVendorCDR_20' ) start [2025-02-14 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475784', 'tblTempVendorCDR_20' ) end [2025-02-14 19:10:21] Production.INFO: ProcessCDR(1,14475784,1,1,2) [2025-02-14 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475784', 'tblTempUsageDetail_20' ) start [2025-02-14 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475784', 'tblTempUsageDetail_20' ) end [2025-02-14 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:10:26] Production.INFO: ==22181== Releasing lock... [2025-02-14 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:10:26] Production.INFO: 53 MB #Memory Used# [2025-02-14 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:11:05 [end_date_ymd] => 2025-02-14 19:11:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:11:05' and `end` < '2025-02-14 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-02-14 19:11:20] Production.INFO: count ==3270 [2025-02-14 19:11:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:11:05 - End Time 2025-02-14 19:11:05 [2025-02-14 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475789', 'tblTempUsageDetail_20' ) start [2025-02-14 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475789', 'tblTempUsageDetail_20' ) end [2025-02-14 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475789', 'tblTempVendorCDR_20' ) start [2025-02-14 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475789', 'tblTempVendorCDR_20' ) end [2025-02-14 19:11:20] Production.INFO: ProcessCDR(1,14475789,1,1,2) [2025-02-14 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475789', 'tblTempUsageDetail_20' ) start [2025-02-14 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475789', 'tblTempUsageDetail_20' ) end [2025-02-14 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:11:24] Production.INFO: ==22284== Releasing lock... [2025-02-14 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:11:24] Production.INFO: 52.75 MB #Memory Used# [2025-02-14 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:12:05 [end_date_ymd] => 2025-02-14 19:12:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:12:05' and `end` < '2025-02-14 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-02-14 19:12:19] Production.INFO: count ==3264 [2025-02-14 19:12:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:12:05 - End Time 2025-02-14 19:12:05 [2025-02-14 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475794', 'tblTempUsageDetail_20' ) start [2025-02-14 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475794', 'tblTempUsageDetail_20' ) end [2025-02-14 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475794', 'tblTempVendorCDR_20' ) start [2025-02-14 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475794', 'tblTempVendorCDR_20' ) end [2025-02-14 19:12:20] Production.INFO: ProcessCDR(1,14475794,1,1,2) [2025-02-14 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475794', 'tblTempUsageDetail_20' ) start [2025-02-14 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475794', 'tblTempUsageDetail_20' ) end [2025-02-14 19:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:12:23] Production.INFO: ==22452== Releasing lock... [2025-02-14 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:12:23] Production.INFO: 52.75 MB #Memory Used# [2025-02-14 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:13:05 [end_date_ymd] => 2025-02-14 19:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:13:05' and `end` < '2025-02-14 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-02-14 19:13:20] Production.INFO: count ==3252 [2025-02-14 19:13:21] Production.ERROR: pbx CDR StartTime 2025-02-14 16:13:05 - End Time 2025-02-14 19:13:05 [2025-02-14 19:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475799', 'tblTempUsageDetail_20' ) start [2025-02-14 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475799', 'tblTempUsageDetail_20' ) end [2025-02-14 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475799', 'tblTempVendorCDR_20' ) start [2025-02-14 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475799', 'tblTempVendorCDR_20' ) end [2025-02-14 19:13:21] Production.INFO: ProcessCDR(1,14475799,1,1,2) [2025-02-14 19:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475799', 'tblTempUsageDetail_20' ) start [2025-02-14 19:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475799', 'tblTempUsageDetail_20' ) end [2025-02-14 19:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:13:26] Production.INFO: ==22543== Releasing lock... [2025-02-14 19:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:13:26] Production.INFO: 52.75 MB #Memory Used# [2025-02-14 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:14:05 [end_date_ymd] => 2025-02-14 19:14:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:14:05' and `end` < '2025-02-14 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-02-14 19:14:21] Production.INFO: count ==3246 [2025-02-14 19:14:22] Production.ERROR: pbx CDR StartTime 2025-02-14 16:14:05 - End Time 2025-02-14 19:14:05 [2025-02-14 19:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475804', 'tblTempUsageDetail_20' ) start [2025-02-14 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475804', 'tblTempUsageDetail_20' ) end [2025-02-14 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475804', 'tblTempVendorCDR_20' ) start [2025-02-14 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475804', 'tblTempVendorCDR_20' ) end [2025-02-14 19:14:22] Production.INFO: ProcessCDR(1,14475804,1,1,2) [2025-02-14 19:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475804', 'tblTempUsageDetail_20' ) start [2025-02-14 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475804', 'tblTempUsageDetail_20' ) end [2025-02-14 19:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:14:25] Production.INFO: ==22634== Releasing lock... [2025-02-14 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:14:25] Production.INFO: 52.75 MB #Memory Used# [2025-02-14 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:15:05 [end_date_ymd] => 2025-02-14 19:15:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:15:05' and `end` < '2025-02-14 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-02-14 19:15:20] Production.INFO: count ==3249 [2025-02-14 19:15:21] Production.ERROR: pbx CDR StartTime 2025-02-14 16:15:05 - End Time 2025-02-14 19:15:05 [2025-02-14 19:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475809', 'tblTempUsageDetail_20' ) start [2025-02-14 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475809', 'tblTempUsageDetail_20' ) end [2025-02-14 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475809', 'tblTempVendorCDR_20' ) start [2025-02-14 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475809', 'tblTempVendorCDR_20' ) end [2025-02-14 19:15:21] Production.INFO: ProcessCDR(1,14475809,1,1,2) [2025-02-14 19:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475809', 'tblTempUsageDetail_20' ) start [2025-02-14 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475809', 'tblTempUsageDetail_20' ) end [2025-02-14 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:15:24] Production.INFO: ==22787== Releasing lock... [2025-02-14 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:15:24] Production.INFO: 52.25 MB #Memory Used# [2025-02-14 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:16:05 [end_date_ymd] => 2025-02-14 19:16:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:16:05' and `end` < '2025-02-14 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-02-14 19:16:20] Production.INFO: count ==3256 [2025-02-14 19:16:21] Production.ERROR: pbx CDR StartTime 2025-02-14 16:16:05 - End Time 2025-02-14 19:16:05 [2025-02-14 19:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475814', 'tblTempUsageDetail_20' ) start [2025-02-14 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475814', 'tblTempUsageDetail_20' ) end [2025-02-14 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475814', 'tblTempVendorCDR_20' ) start [2025-02-14 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475814', 'tblTempVendorCDR_20' ) end [2025-02-14 19:16:21] Production.INFO: ProcessCDR(1,14475814,1,1,2) [2025-02-14 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475814', 'tblTempUsageDetail_20' ) start [2025-02-14 19:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475814', 'tblTempUsageDetail_20' ) end [2025-02-14 19:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:16:26] Production.INFO: ==22857== Releasing lock... [2025-02-14 19:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:16:26] Production.INFO: 53 MB #Memory Used# [2025-02-14 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:17:05 [end_date_ymd] => 2025-02-14 19:17:05 [RateCDR] => 1 ) [2025-02-14 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 16:17:05' and `end` < '2025-02-14 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 19:17:19] Production.INFO: count ==3245 [2025-02-14 19:17:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:17:05 - End Time 2025-02-14 19:17:05 [2025-02-14 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475819', 'tblTempUsageDetail_20' ) start [2025-02-14 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475819', 'tblTempUsageDetail_20' ) end [2025-02-14 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475819', 'tblTempVendorCDR_20' ) start [2025-02-14 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475819', 'tblTempVendorCDR_20' ) end [2025-02-14 19:17:20] Production.INFO: ProcessCDR(1,14475819,1,1,2) [2025-02-14 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475819', 'tblTempUsageDetail_20' ) start [2025-02-14 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475819', 'tblTempUsageDetail_20' ) end [2025-02-14 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:17:24] Production.INFO: ==22927== Releasing lock... [2025-02-14 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:17:24] Production.INFO: 52.25 MB #Memory Used# [2025-02-14 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:18:05 [end_date_ymd] => 2025-02-14 19:18:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:18:05' and `end` < '2025-02-14 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-02-14 19:18:22] Production.INFO: count ==3241 [2025-02-14 19:18:23] Production.ERROR: pbx CDR StartTime 2025-02-14 16:18:05 - End Time 2025-02-14 19:18:05 [2025-02-14 19:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475824', 'tblTempUsageDetail_20' ) start [2025-02-14 19:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475824', 'tblTempUsageDetail_20' ) end [2025-02-14 19:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475824', 'tblTempVendorCDR_20' ) start [2025-02-14 19:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475824', 'tblTempVendorCDR_20' ) end [2025-02-14 19:18:23] Production.INFO: ProcessCDR(1,14475824,1,1,2) [2025-02-14 19:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475824', 'tblTempUsageDetail_20' ) start [2025-02-14 19:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475824', 'tblTempUsageDetail_20' ) end [2025-02-14 19:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:18:27] Production.INFO: ==22997== Releasing lock... [2025-02-14 19:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:18:27] Production.INFO: 52.5 MB #Memory Used# [2025-02-14 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:19:05 [end_date_ymd] => 2025-02-14 19:19:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:19:05' and `end` < '2025-02-14 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-02-14 19:19:19] Production.INFO: count ==3240 [2025-02-14 19:19:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:19:05 - End Time 2025-02-14 19:19:05 [2025-02-14 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475829', 'tblTempUsageDetail_20' ) start [2025-02-14 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475829', 'tblTempUsageDetail_20' ) end [2025-02-14 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475829', 'tblTempVendorCDR_20' ) start [2025-02-14 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475829', 'tblTempVendorCDR_20' ) end [2025-02-14 19:19:20] Production.INFO: ProcessCDR(1,14475829,1,1,2) [2025-02-14 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475829', 'tblTempUsageDetail_20' ) start [2025-02-14 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475829', 'tblTempUsageDetail_20' ) end [2025-02-14 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:19:23] Production.INFO: ==23072== Releasing lock... [2025-02-14 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:19:23] Production.INFO: 52.25 MB #Memory Used# [2025-02-14 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:20:05 [end_date_ymd] => 2025-02-14 19:20:05 [RateCDR] => 1 ) [2025-02-14 19: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-02-14 16:20:05' and `end` < '2025-02-14 19: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-02-14 19:20:19] Production.INFO: count ==3220 [2025-02-14 19:20:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:20:05 - End Time 2025-02-14 19:20:05 [2025-02-14 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475835', 'tblTempUsageDetail_20' ) start [2025-02-14 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475835', 'tblTempUsageDetail_20' ) end [2025-02-14 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475835', 'tblTempVendorCDR_20' ) start [2025-02-14 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475835', 'tblTempVendorCDR_20' ) end [2025-02-14 19:20:20] Production.INFO: ProcessCDR(1,14475835,1,1,2) [2025-02-14 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475835', 'tblTempUsageDetail_20' ) start [2025-02-14 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475835', 'tblTempUsageDetail_20' ) end [2025-02-14 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:20:23] Production.INFO: ==23144== Releasing lock... [2025-02-14 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:20:23] Production.INFO: 52.25 MB #Memory Used# [2025-02-14 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:21:05 [end_date_ymd] => 2025-02-14 19:21:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:21:05' and `end` < '2025-02-14 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-02-14 19:21:20] Production.INFO: count ==3200 [2025-02-14 19:21:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:21:05 - End Time 2025-02-14 19:21:05 [2025-02-14 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475840', 'tblTempUsageDetail_20' ) start [2025-02-14 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475840', 'tblTempUsageDetail_20' ) end [2025-02-14 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475840', 'tblTempVendorCDR_20' ) start [2025-02-14 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475840', 'tblTempVendorCDR_20' ) end [2025-02-14 19:21:21] Production.INFO: ProcessCDR(1,14475840,1,1,2) [2025-02-14 19:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475840', 'tblTempUsageDetail_20' ) start [2025-02-14 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475840', 'tblTempUsageDetail_20' ) end [2025-02-14 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:21:25] Production.INFO: ==23216== Releasing lock... [2025-02-14 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:21:25] Production.INFO: 52.25 MB #Memory Used# [2025-02-14 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:22:05 [end_date_ymd] => 2025-02-14 19:22:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:22:05' and `end` < '2025-02-14 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-02-14 19:22:21] Production.INFO: count ==3201 [2025-02-14 19:22:22] Production.ERROR: pbx CDR StartTime 2025-02-14 16:22:05 - End Time 2025-02-14 19:22:05 [2025-02-14 19:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475845', 'tblTempUsageDetail_20' ) start [2025-02-14 19:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475845', 'tblTempUsageDetail_20' ) end [2025-02-14 19:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475845', 'tblTempVendorCDR_20' ) start [2025-02-14 19:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475845', 'tblTempVendorCDR_20' ) end [2025-02-14 19:22:22] Production.INFO: ProcessCDR(1,14475845,1,1,2) [2025-02-14 19:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475845', 'tblTempUsageDetail_20' ) start [2025-02-14 19:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475845', 'tblTempUsageDetail_20' ) end [2025-02-14 19:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:22:27] Production.INFO: ==23339== Releasing lock... [2025-02-14 19:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:22:27] Production.INFO: 51.75 MB #Memory Used# [2025-02-14 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:23:04 [end_date_ymd] => 2025-02-14 19:23:04 [RateCDR] => 1 ) [2025-02-14 19: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-02-14 16:23:04' and `end` < '2025-02-14 19: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-02-14 19:23:20] Production.INFO: count ==3192 [2025-02-14 19:23:21] Production.ERROR: pbx CDR StartTime 2025-02-14 16:23:04 - End Time 2025-02-14 19:23:04 [2025-02-14 19:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475850', 'tblTempUsageDetail_20' ) start [2025-02-14 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475850', 'tblTempUsageDetail_20' ) end [2025-02-14 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475850', 'tblTempVendorCDR_20' ) start [2025-02-14 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475850', 'tblTempVendorCDR_20' ) end [2025-02-14 19:23:21] Production.INFO: ProcessCDR(1,14475850,1,1,2) [2025-02-14 19:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475850', 'tblTempUsageDetail_20' ) start [2025-02-14 19:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475850', 'tblTempUsageDetail_20' ) end [2025-02-14 19:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:23:26] Production.INFO: ==23431== Releasing lock... [2025-02-14 19:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:23:26] Production.INFO: 51.75 MB #Memory Used# [2025-02-14 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:24:06 [end_date_ymd] => 2025-02-14 19:24:06 [RateCDR] => 1 ) [2025-02-14 19:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 16:24:06' and `end` < '2025-02-14 19:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 19:24:19] Production.INFO: count ==3173 [2025-02-14 19:24:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:24:06 - End Time 2025-02-14 19:24:06 [2025-02-14 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475855', 'tblTempUsageDetail_20' ) start [2025-02-14 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475855', 'tblTempUsageDetail_20' ) end [2025-02-14 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475855', 'tblTempVendorCDR_20' ) start [2025-02-14 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475855', 'tblTempVendorCDR_20' ) end [2025-02-14 19:24:20] Production.INFO: ProcessCDR(1,14475855,1,1,2) [2025-02-14 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475855', 'tblTempUsageDetail_20' ) start [2025-02-14 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475855', 'tblTempUsageDetail_20' ) end [2025-02-14 19:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:24:25] Production.INFO: ==23504== Releasing lock... [2025-02-14 19:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:24:25] Production.INFO: 51.75 MB #Memory Used# [2025-02-14 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:25:05 [end_date_ymd] => 2025-02-14 19:25:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:25:05' and `end` < '2025-02-14 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-02-14 19:25:18] Production.INFO: count ==3163 [2025-02-14 19:25:19] Production.ERROR: pbx CDR StartTime 2025-02-14 16:25:05 - End Time 2025-02-14 19:25:05 [2025-02-14 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475860', 'tblTempUsageDetail_20' ) start [2025-02-14 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475860', 'tblTempUsageDetail_20' ) end [2025-02-14 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475860', 'tblTempVendorCDR_20' ) start [2025-02-14 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475860', 'tblTempVendorCDR_20' ) end [2025-02-14 19:25:19] Production.INFO: ProcessCDR(1,14475860,1,1,2) [2025-02-14 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475860', 'tblTempUsageDetail_20' ) start [2025-02-14 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475860', 'tblTempUsageDetail_20' ) end [2025-02-14 19:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:25:22] Production.INFO: ==23575== Releasing lock... [2025-02-14 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:25:22] Production.INFO: 52 MB #Memory Used# [2025-02-14 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:26:05 [end_date_ymd] => 2025-02-14 19:26:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:26:05' and `end` < '2025-02-14 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-02-14 19:26:21] Production.INFO: count ==3223 [2025-02-14 19:26:22] Production.ERROR: pbx CDR StartTime 2025-02-14 16:26:05 - End Time 2025-02-14 19:26:05 [2025-02-14 19:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475865', 'tblTempUsageDetail_20' ) start [2025-02-14 19:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475865', 'tblTempUsageDetail_20' ) end [2025-02-14 19:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475865', 'tblTempVendorCDR_20' ) start [2025-02-14 19:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475865', 'tblTempVendorCDR_20' ) end [2025-02-14 19:26:22] Production.INFO: ProcessCDR(1,14475865,1,1,2) [2025-02-14 19:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475865', 'tblTempUsageDetail_20' ) start [2025-02-14 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475865', 'tblTempUsageDetail_20' ) end [2025-02-14 19:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:26:25] Production.INFO: ==23649== Releasing lock... [2025-02-14 19:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:26:25] Production.INFO: 53 MB #Memory Used# [2025-02-14 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:27:05 [end_date_ymd] => 2025-02-14 19:27:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:27:05' and `end` < '2025-02-14 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-02-14 19:27:27] Production.INFO: count ==3238 [2025-02-14 19:27:28] Production.ERROR: pbx CDR StartTime 2025-02-14 16:27:05 - End Time 2025-02-14 19:27:05 [2025-02-14 19:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475870', 'tblTempUsageDetail_20' ) start [2025-02-14 19:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475870', 'tblTempUsageDetail_20' ) end [2025-02-14 19:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475870', 'tblTempVendorCDR_20' ) start [2025-02-14 19:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475870', 'tblTempVendorCDR_20' ) end [2025-02-14 19:27:28] Production.INFO: ProcessCDR(1,14475870,1,1,2) [2025-02-14 19:27:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475870', 'tblTempUsageDetail_20' ) start [2025-02-14 19:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475870', 'tblTempUsageDetail_20' ) end [2025-02-14 19:27:33] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:27:33] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:27:33] Production.INFO: ==23723== Releasing lock... [2025-02-14 19:27:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:27:33] Production.INFO: 52.5 MB #Memory Used# [2025-02-14 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:28:05 [end_date_ymd] => 2025-02-14 19:28:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:28:05' and `end` < '2025-02-14 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-02-14 19:28:22] Production.INFO: count ==3290 [2025-02-14 19:28:22] Production.ERROR: pbx CDR StartTime 2025-02-14 16:28:05 - End Time 2025-02-14 19:28:05 [2025-02-14 19:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475875', 'tblTempUsageDetail_20' ) start [2025-02-14 19:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475875', 'tblTempUsageDetail_20' ) end [2025-02-14 19:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475875', 'tblTempVendorCDR_20' ) start [2025-02-14 19:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475875', 'tblTempVendorCDR_20' ) end [2025-02-14 19:28:23] Production.INFO: ProcessCDR(1,14475875,1,1,2) [2025-02-14 19:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475875', 'tblTempUsageDetail_20' ) start [2025-02-14 19:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475875', 'tblTempUsageDetail_20' ) end [2025-02-14 19:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:28:26] Production.INFO: ==23794== Releasing lock... [2025-02-14 19:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:28:26] Production.INFO: 52.5 MB #Memory Used# [2025-02-14 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:29:05 [end_date_ymd] => 2025-02-14 19:29:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:29:05' and `end` < '2025-02-14 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-02-14 19:29:22] Production.INFO: count ==3274 [2025-02-14 19:29:22] Production.ERROR: pbx CDR StartTime 2025-02-14 16:29:05 - End Time 2025-02-14 19:29:05 [2025-02-14 19:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475880', 'tblTempUsageDetail_20' ) start [2025-02-14 19:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475880', 'tblTempUsageDetail_20' ) end [2025-02-14 19:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475880', 'tblTempVendorCDR_20' ) start [2025-02-14 19:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475880', 'tblTempVendorCDR_20' ) end [2025-02-14 19:29:22] Production.INFO: ProcessCDR(1,14475880,1,1,2) [2025-02-14 19:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475880', 'tblTempUsageDetail_20' ) start [2025-02-14 19:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475880', 'tblTempUsageDetail_20' ) end [2025-02-14 19:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:29:26] Production.INFO: ==23863== Releasing lock... [2025-02-14 19:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:29:26] Production.INFO: 52.5 MB #Memory Used# [2025-02-14 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:30:06 [end_date_ymd] => 2025-02-14 19:30:06 [RateCDR] => 1 ) [2025-02-14 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 16:30:06' and `end` < '2025-02-14 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 19:30:19] Production.INFO: count ==3272 [2025-02-14 19:30:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:30:06 - End Time 2025-02-14 19:30:06 [2025-02-14 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475885', 'tblTempUsageDetail_20' ) start [2025-02-14 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475885', 'tblTempUsageDetail_20' ) end [2025-02-14 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475885', 'tblTempVendorCDR_20' ) start [2025-02-14 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475885', 'tblTempVendorCDR_20' ) end [2025-02-14 19:30:20] Production.INFO: ProcessCDR(1,14475885,1,1,2) [2025-02-14 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475885', 'tblTempUsageDetail_20' ) start [2025-02-14 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475885', 'tblTempUsageDetail_20' ) end [2025-02-14 19:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:30:25] Production.INFO: ==23937== Releasing lock... [2025-02-14 19:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:30:25] Production.INFO: 52.25 MB #Memory Used# [2025-02-14 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:31:05 [end_date_ymd] => 2025-02-14 19:31:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:31:05' and `end` < '2025-02-14 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-02-14 19:31:28] Production.INFO: count ==3251 [2025-02-14 19:31:29] Production.ERROR: pbx CDR StartTime 2025-02-14 16:31:05 - End Time 2025-02-14 19:31:05 [2025-02-14 19:31:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475891', 'tblTempUsageDetail_20' ) start [2025-02-14 19:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475891', 'tblTempUsageDetail_20' ) end [2025-02-14 19:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475891', 'tblTempVendorCDR_20' ) start [2025-02-14 19:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475891', 'tblTempVendorCDR_20' ) end [2025-02-14 19:31:29] Production.INFO: ProcessCDR(1,14475891,1,1,2) [2025-02-14 19:31:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:31:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:31:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:31:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475891', 'tblTempUsageDetail_20' ) start [2025-02-14 19:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475891', 'tblTempUsageDetail_20' ) end [2025-02-14 19:31:34] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:31:34] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:31:34] Production.INFO: ==24009== Releasing lock... [2025-02-14 19:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:31:34] Production.INFO: 52.5 MB #Memory Used# [2025-02-14 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:32:06 [end_date_ymd] => 2025-02-14 19:32:06 [RateCDR] => 1 ) [2025-02-14 19:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 16:32:06' and `end` < '2025-02-14 19:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 19:32:22] Production.INFO: count ==3238 [2025-02-14 19:32:23] Production.ERROR: pbx CDR StartTime 2025-02-14 16:32:06 - End Time 2025-02-14 19:32:06 [2025-02-14 19:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475896', 'tblTempUsageDetail_20' ) start [2025-02-14 19:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475896', 'tblTempUsageDetail_20' ) end [2025-02-14 19:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475896', 'tblTempVendorCDR_20' ) start [2025-02-14 19:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475896', 'tblTempVendorCDR_20' ) end [2025-02-14 19:32:23] Production.INFO: ProcessCDR(1,14475896,1,1,2) [2025-02-14 19:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475896', 'tblTempUsageDetail_20' ) start [2025-02-14 19:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475896', 'tblTempUsageDetail_20' ) end [2025-02-14 19:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:32:26] Production.INFO: ==24084== Releasing lock... [2025-02-14 19:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:32:26] Production.INFO: 53 MB #Memory Used# [2025-02-14 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:33:05 [end_date_ymd] => 2025-02-14 19:33:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:33:05' and `end` < '2025-02-14 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-02-14 19:33:20] Production.INFO: count ==3234 [2025-02-14 19:33:21] Production.ERROR: pbx CDR StartTime 2025-02-14 16:33:05 - End Time 2025-02-14 19:33:05 [2025-02-14 19:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475901', 'tblTempUsageDetail_20' ) start [2025-02-14 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475901', 'tblTempUsageDetail_20' ) end [2025-02-14 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475901', 'tblTempVendorCDR_20' ) start [2025-02-14 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475901', 'tblTempVendorCDR_20' ) end [2025-02-14 19:33:21] Production.INFO: ProcessCDR(1,14475901,1,1,2) [2025-02-14 19:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475901', 'tblTempUsageDetail_20' ) start [2025-02-14 19:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475901', 'tblTempUsageDetail_20' ) end [2025-02-14 19:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:33:26] Production.INFO: ==24156== Releasing lock... [2025-02-14 19:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:33:26] Production.INFO: 52 MB #Memory Used# [2025-02-14 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:34:06 [end_date_ymd] => 2025-02-14 19:34:06 [RateCDR] => 1 ) [2025-02-14 19:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 16:34:06' and `end` < '2025-02-14 19:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 19:34:19] Production.INFO: count ==3204 [2025-02-14 19:34:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:34:06 - End Time 2025-02-14 19:34:06 [2025-02-14 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475906', 'tblTempUsageDetail_20' ) start [2025-02-14 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475906', 'tblTempUsageDetail_20' ) end [2025-02-14 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475906', 'tblTempVendorCDR_20' ) start [2025-02-14 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475906', 'tblTempVendorCDR_20' ) end [2025-02-14 19:34:20] Production.INFO: ProcessCDR(1,14475906,1,1,2) [2025-02-14 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475906', 'tblTempUsageDetail_20' ) start [2025-02-14 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475906', 'tblTempUsageDetail_20' ) end [2025-02-14 19:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:34:25] Production.INFO: ==24227== Releasing lock... [2025-02-14 19:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:34:25] Production.INFO: 52.25 MB #Memory Used# [2025-02-14 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:35:05 [end_date_ymd] => 2025-02-14 19:35:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:35:05' and `end` < '2025-02-14 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-02-14 19:35:18] Production.INFO: count ==3176 [2025-02-14 19:35:19] Production.ERROR: pbx CDR StartTime 2025-02-14 16:35:05 - End Time 2025-02-14 19:35:05 [2025-02-14 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475911', 'tblTempUsageDetail_20' ) start [2025-02-14 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475911', 'tblTempUsageDetail_20' ) end [2025-02-14 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475911', 'tblTempVendorCDR_20' ) start [2025-02-14 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475911', 'tblTempVendorCDR_20' ) end [2025-02-14 19:35:19] Production.INFO: ProcessCDR(1,14475911,1,1,2) [2025-02-14 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475911', 'tblTempUsageDetail_20' ) start [2025-02-14 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475911', 'tblTempUsageDetail_20' ) end [2025-02-14 19:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:35:24] Production.INFO: ==24298== Releasing lock... [2025-02-14 19:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:35:24] Production.INFO: 51.75 MB #Memory Used# [2025-02-14 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:36:05 [end_date_ymd] => 2025-02-14 19:36:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:36:05' and `end` < '2025-02-14 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-02-14 19:36:19] Production.INFO: count ==3160 [2025-02-14 19:36:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:36:05 - End Time 2025-02-14 19:36:05 [2025-02-14 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475916', 'tblTempUsageDetail_20' ) start [2025-02-14 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475916', 'tblTempUsageDetail_20' ) end [2025-02-14 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475916', 'tblTempVendorCDR_20' ) start [2025-02-14 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475916', 'tblTempVendorCDR_20' ) end [2025-02-14 19:36:20] Production.INFO: ProcessCDR(1,14475916,1,1,2) [2025-02-14 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475916', 'tblTempUsageDetail_20' ) start [2025-02-14 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475916', 'tblTempUsageDetail_20' ) end [2025-02-14 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:36:23] Production.INFO: ==24371== Releasing lock... [2025-02-14 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:36:23] Production.INFO: 51.5 MB #Memory Used# [2025-02-14 19:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:37:04 [end_date_ymd] => 2025-02-14 19:37:04 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:37:04' and `end` < '2025-02-14 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-02-14 19:37:24] Production.INFO: count ==3158 [2025-02-14 19:37:25] Production.ERROR: pbx CDR StartTime 2025-02-14 16:37:04 - End Time 2025-02-14 19:37:04 [2025-02-14 19:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475921', 'tblTempUsageDetail_20' ) start [2025-02-14 19:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475921', 'tblTempUsageDetail_20' ) end [2025-02-14 19:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475921', 'tblTempVendorCDR_20' ) start [2025-02-14 19:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475921', 'tblTempVendorCDR_20' ) end [2025-02-14 19:37:25] Production.INFO: ProcessCDR(1,14475921,1,1,2) [2025-02-14 19:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475921', 'tblTempUsageDetail_20' ) start [2025-02-14 19:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475921', 'tblTempUsageDetail_20' ) end [2025-02-14 19:37:29] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:37:30] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:37:30] Production.INFO: ==24447== Releasing lock... [2025-02-14 19:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:37:30] Production.INFO: 51.5 MB #Memory Used# [2025-02-14 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:38:05 [end_date_ymd] => 2025-02-14 19:38:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:38:05' and `end` < '2025-02-14 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-02-14 19:38:19] Production.INFO: count ==3152 [2025-02-14 19:38:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:38:05 - End Time 2025-02-14 19:38:05 [2025-02-14 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475926', 'tblTempUsageDetail_20' ) start [2025-02-14 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475926', 'tblTempUsageDetail_20' ) end [2025-02-14 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475926', 'tblTempVendorCDR_20' ) start [2025-02-14 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475926', 'tblTempVendorCDR_20' ) end [2025-02-14 19:38:20] Production.INFO: ProcessCDR(1,14475926,1,1,2) [2025-02-14 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475926', 'tblTempUsageDetail_20' ) start [2025-02-14 19:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475926', 'tblTempUsageDetail_20' ) end [2025-02-14 19:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:38:25] Production.INFO: ==24559== Releasing lock... [2025-02-14 19:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:38:25] Production.INFO: 52 MB #Memory Used# [2025-02-14 19:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:39:04 [end_date_ymd] => 2025-02-14 19:39:04 [RateCDR] => 1 ) [2025-02-14 19: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-02-14 16:39:04' and `end` < '2025-02-14 19: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-02-14 19:39:18] Production.INFO: count ==3144 [2025-02-14 19:39:19] Production.ERROR: pbx CDR StartTime 2025-02-14 16:39:04 - End Time 2025-02-14 19:39:04 [2025-02-14 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475931', 'tblTempUsageDetail_20' ) start [2025-02-14 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475931', 'tblTempUsageDetail_20' ) end [2025-02-14 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475931', 'tblTempVendorCDR_20' ) start [2025-02-14 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475931', 'tblTempVendorCDR_20' ) end [2025-02-14 19:39:19] Production.INFO: ProcessCDR(1,14475931,1,1,2) [2025-02-14 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475931', 'tblTempUsageDetail_20' ) start [2025-02-14 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475931', 'tblTempUsageDetail_20' ) end [2025-02-14 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:39:22] Production.INFO: ==24628== Releasing lock... [2025-02-14 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:39:22] Production.INFO: 52 MB #Memory Used# [2025-02-14 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:40:06 [end_date_ymd] => 2025-02-14 19:40:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:40:06' and `end` < '2025-02-14 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-02-14 19:40:21] Production.INFO: count ==3153 [2025-02-14 19:40:22] Production.ERROR: pbx CDR StartTime 2025-02-14 16:40:06 - End Time 2025-02-14 19:40:06 [2025-02-14 19:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475937', 'tblTempUsageDetail_20' ) start [2025-02-14 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475937', 'tblTempUsageDetail_20' ) end [2025-02-14 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475937', 'tblTempVendorCDR_20' ) start [2025-02-14 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475937', 'tblTempVendorCDR_20' ) end [2025-02-14 19:40:22] Production.INFO: ProcessCDR(1,14475937,1,1,2) [2025-02-14 19:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475937', 'tblTempUsageDetail_20' ) start [2025-02-14 19:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475937', 'tblTempUsageDetail_20' ) end [2025-02-14 19:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:40:26] Production.INFO: ==24703== Releasing lock... [2025-02-14 19:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:40:26] Production.INFO: 52.5 MB #Memory Used# [2025-02-14 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:41:05 [end_date_ymd] => 2025-02-14 19:41:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:41:05' and `end` < '2025-02-14 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-02-14 19:41:20] Production.INFO: count ==3163 [2025-02-14 19:41:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:41:05 - End Time 2025-02-14 19:41:05 [2025-02-14 19:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475942', 'tblTempUsageDetail_20' ) start [2025-02-14 19:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475942', 'tblTempUsageDetail_20' ) end [2025-02-14 19:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475942', 'tblTempVendorCDR_20' ) start [2025-02-14 19:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475942', 'tblTempVendorCDR_20' ) end [2025-02-14 19:41:21] Production.INFO: ProcessCDR(1,14475942,1,1,2) [2025-02-14 19:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475942', 'tblTempUsageDetail_20' ) start [2025-02-14 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475942', 'tblTempUsageDetail_20' ) end [2025-02-14 19:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:41:24] Production.INFO: ==24776== Releasing lock... [2025-02-14 19:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:41:24] Production.INFO: 52 MB #Memory Used# [2025-02-14 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:42:05 [end_date_ymd] => 2025-02-14 19:42:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:42:05' and `end` < '2025-02-14 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-02-14 19:42:19] Production.INFO: count ==3181 [2025-02-14 19:42:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:42:05 - End Time 2025-02-14 19:42:05 [2025-02-14 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475947', 'tblTempUsageDetail_20' ) start [2025-02-14 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475947', 'tblTempUsageDetail_20' ) end [2025-02-14 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475947', 'tblTempVendorCDR_20' ) start [2025-02-14 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475947', 'tblTempVendorCDR_20' ) end [2025-02-14 19:42:20] Production.INFO: ProcessCDR(1,14475947,1,1,2) [2025-02-14 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475947', 'tblTempUsageDetail_20' ) start [2025-02-14 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475947', 'tblTempUsageDetail_20' ) end [2025-02-14 19:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:42:25] Production.INFO: ==24867== Releasing lock... [2025-02-14 19:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:42:25] Production.INFO: 52.5 MB #Memory Used# [2025-02-14 19:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:43:06 [end_date_ymd] => 2025-02-14 19:43:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:43:06' and `end` < '2025-02-14 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-02-14 19:43:20] Production.INFO: count ==3250 [2025-02-14 19:43:21] Production.ERROR: pbx CDR StartTime 2025-02-14 16:43:06 - End Time 2025-02-14 19:43:06 [2025-02-14 19:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475952', 'tblTempUsageDetail_20' ) start [2025-02-14 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475952', 'tblTempUsageDetail_20' ) end [2025-02-14 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475952', 'tblTempVendorCDR_20' ) start [2025-02-14 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475952', 'tblTempVendorCDR_20' ) end [2025-02-14 19:43:21] Production.INFO: ProcessCDR(1,14475952,1,1,2) [2025-02-14 19:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475952', 'tblTempUsageDetail_20' ) start [2025-02-14 19:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475952', 'tblTempUsageDetail_20' ) end [2025-02-14 19:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:43:26] Production.INFO: ==24962== Releasing lock... [2025-02-14 19:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:43:26] Production.INFO: 52.25 MB #Memory Used# [2025-02-14 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:44:05 [end_date_ymd] => 2025-02-14 19:44:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:44:05' and `end` < '2025-02-14 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-02-14 19:44:21] Production.INFO: count ==3240 [2025-02-14 19:44:22] Production.ERROR: pbx CDR StartTime 2025-02-14 16:44:05 - End Time 2025-02-14 19:44:05 [2025-02-14 19:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475957', 'tblTempUsageDetail_20' ) start [2025-02-14 19:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475957', 'tblTempUsageDetail_20' ) end [2025-02-14 19:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475957', 'tblTempVendorCDR_20' ) start [2025-02-14 19:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475957', 'tblTempVendorCDR_20' ) end [2025-02-14 19:44:22] Production.INFO: ProcessCDR(1,14475957,1,1,2) [2025-02-14 19:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475957', 'tblTempUsageDetail_20' ) start [2025-02-14 19:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475957', 'tblTempUsageDetail_20' ) end [2025-02-14 19:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:44:27] Production.INFO: ==25059== Releasing lock... [2025-02-14 19:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:44:27] Production.INFO: 52 MB #Memory Used# [2025-02-14 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:45:05 [end_date_ymd] => 2025-02-14 19:45:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:45:05' and `end` < '2025-02-14 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-02-14 19:45:20] Production.INFO: count ==3234 [2025-02-14 19:45:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:45:05 - End Time 2025-02-14 19:45:05 [2025-02-14 19:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475962', 'tblTempUsageDetail_20' ) start [2025-02-14 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475962', 'tblTempUsageDetail_20' ) end [2025-02-14 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475962', 'tblTempVendorCDR_20' ) start [2025-02-14 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475962', 'tblTempVendorCDR_20' ) end [2025-02-14 19:45:20] Production.INFO: ProcessCDR(1,14475962,1,1,2) [2025-02-14 19:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475962', 'tblTempUsageDetail_20' ) start [2025-02-14 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475962', 'tblTempUsageDetail_20' ) end [2025-02-14 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:45:24] Production.INFO: ==25147== Releasing lock... [2025-02-14 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:45:24] Production.INFO: 52 MB #Memory Used# [2025-02-14 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:46:05 [end_date_ymd] => 2025-02-14 19:46:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:46:05' and `end` < '2025-02-14 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-02-14 19:46:19] Production.INFO: count ==3234 [2025-02-14 19:46:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:46:05 - End Time 2025-02-14 19:46:05 [2025-02-14 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475967', 'tblTempUsageDetail_20' ) start [2025-02-14 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475967', 'tblTempUsageDetail_20' ) end [2025-02-14 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475967', 'tblTempVendorCDR_20' ) start [2025-02-14 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475967', 'tblTempVendorCDR_20' ) end [2025-02-14 19:46:20] Production.INFO: ProcessCDR(1,14475967,1,1,2) [2025-02-14 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475967', 'tblTempUsageDetail_20' ) start [2025-02-14 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475967', 'tblTempUsageDetail_20' ) end [2025-02-14 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:46:23] Production.INFO: ==25219== Releasing lock... [2025-02-14 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:46:23] Production.INFO: 52.5 MB #Memory Used# [2025-02-14 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:47:05 [end_date_ymd] => 2025-02-14 19:47:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:47:05' and `end` < '2025-02-14 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-02-14 19:47:20] Production.INFO: count ==3224 [2025-02-14 19:47:21] Production.ERROR: pbx CDR StartTime 2025-02-14 16:47:05 - End Time 2025-02-14 19:47:05 [2025-02-14 19:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475972', 'tblTempUsageDetail_20' ) start [2025-02-14 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475972', 'tblTempUsageDetail_20' ) end [2025-02-14 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475972', 'tblTempVendorCDR_20' ) start [2025-02-14 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475972', 'tblTempVendorCDR_20' ) end [2025-02-14 19:47:21] Production.INFO: ProcessCDR(1,14475972,1,1,2) [2025-02-14 19:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475972', 'tblTempUsageDetail_20' ) start [2025-02-14 19:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475972', 'tblTempUsageDetail_20' ) end [2025-02-14 19:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:47:26] Production.INFO: ==25294== Releasing lock... [2025-02-14 19:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:47:26] Production.INFO: 52 MB #Memory Used# [2025-02-14 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:48:05 [end_date_ymd] => 2025-02-14 19:48:05 [RateCDR] => 1 ) [2025-02-14 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 16:48:05' and `end` < '2025-02-14 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 19:48:21] Production.INFO: count ==3225 [2025-02-14 19:48:22] Production.ERROR: pbx CDR StartTime 2025-02-14 16:48:05 - End Time 2025-02-14 19:48:05 [2025-02-14 19:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475977', 'tblTempUsageDetail_20' ) start [2025-02-14 19:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475977', 'tblTempUsageDetail_20' ) end [2025-02-14 19:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475977', 'tblTempVendorCDR_20' ) start [2025-02-14 19:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475977', 'tblTempVendorCDR_20' ) end [2025-02-14 19:48:22] Production.INFO: ProcessCDR(1,14475977,1,1,2) [2025-02-14 19:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475977', 'tblTempUsageDetail_20' ) start [2025-02-14 19:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475977', 'tblTempUsageDetail_20' ) end [2025-02-14 19:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:48:25] Production.INFO: ==25367== Releasing lock... [2025-02-14 19:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:48:25] Production.INFO: 52 MB #Memory Used# [2025-02-14 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:49:05 [end_date_ymd] => 2025-02-14 19:49:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:49:05' and `end` < '2025-02-14 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-02-14 19:49:18] Production.INFO: count ==3201 [2025-02-14 19:49:19] Production.ERROR: pbx CDR StartTime 2025-02-14 16:49:05 - End Time 2025-02-14 19:49:05 [2025-02-14 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475982', 'tblTempUsageDetail_20' ) start [2025-02-14 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475982', 'tblTempUsageDetail_20' ) end [2025-02-14 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475982', 'tblTempVendorCDR_20' ) start [2025-02-14 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475982', 'tblTempVendorCDR_20' ) end [2025-02-14 19:49:19] Production.INFO: ProcessCDR(1,14475982,1,1,2) [2025-02-14 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475982', 'tblTempUsageDetail_20' ) start [2025-02-14 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475982', 'tblTempUsageDetail_20' ) end [2025-02-14 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:49:22] Production.INFO: ==25438== Releasing lock... [2025-02-14 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:49:22] Production.INFO: 51.75 MB #Memory Used# [2025-02-14 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:50:06 [end_date_ymd] => 2025-02-14 19:50:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:50:06' and `end` < '2025-02-14 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-02-14 19:50:21] Production.INFO: count ==3190 [2025-02-14 19:50:22] Production.ERROR: pbx CDR StartTime 2025-02-14 16:50:06 - End Time 2025-02-14 19:50:06 [2025-02-14 19:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475988', 'tblTempUsageDetail_20' ) start [2025-02-14 19:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475988', 'tblTempUsageDetail_20' ) end [2025-02-14 19:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475988', 'tblTempVendorCDR_20' ) start [2025-02-14 19:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475988', 'tblTempVendorCDR_20' ) end [2025-02-14 19:50:22] Production.INFO: ProcessCDR(1,14475988,1,1,2) [2025-02-14 19:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475988', 'tblTempUsageDetail_20' ) start [2025-02-14 19:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475988', 'tblTempUsageDetail_20' ) end [2025-02-14 19:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:50:27] Production.INFO: ==25511== Releasing lock... [2025-02-14 19:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:50:27] Production.INFO: 51.75 MB #Memory Used# [2025-02-14 19:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:51:04 [end_date_ymd] => 2025-02-14 19:51:04 [RateCDR] => 1 ) [2025-02-14 19: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-02-14 16:51:04' and `end` < '2025-02-14 19: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-02-14 19:51:18] Production.INFO: count ==3144 [2025-02-14 19:51:19] Production.ERROR: pbx CDR StartTime 2025-02-14 16:51:04 - End Time 2025-02-14 19:51:04 [2025-02-14 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475993', 'tblTempUsageDetail_20' ) start [2025-02-14 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475993', 'tblTempUsageDetail_20' ) end [2025-02-14 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475993', 'tblTempVendorCDR_20' ) start [2025-02-14 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475993', 'tblTempVendorCDR_20' ) end [2025-02-14 19:51:19] Production.INFO: ProcessCDR(1,14475993,1,1,2) [2025-02-14 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475993', 'tblTempUsageDetail_20' ) start [2025-02-14 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475993', 'tblTempUsageDetail_20' ) end [2025-02-14 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:51:22] Production.INFO: ==25588== Releasing lock... [2025-02-14 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:51:22] Production.INFO: 51.5 MB #Memory Used# [2025-02-14 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:52:05 [end_date_ymd] => 2025-02-14 19:52:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:52:05' and `end` < '2025-02-14 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-02-14 19:52:19] Production.INFO: count ==3131 [2025-02-14 19:52:19] Production.ERROR: pbx CDR StartTime 2025-02-14 16:52:05 - End Time 2025-02-14 19:52:05 [2025-02-14 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475998', 'tblTempUsageDetail_20' ) start [2025-02-14 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14475998', 'tblTempUsageDetail_20' ) end [2025-02-14 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475998', 'tblTempVendorCDR_20' ) start [2025-02-14 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14475998', 'tblTempVendorCDR_20' ) end [2025-02-14 19:52:19] Production.INFO: ProcessCDR(1,14475998,1,1,2) [2025-02-14 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14475998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14475998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14475998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14475998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475998', 'tblTempUsageDetail_20' ) start [2025-02-14 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14475998', 'tblTempUsageDetail_20' ) end [2025-02-14 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:52:23] Production.INFO: ==25663== Releasing lock... [2025-02-14 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:52:23] Production.INFO: 52.25 MB #Memory Used# [2025-02-14 19:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:53:06 [end_date_ymd] => 2025-02-14 19:53:06 [RateCDR] => 1 ) [2025-02-14 19: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-02-14 16:53:06' and `end` < '2025-02-14 19: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-02-14 19:53:19] Production.INFO: count ==3117 [2025-02-14 19:53:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:53:06 - End Time 2025-02-14 19:53:06 [2025-02-14 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476003', 'tblTempUsageDetail_20' ) start [2025-02-14 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476003', 'tblTempUsageDetail_20' ) end [2025-02-14 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476003', 'tblTempVendorCDR_20' ) start [2025-02-14 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476003', 'tblTempVendorCDR_20' ) end [2025-02-14 19:53:20] Production.INFO: ProcessCDR(1,14476003,1,1,2) [2025-02-14 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476003', 'tblTempUsageDetail_20' ) start [2025-02-14 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476003', 'tblTempUsageDetail_20' ) end [2025-02-14 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:53:23] Production.INFO: ==25773== Releasing lock... [2025-02-14 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:53:23] Production.INFO: 51.25 MB #Memory Used# [2025-02-14 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:54:05 [end_date_ymd] => 2025-02-14 19:54:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:54:05' and `end` < '2025-02-14 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-02-14 19:54:19] Production.INFO: count ==3108 [2025-02-14 19:54:19] Production.ERROR: pbx CDR StartTime 2025-02-14 16:54:05 - End Time 2025-02-14 19:54:05 [2025-02-14 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476008', 'tblTempUsageDetail_20' ) start [2025-02-14 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476008', 'tblTempUsageDetail_20' ) end [2025-02-14 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476008', 'tblTempVendorCDR_20' ) start [2025-02-14 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476008', 'tblTempVendorCDR_20' ) end [2025-02-14 19:54:19] Production.INFO: ProcessCDR(1,14476008,1,1,2) [2025-02-14 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476008', 'tblTempUsageDetail_20' ) start [2025-02-14 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476008', 'tblTempUsageDetail_20' ) end [2025-02-14 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:54:23] Production.INFO: ==25845== Releasing lock... [2025-02-14 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:54:23] Production.INFO: 51 MB #Memory Used# [2025-02-14 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:55:06 [end_date_ymd] => 2025-02-14 19:55:06 [RateCDR] => 1 ) [2025-02-14 19:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 16:55:06' and `end` < '2025-02-14 19:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 19:55:20] Production.INFO: count ==3098 [2025-02-14 19:55:21] Production.ERROR: pbx CDR StartTime 2025-02-14 16:55:06 - End Time 2025-02-14 19:55:06 [2025-02-14 19:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476013', 'tblTempUsageDetail_20' ) start [2025-02-14 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476013', 'tblTempUsageDetail_20' ) end [2025-02-14 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476013', 'tblTempVendorCDR_20' ) start [2025-02-14 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476013', 'tblTempVendorCDR_20' ) end [2025-02-14 19:55:21] Production.INFO: ProcessCDR(1,14476013,1,1,2) [2025-02-14 19:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476013', 'tblTempUsageDetail_20' ) start [2025-02-14 19:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476013', 'tblTempUsageDetail_20' ) end [2025-02-14 19:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:55:26] Production.INFO: ==25919== Releasing lock... [2025-02-14 19:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:55:26] Production.INFO: 51.25 MB #Memory Used# [2025-02-14 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:56:05 [end_date_ymd] => 2025-02-14 19:56:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:56:05' and `end` < '2025-02-14 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-02-14 19:56:21] Production.INFO: count ==3081 [2025-02-14 19:56:21] Production.ERROR: pbx CDR StartTime 2025-02-14 16:56:05 - End Time 2025-02-14 19:56:05 [2025-02-14 19:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476018', 'tblTempUsageDetail_20' ) start [2025-02-14 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476018', 'tblTempUsageDetail_20' ) end [2025-02-14 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476018', 'tblTempVendorCDR_20' ) start [2025-02-14 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476018', 'tblTempVendorCDR_20' ) end [2025-02-14 19:56:21] Production.INFO: ProcessCDR(1,14476018,1,1,2) [2025-02-14 19:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476018', 'tblTempUsageDetail_20' ) start [2025-02-14 19:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476018', 'tblTempUsageDetail_20' ) end [2025-02-14 19:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:56:26] Production.INFO: ==25992== Releasing lock... [2025-02-14 19:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:56:26] Production.INFO: 51 MB #Memory Used# [2025-02-14 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:57:05 [end_date_ymd] => 2025-02-14 19:57:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:57:05' and `end` < '2025-02-14 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-02-14 19:57:19] Production.INFO: count ==3080 [2025-02-14 19:57:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:57:05 - End Time 2025-02-14 19:57:05 [2025-02-14 19:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476023', 'tblTempUsageDetail_20' ) start [2025-02-14 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476023', 'tblTempUsageDetail_20' ) end [2025-02-14 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476023', 'tblTempVendorCDR_20' ) start [2025-02-14 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476023', 'tblTempVendorCDR_20' ) end [2025-02-14 19:57:20] Production.INFO: ProcessCDR(1,14476023,1,1,2) [2025-02-14 19:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476023', 'tblTempUsageDetail_20' ) start [2025-02-14 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476023', 'tblTempUsageDetail_20' ) end [2025-02-14 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:57:23] Production.INFO: ==26065== Releasing lock... [2025-02-14 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:57:23] Production.INFO: 51 MB #Memory Used# [2025-02-14 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:58:05 [end_date_ymd] => 2025-02-14 19:58:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 16:58:05' and `end` < '2025-02-14 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-02-14 19:58:18] Production.INFO: count ==3071 [2025-02-14 19:58:19] Production.ERROR: pbx CDR StartTime 2025-02-14 16:58:05 - End Time 2025-02-14 19:58:05 [2025-02-14 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476028', 'tblTempUsageDetail_20' ) start [2025-02-14 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476028', 'tblTempUsageDetail_20' ) end [2025-02-14 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476028', 'tblTempVendorCDR_20' ) start [2025-02-14 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476028', 'tblTempVendorCDR_20' ) end [2025-02-14 19:58:19] Production.INFO: ProcessCDR(1,14476028,1,1,2) [2025-02-14 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476028', 'tblTempUsageDetail_20' ) start [2025-02-14 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476028', 'tblTempUsageDetail_20' ) end [2025-02-14 19:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:58:24] Production.INFO: ==26136== Releasing lock... [2025-02-14 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:58:24] Production.INFO: 50.75 MB #Memory Used# [2025-02-14 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 16:59:05 [end_date_ymd] => 2025-02-14 19:59:05 [RateCDR] => 1 ) [2025-02-14 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 16:59:05' and `end` < '2025-02-14 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 19:59:19] Production.INFO: count ==3071 [2025-02-14 19:59:20] Production.ERROR: pbx CDR StartTime 2025-02-14 16:59:05 - End Time 2025-02-14 19:59:05 [2025-02-14 19:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476033', 'tblTempUsageDetail_20' ) start [2025-02-14 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476033', 'tblTempUsageDetail_20' ) end [2025-02-14 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476033', 'tblTempVendorCDR_20' ) start [2025-02-14 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476033', 'tblTempVendorCDR_20' ) end [2025-02-14 19:59:20] Production.INFO: ProcessCDR(1,14476033,1,1,2) [2025-02-14 19:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 19:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 19:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476033', 'tblTempUsageDetail_20' ) start [2025-02-14 19:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476033', 'tblTempUsageDetail_20' ) end [2025-02-14 19:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 19:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 19:59:25] Production.INFO: ==26207== Releasing lock... [2025-02-14 19:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 19:59:25] Production.INFO: 50.75 MB #Memory Used# [2025-02-14 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:00:06 [end_date_ymd] => 2025-02-14 20:00:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:00:06' and `end` < '2025-02-14 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-02-14 20:00:20] Production.INFO: count ==3070 [2025-02-14 20:00:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:00:06 - End Time 2025-02-14 20:00:06 [2025-02-14 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476038', 'tblTempUsageDetail_20' ) start [2025-02-14 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476038', 'tblTempUsageDetail_20' ) end [2025-02-14 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476038', 'tblTempVendorCDR_20' ) start [2025-02-14 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476038', 'tblTempVendorCDR_20' ) end [2025-02-14 20:00:21] Production.INFO: ProcessCDR(1,14476038,1,1,2) [2025-02-14 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476038', 'tblTempUsageDetail_20' ) start [2025-02-14 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476038', 'tblTempUsageDetail_20' ) end [2025-02-14 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:00:24] Production.INFO: ==26281== Releasing lock... [2025-02-14 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:00:24] Production.INFO: 50.75 MB #Memory Used# [2025-02-14 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:01:06 [end_date_ymd] => 2025-02-14 20:01:06 [RateCDR] => 1 ) [2025-02-14 20:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:01:06' and `end` < '2025-02-14 20:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:01:19] Production.INFO: count ==3052 [2025-02-14 20:01:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:01:06 - End Time 2025-02-14 20:01:06 [2025-02-14 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476044', 'tblTempUsageDetail_20' ) start [2025-02-14 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476044', 'tblTempUsageDetail_20' ) end [2025-02-14 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476044', 'tblTempVendorCDR_20' ) start [2025-02-14 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476044', 'tblTempVendorCDR_20' ) end [2025-02-14 20:01:20] Production.INFO: ProcessCDR(1,14476044,1,1,2) [2025-02-14 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476044', 'tblTempUsageDetail_20' ) start [2025-02-14 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476044', 'tblTempUsageDetail_20' ) end [2025-02-14 20:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:01:25] Production.INFO: ==26406== Releasing lock... [2025-02-14 20:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:01:25] Production.INFO: 50.75 MB #Memory Used# [2025-02-14 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:02:05 [end_date_ymd] => 2025-02-14 20:02:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:02:05' and `end` < '2025-02-14 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-02-14 20:02:19] Production.INFO: count ==3041 [2025-02-14 20:02:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:02:05 - End Time 2025-02-14 20:02:05 [2025-02-14 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476049', 'tblTempUsageDetail_20' ) start [2025-02-14 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476049', 'tblTempUsageDetail_20' ) end [2025-02-14 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476049', 'tblTempVendorCDR_20' ) start [2025-02-14 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476049', 'tblTempVendorCDR_20' ) end [2025-02-14 20:02:20] Production.INFO: ProcessCDR(1,14476049,1,1,2) [2025-02-14 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476049', 'tblTempUsageDetail_20' ) start [2025-02-14 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476049', 'tblTempUsageDetail_20' ) end [2025-02-14 20:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:02:25] Production.INFO: ==26476== Releasing lock... [2025-02-14 20:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:02:25] Production.INFO: 50.5 MB #Memory Used# [2025-02-14 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:03:06 [end_date_ymd] => 2025-02-14 20:03:06 [RateCDR] => 1 ) [2025-02-14 20:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:03:06' and `end` < '2025-02-14 20:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:03:19] Production.INFO: count ==3032 [2025-02-14 20:03:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:03:06 - End Time 2025-02-14 20:03:06 [2025-02-14 20:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476054', 'tblTempUsageDetail_20' ) start [2025-02-14 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476054', 'tblTempUsageDetail_20' ) end [2025-02-14 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476054', 'tblTempVendorCDR_20' ) start [2025-02-14 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476054', 'tblTempVendorCDR_20' ) end [2025-02-14 20:03:20] Production.INFO: ProcessCDR(1,14476054,1,1,2) [2025-02-14 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476054', 'tblTempUsageDetail_20' ) start [2025-02-14 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476054', 'tblTempUsageDetail_20' ) end [2025-02-14 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:03:23] Production.INFO: ==26548== Releasing lock... [2025-02-14 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:03:23] Production.INFO: 50.5 MB #Memory Used# [2025-02-14 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:04:05 [end_date_ymd] => 2025-02-14 20:04:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:04:05' and `end` < '2025-02-14 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-02-14 20:04:20] Production.INFO: count ==3027 [2025-02-14 20:04:21] Production.ERROR: pbx CDR StartTime 2025-02-14 17:04:05 - End Time 2025-02-14 20:04:05 [2025-02-14 20:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476059', 'tblTempUsageDetail_20' ) start [2025-02-14 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476059', 'tblTempUsageDetail_20' ) end [2025-02-14 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476059', 'tblTempVendorCDR_20' ) start [2025-02-14 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476059', 'tblTempVendorCDR_20' ) end [2025-02-14 20:04:21] Production.INFO: ProcessCDR(1,14476059,1,1,2) [2025-02-14 20:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476059', 'tblTempUsageDetail_20' ) start [2025-02-14 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476059', 'tblTempUsageDetail_20' ) end [2025-02-14 20:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:04:24] Production.INFO: ==26620== Releasing lock... [2025-02-14 20:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:04:24] Production.INFO: 51.25 MB #Memory Used# [2025-02-14 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:05:05 [end_date_ymd] => 2025-02-14 20:05:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:05:05' and `end` < '2025-02-14 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-02-14 20:05:20] Production.INFO: count ==2982 [2025-02-14 20:05:21] Production.ERROR: pbx CDR StartTime 2025-02-14 17:05:05 - End Time 2025-02-14 20:05:05 [2025-02-14 20:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476064', 'tblTempUsageDetail_20' ) start [2025-02-14 20:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476064', 'tblTempUsageDetail_20' ) end [2025-02-14 20:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476064', 'tblTempVendorCDR_20' ) start [2025-02-14 20:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476064', 'tblTempVendorCDR_20' ) end [2025-02-14 20:05:21] Production.INFO: ProcessCDR(1,14476064,1,1,2) [2025-02-14 20:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476064', 'tblTempUsageDetail_20' ) start [2025-02-14 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476064', 'tblTempUsageDetail_20' ) end [2025-02-14 20:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:05:24] Production.INFO: ==26699== Releasing lock... [2025-02-14 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:05:24] Production.INFO: 50.25 MB #Memory Used# [2025-02-14 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:06:05 [end_date_ymd] => 2025-02-14 20:06:05 [RateCDR] => 1 ) [2025-02-14 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:06:05' and `end` < '2025-02-14 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:06:18] Production.INFO: count ==2973 [2025-02-14 20:06:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:06:05 - End Time 2025-02-14 20:06:05 [2025-02-14 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476069', 'tblTempUsageDetail_20' ) start [2025-02-14 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476069', 'tblTempUsageDetail_20' ) end [2025-02-14 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476069', 'tblTempVendorCDR_20' ) start [2025-02-14 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476069', 'tblTempVendorCDR_20' ) end [2025-02-14 20:06:19] Production.INFO: ProcessCDR(1,14476069,1,1,2) [2025-02-14 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476069', 'tblTempUsageDetail_20' ) start [2025-02-14 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476069', 'tblTempUsageDetail_20' ) end [2025-02-14 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:06:22] Production.INFO: ==26773== Releasing lock... [2025-02-14 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:06:22] Production.INFO: 49.75 MB #Memory Used# [2025-02-14 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:07:05 [end_date_ymd] => 2025-02-14 20:07:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:07:05' and `end` < '2025-02-14 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-02-14 20:07:19] Production.INFO: count ==2966 [2025-02-14 20:07:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:07:05 - End Time 2025-02-14 20:07:05 [2025-02-14 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476074', 'tblTempUsageDetail_20' ) start [2025-02-14 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476074', 'tblTempUsageDetail_20' ) end [2025-02-14 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476074', 'tblTempVendorCDR_20' ) start [2025-02-14 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476074', 'tblTempVendorCDR_20' ) end [2025-02-14 20:07:19] Production.INFO: ProcessCDR(1,14476074,1,1,2) [2025-02-14 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476074', 'tblTempUsageDetail_20' ) start [2025-02-14 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476074', 'tblTempUsageDetail_20' ) end [2025-02-14 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:07:23] Production.INFO: ==26846== Releasing lock... [2025-02-14 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:07:23] Production.INFO: 49.75 MB #Memory Used# [2025-02-14 20:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:08:04 [end_date_ymd] => 2025-02-14 20:08:04 [RateCDR] => 1 ) [2025-02-14 20: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-02-14 17:08:04' and `end` < '2025-02-14 20: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-02-14 20:08:18] Production.INFO: count ==2959 [2025-02-14 20:08:18] Production.ERROR: pbx CDR StartTime 2025-02-14 17:08:04 - End Time 2025-02-14 20:08:04 [2025-02-14 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476079', 'tblTempUsageDetail_20' ) start [2025-02-14 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476079', 'tblTempUsageDetail_20' ) end [2025-02-14 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476079', 'tblTempVendorCDR_20' ) start [2025-02-14 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476079', 'tblTempVendorCDR_20' ) end [2025-02-14 20:08:19] Production.INFO: ProcessCDR(1,14476079,1,1,2) [2025-02-14 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476079', 'tblTempUsageDetail_20' ) start [2025-02-14 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476079', 'tblTempUsageDetail_20' ) end [2025-02-14 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:08:22] Production.INFO: ==26919== Releasing lock... [2025-02-14 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:08:22] Production.INFO: 49.75 MB #Memory Used# [2025-02-14 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:09:05 [end_date_ymd] => 2025-02-14 20:09:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:09:05' and `end` < '2025-02-14 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-02-14 20:09:19] Production.INFO: count ==2951 [2025-02-14 20:09:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:09:05 - End Time 2025-02-14 20:09:05 [2025-02-14 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476084', 'tblTempUsageDetail_20' ) start [2025-02-14 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476084', 'tblTempUsageDetail_20' ) end [2025-02-14 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476084', 'tblTempVendorCDR_20' ) start [2025-02-14 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476084', 'tblTempVendorCDR_20' ) end [2025-02-14 20:09:19] Production.INFO: ProcessCDR(1,14476084,1,1,2) [2025-02-14 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476084', 'tblTempUsageDetail_20' ) start [2025-02-14 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476084', 'tblTempUsageDetail_20' ) end [2025-02-14 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:09:24] Production.INFO: ==27032== Releasing lock... [2025-02-14 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:09:24] Production.INFO: 49.75 MB #Memory Used# [2025-02-14 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:10:05 [end_date_ymd] => 2025-02-14 20:10:05 [RateCDR] => 1 ) [2025-02-14 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:10:05' and `end` < '2025-02-14 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:10:20] Production.INFO: count ==2930 [2025-02-14 20:10:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:10:05 - End Time 2025-02-14 20:10:05 [2025-02-14 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476089', 'tblTempUsageDetail_20' ) start [2025-02-14 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476089', 'tblTempUsageDetail_20' ) end [2025-02-14 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476089', 'tblTempVendorCDR_20' ) start [2025-02-14 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476089', 'tblTempVendorCDR_20' ) end [2025-02-14 20:10:21] Production.INFO: ProcessCDR(1,14476089,1,1,2) [2025-02-14 20:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476089', 'tblTempUsageDetail_20' ) start [2025-02-14 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476089', 'tblTempUsageDetail_20' ) end [2025-02-14 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:10:24] Production.INFO: ==27105== Releasing lock... [2025-02-14 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:10:24] Production.INFO: 49.5 MB #Memory Used# [2025-02-14 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:11:05 [end_date_ymd] => 2025-02-14 20:11:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:11:05' and `end` < '2025-02-14 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-02-14 20:11:19] Production.INFO: count ==2939 [2025-02-14 20:11:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:11:05 - End Time 2025-02-14 20:11:05 [2025-02-14 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476095', 'tblTempUsageDetail_20' ) start [2025-02-14 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476095', 'tblTempUsageDetail_20' ) end [2025-02-14 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476095', 'tblTempVendorCDR_20' ) start [2025-02-14 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476095', 'tblTempVendorCDR_20' ) end [2025-02-14 20:11:19] Production.INFO: ProcessCDR(1,14476095,1,1,2) [2025-02-14 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476095', 'tblTempUsageDetail_20' ) start [2025-02-14 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476095', 'tblTempUsageDetail_20' ) end [2025-02-14 20:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:11:24] Production.INFO: ==27180== Releasing lock... [2025-02-14 20:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:11:24] Production.INFO: 49.5 MB #Memory Used# [2025-02-14 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:12:05 [end_date_ymd] => 2025-02-14 20:12:05 [RateCDR] => 1 ) [2025-02-14 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:12:05' and `end` < '2025-02-14 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:12:24] Production.INFO: count ==2933 [2025-02-14 20:12:24] Production.ERROR: pbx CDR StartTime 2025-02-14 17:12:05 - End Time 2025-02-14 20:12:05 [2025-02-14 20:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476100', 'tblTempUsageDetail_20' ) start [2025-02-14 20:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476100', 'tblTempUsageDetail_20' ) end [2025-02-14 20:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476100', 'tblTempVendorCDR_20' ) start [2025-02-14 20:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476100', 'tblTempVendorCDR_20' ) end [2025-02-14 20:12:24] Production.INFO: ProcessCDR(1,14476100,1,1,2) [2025-02-14 20:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476100', 'tblTempUsageDetail_20' ) start [2025-02-14 20:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476100', 'tblTempUsageDetail_20' ) end [2025-02-14 20:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:12:27] Production.INFO: ==27250== Releasing lock... [2025-02-14 20:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:12:27] Production.INFO: 49.75 MB #Memory Used# [2025-02-14 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:13:05 [end_date_ymd] => 2025-02-14 20:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:13:05' and `end` < '2025-02-14 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-02-14 20:13:22] Production.INFO: count ==2928 [2025-02-14 20:13:23] Production.ERROR: pbx CDR StartTime 2025-02-14 17:13:05 - End Time 2025-02-14 20:13:05 [2025-02-14 20:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476105', 'tblTempUsageDetail_20' ) start [2025-02-14 20:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476105', 'tblTempUsageDetail_20' ) end [2025-02-14 20:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476105', 'tblTempVendorCDR_20' ) start [2025-02-14 20:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476105', 'tblTempVendorCDR_20' ) end [2025-02-14 20:13:23] Production.INFO: ProcessCDR(1,14476105,1,1,2) [2025-02-14 20:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476105', 'tblTempUsageDetail_20' ) start [2025-02-14 20:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476105', 'tblTempUsageDetail_20' ) end [2025-02-14 20:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:13:27] Production.INFO: ==27322== Releasing lock... [2025-02-14 20:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:13:27] Production.INFO: 49.5 MB #Memory Used# [2025-02-14 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:14:06 [end_date_ymd] => 2025-02-14 20:14:06 [RateCDR] => 1 ) [2025-02-14 20: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-02-14 17:14:06' and `end` < '2025-02-14 20: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-02-14 20:14:21] Production.INFO: count ==2923 [2025-02-14 20:14:21] Production.ERROR: pbx CDR StartTime 2025-02-14 17:14:06 - End Time 2025-02-14 20:14:06 [2025-02-14 20:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476110', 'tblTempUsageDetail_20' ) start [2025-02-14 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476110', 'tblTempUsageDetail_20' ) end [2025-02-14 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476110', 'tblTempVendorCDR_20' ) start [2025-02-14 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476110', 'tblTempVendorCDR_20' ) end [2025-02-14 20:14:21] Production.INFO: ProcessCDR(1,14476110,1,1,2) [2025-02-14 20:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476110', 'tblTempUsageDetail_20' ) start [2025-02-14 20:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476110', 'tblTempUsageDetail_20' ) end [2025-02-14 20:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:14:25] Production.INFO: ==27393== Releasing lock... [2025-02-14 20:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:14:25] Production.INFO: 49.5 MB #Memory Used# [2025-02-14 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:15:05 [end_date_ymd] => 2025-02-14 20:15:05 [RateCDR] => 1 ) [2025-02-14 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:15:05' and `end` < '2025-02-14 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:15:19] Production.INFO: count ==2918 [2025-02-14 20:15:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:15:05 - End Time 2025-02-14 20:15:05 [2025-02-14 20:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476115', 'tblTempUsageDetail_20' ) start [2025-02-14 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476115', 'tblTempUsageDetail_20' ) end [2025-02-14 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476115', 'tblTempVendorCDR_20' ) start [2025-02-14 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476115', 'tblTempVendorCDR_20' ) end [2025-02-14 20:15:20] Production.INFO: ProcessCDR(1,14476115,1,1,2) [2025-02-14 20:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476115', 'tblTempUsageDetail_20' ) start [2025-02-14 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476115', 'tblTempUsageDetail_20' ) end [2025-02-14 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:15:23] Production.INFO: ==27465== Releasing lock... [2025-02-14 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:15:23] Production.INFO: 49.5 MB #Memory Used# [2025-02-14 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:16:06 [end_date_ymd] => 2025-02-14 20:16:06 [RateCDR] => 1 ) [2025-02-14 20:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:16:06' and `end` < '2025-02-14 20:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:16:19] Production.INFO: count ==2895 [2025-02-14 20:16:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:16:06 - End Time 2025-02-14 20:16:06 [2025-02-14 20:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476120', 'tblTempUsageDetail_20' ) start [2025-02-14 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476120', 'tblTempUsageDetail_20' ) end [2025-02-14 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476120', 'tblTempVendorCDR_20' ) start [2025-02-14 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476120', 'tblTempVendorCDR_20' ) end [2025-02-14 20:16:20] Production.INFO: ProcessCDR(1,14476120,1,1,2) [2025-02-14 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476120', 'tblTempUsageDetail_20' ) start [2025-02-14 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476120', 'tblTempUsageDetail_20' ) end [2025-02-14 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:16:23] Production.INFO: ==27536== Releasing lock... [2025-02-14 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:16:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-14 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:17:05 [end_date_ymd] => 2025-02-14 20:17:05 [RateCDR] => 1 ) [2025-02-14 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:17:05' and `end` < '2025-02-14 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:17:18] Production.INFO: count ==2895 [2025-02-14 20:17:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:17:05 - End Time 2025-02-14 20:17:05 [2025-02-14 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476125', 'tblTempUsageDetail_20' ) start [2025-02-14 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476125', 'tblTempUsageDetail_20' ) end [2025-02-14 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476125', 'tblTempVendorCDR_20' ) start [2025-02-14 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476125', 'tblTempVendorCDR_20' ) end [2025-02-14 20:17:19] Production.INFO: ProcessCDR(1,14476125,1,1,2) [2025-02-14 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476125', 'tblTempUsageDetail_20' ) start [2025-02-14 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476125', 'tblTempUsageDetail_20' ) end [2025-02-14 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:17:22] Production.INFO: ==27607== Releasing lock... [2025-02-14 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:17:22] Production.INFO: 49.25 MB #Memory Used# [2025-02-14 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:18:06 [end_date_ymd] => 2025-02-14 20:18:06 [RateCDR] => 1 ) [2025-02-14 20:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:18:06' and `end` < '2025-02-14 20: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-02-14 20:18:19] Production.INFO: count ==2894 [2025-02-14 20:18:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:18:06 - End Time 2025-02-14 20:18:06 [2025-02-14 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476130', 'tblTempUsageDetail_20' ) start [2025-02-14 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476130', 'tblTempUsageDetail_20' ) end [2025-02-14 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476130', 'tblTempVendorCDR_20' ) start [2025-02-14 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476130', 'tblTempVendorCDR_20' ) end [2025-02-14 20:18:20] Production.INFO: ProcessCDR(1,14476130,1,1,2) [2025-02-14 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476130', 'tblTempUsageDetail_20' ) start [2025-02-14 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476130', 'tblTempUsageDetail_20' ) end [2025-02-14 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:18:24] Production.INFO: ==27693== Releasing lock... [2025-02-14 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:18:24] Production.INFO: 49.75 MB #Memory Used# [2025-02-14 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:19:05 [end_date_ymd] => 2025-02-14 20:19:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:19:05' and `end` < '2025-02-14 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-02-14 20:19:19] Production.INFO: count ==2896 [2025-02-14 20:19:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:19:05 - End Time 2025-02-14 20:19:05 [2025-02-14 20:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476135', 'tblTempUsageDetail_20' ) start [2025-02-14 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476135', 'tblTempUsageDetail_20' ) end [2025-02-14 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476135', 'tblTempVendorCDR_20' ) start [2025-02-14 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476135', 'tblTempVendorCDR_20' ) end [2025-02-14 20:19:20] Production.INFO: ProcessCDR(1,14476135,1,1,2) [2025-02-14 20:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476135', 'tblTempUsageDetail_20' ) start [2025-02-14 20:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476135', 'tblTempUsageDetail_20' ) end [2025-02-14 20:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:19:25] Production.INFO: ==27770== Releasing lock... [2025-02-14 20:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:19:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-14 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:20:06 [end_date_ymd] => 2025-02-14 20:20:06 [RateCDR] => 1 ) [2025-02-14 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:20:06' and `end` < '2025-02-14 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:20:20] Production.INFO: count ==2895 [2025-02-14 20:20:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:20:06 - End Time 2025-02-14 20:20:06 [2025-02-14 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476141', 'tblTempUsageDetail_20' ) start [2025-02-14 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476141', 'tblTempUsageDetail_20' ) end [2025-02-14 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476141', 'tblTempVendorCDR_20' ) start [2025-02-14 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476141', 'tblTempVendorCDR_20' ) end [2025-02-14 20:20:20] Production.INFO: ProcessCDR(1,14476141,1,1,2) [2025-02-14 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476141', 'tblTempUsageDetail_20' ) start [2025-02-14 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476141', 'tblTempUsageDetail_20' ) end [2025-02-14 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:20:24] Production.INFO: ==27843== Releasing lock... [2025-02-14 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:20:24] Production.INFO: 50.25 MB #Memory Used# [2025-02-14 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:21:05 [end_date_ymd] => 2025-02-14 20:21:05 [RateCDR] => 1 ) [2025-02-14 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:21:05' and `end` < '2025-02-14 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:21:19] Production.INFO: count ==2864 [2025-02-14 20:21:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:21:05 - End Time 2025-02-14 20:21:05 [2025-02-14 20:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476146', 'tblTempUsageDetail_20' ) start [2025-02-14 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476146', 'tblTempUsageDetail_20' ) end [2025-02-14 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476146', 'tblTempVendorCDR_20' ) start [2025-02-14 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476146', 'tblTempVendorCDR_20' ) end [2025-02-14 20:21:20] Production.INFO: ProcessCDR(1,14476146,1,1,2) [2025-02-14 20:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476146', 'tblTempUsageDetail_20' ) start [2025-02-14 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476146', 'tblTempUsageDetail_20' ) end [2025-02-14 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:21:24] Production.INFO: ==27916== Releasing lock... [2025-02-14 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:21:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-14 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:22:06 [end_date_ymd] => 2025-02-14 20:22:06 [RateCDR] => 1 ) [2025-02-14 20:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:22:06' and `end` < '2025-02-14 20:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:22:19] Production.INFO: count ==2864 [2025-02-14 20:22:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:22:06 - End Time 2025-02-14 20:22:06 [2025-02-14 20:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476151', 'tblTempUsageDetail_20' ) start [2025-02-14 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476151', 'tblTempUsageDetail_20' ) end [2025-02-14 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476151', 'tblTempVendorCDR_20' ) start [2025-02-14 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476151', 'tblTempVendorCDR_20' ) end [2025-02-14 20:22:20] Production.INFO: ProcessCDR(1,14476151,1,1,2) [2025-02-14 20:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476151', 'tblTempUsageDetail_20' ) start [2025-02-14 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476151', 'tblTempUsageDetail_20' ) end [2025-02-14 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:22:23] Production.INFO: ==27990== Releasing lock... [2025-02-14 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:22:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-14 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:23:05 [end_date_ymd] => 2025-02-14 20:23:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:23:05' and `end` < '2025-02-14 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-02-14 20:23:19] Production.INFO: count ==2865 [2025-02-14 20:23:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:23:05 - End Time 2025-02-14 20:23:05 [2025-02-14 20:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476156', 'tblTempUsageDetail_20' ) start [2025-02-14 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476156', 'tblTempUsageDetail_20' ) end [2025-02-14 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476156', 'tblTempVendorCDR_20' ) start [2025-02-14 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476156', 'tblTempVendorCDR_20' ) end [2025-02-14 20:23:20] Production.INFO: ProcessCDR(1,14476156,1,1,2) [2025-02-14 20:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476156', 'tblTempUsageDetail_20' ) start [2025-02-14 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476156', 'tblTempUsageDetail_20' ) end [2025-02-14 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:23:23] Production.INFO: ==28074== Releasing lock... [2025-02-14 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:23:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-14 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:24:06 [end_date_ymd] => 2025-02-14 20:24:06 [RateCDR] => 1 ) [2025-02-14 20:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:24:06' and `end` < '2025-02-14 20:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:24:19] Production.INFO: count ==2868 [2025-02-14 20:24:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:24:06 - End Time 2025-02-14 20:24:06 [2025-02-14 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476161', 'tblTempUsageDetail_20' ) start [2025-02-14 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476161', 'tblTempUsageDetail_20' ) end [2025-02-14 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476161', 'tblTempVendorCDR_20' ) start [2025-02-14 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476161', 'tblTempVendorCDR_20' ) end [2025-02-14 20:24:20] Production.INFO: ProcessCDR(1,14476161,1,1,2) [2025-02-14 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476161', 'tblTempUsageDetail_20' ) start [2025-02-14 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476161', 'tblTempUsageDetail_20' ) end [2025-02-14 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:24:23] Production.INFO: ==28218== Releasing lock... [2025-02-14 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:24:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-14 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:25:05 [end_date_ymd] => 2025-02-14 20:25:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:25:05' and `end` < '2025-02-14 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-02-14 20:25:20] Production.INFO: count ==2870 [2025-02-14 20:25:21] Production.ERROR: pbx CDR StartTime 2025-02-14 17:25:05 - End Time 2025-02-14 20:25:05 [2025-02-14 20:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476166', 'tblTempUsageDetail_20' ) start [2025-02-14 20:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476166', 'tblTempUsageDetail_20' ) end [2025-02-14 20:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476166', 'tblTempVendorCDR_20' ) start [2025-02-14 20:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476166', 'tblTempVendorCDR_20' ) end [2025-02-14 20:25:21] Production.INFO: ProcessCDR(1,14476166,1,1,2) [2025-02-14 20:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476166', 'tblTempUsageDetail_20' ) start [2025-02-14 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476166', 'tblTempUsageDetail_20' ) end [2025-02-14 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:25:25] Production.INFO: ==28323== Releasing lock... [2025-02-14 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:25:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-14 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:26:06 [end_date_ymd] => 2025-02-14 20:26:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:26:06' and `end` < '2025-02-14 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-02-14 20:26:19] Production.INFO: count ==2867 [2025-02-14 20:26:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:26:06 - End Time 2025-02-14 20:26:06 [2025-02-14 20:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476171', 'tblTempUsageDetail_20' ) start [2025-02-14 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476171', 'tblTempUsageDetail_20' ) end [2025-02-14 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476171', 'tblTempVendorCDR_20' ) start [2025-02-14 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476171', 'tblTempVendorCDR_20' ) end [2025-02-14 20:26:20] Production.INFO: ProcessCDR(1,14476171,1,1,2) [2025-02-14 20:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476171', 'tblTempUsageDetail_20' ) start [2025-02-14 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476171', 'tblTempUsageDetail_20' ) end [2025-02-14 20:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:26:25] Production.INFO: ==28415== Releasing lock... [2025-02-14 20:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:26:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-14 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:27:05 [end_date_ymd] => 2025-02-14 20:27:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:27:05' and `end` < '2025-02-14 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-02-14 20:27:18] Production.INFO: count ==2869 [2025-02-14 20:27:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:27:05 - End Time 2025-02-14 20:27:05 [2025-02-14 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476176', 'tblTempUsageDetail_20' ) start [2025-02-14 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476176', 'tblTempUsageDetail_20' ) end [2025-02-14 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476176', 'tblTempVendorCDR_20' ) start [2025-02-14 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476176', 'tblTempVendorCDR_20' ) end [2025-02-14 20:27:19] Production.INFO: ProcessCDR(1,14476176,1,1,2) [2025-02-14 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476176', 'tblTempUsageDetail_20' ) start [2025-02-14 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476176', 'tblTempUsageDetail_20' ) end [2025-02-14 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:27:24] Production.INFO: ==28486== Releasing lock... [2025-02-14 20:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:27:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-14 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:28:05 [end_date_ymd] => 2025-02-14 20:28:05 [RateCDR] => 1 ) [2025-02-14 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:28:05' and `end` < '2025-02-14 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:28:18] Production.INFO: count ==2866 [2025-02-14 20:28:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:28:05 - End Time 2025-02-14 20:28:05 [2025-02-14 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476181', 'tblTempUsageDetail_20' ) start [2025-02-14 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476181', 'tblTempUsageDetail_20' ) end [2025-02-14 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476181', 'tblTempVendorCDR_20' ) start [2025-02-14 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476181', 'tblTempVendorCDR_20' ) end [2025-02-14 20:28:19] Production.INFO: ProcessCDR(1,14476181,1,1,2) [2025-02-14 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476181', 'tblTempUsageDetail_20' ) start [2025-02-14 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476181', 'tblTempUsageDetail_20' ) end [2025-02-14 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:28:22] Production.INFO: ==28559== Releasing lock... [2025-02-14 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:28:22] Production.INFO: 49.25 MB #Memory Used# [2025-02-14 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:29:05 [end_date_ymd] => 2025-02-14 20:29:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:29:05' and `end` < '2025-02-14 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-02-14 20:29:19] Production.INFO: count ==2868 [2025-02-14 20:29:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:29:05 - End Time 2025-02-14 20:29:05 [2025-02-14 20:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476186', 'tblTempUsageDetail_20' ) start [2025-02-14 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476186', 'tblTempUsageDetail_20' ) end [2025-02-14 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476186', 'tblTempVendorCDR_20' ) start [2025-02-14 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476186', 'tblTempVendorCDR_20' ) end [2025-02-14 20:29:20] Production.INFO: ProcessCDR(1,14476186,1,1,2) [2025-02-14 20:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476186', 'tblTempUsageDetail_20' ) start [2025-02-14 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476186', 'tblTempUsageDetail_20' ) end [2025-02-14 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:29:23] Production.INFO: ==28632== Releasing lock... [2025-02-14 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:29:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-14 20:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:30:07 [end_date_ymd] => 2025-02-14 20:30:07 [RateCDR] => 1 ) [2025-02-14 20:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:30:07' and `end` < '2025-02-14 20:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:30:21] Production.INFO: count ==2869 [2025-02-14 20:30:22] Production.ERROR: pbx CDR StartTime 2025-02-14 17:30:07 - End Time 2025-02-14 20:30:07 [2025-02-14 20:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476192', 'tblTempUsageDetail_20' ) start [2025-02-14 20:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476192', 'tblTempUsageDetail_20' ) end [2025-02-14 20:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476192', 'tblTempVendorCDR_20' ) start [2025-02-14 20:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476192', 'tblTempVendorCDR_20' ) end [2025-02-14 20:30:22] Production.INFO: ProcessCDR(1,14476192,1,1,2) [2025-02-14 20:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476192', 'tblTempUsageDetail_20' ) start [2025-02-14 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476192', 'tblTempUsageDetail_20' ) end [2025-02-14 20:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:30:25] Production.INFO: ==28709== Releasing lock... [2025-02-14 20:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:30:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-14 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:31:05 [end_date_ymd] => 2025-02-14 20:31:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:31:05' and `end` < '2025-02-14 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-02-14 20:31:18] Production.INFO: count ==2810 [2025-02-14 20:31:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:31:05 - End Time 2025-02-14 20:31:05 [2025-02-14 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476197', 'tblTempUsageDetail_20' ) start [2025-02-14 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476197', 'tblTempUsageDetail_20' ) end [2025-02-14 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476197', 'tblTempVendorCDR_20' ) start [2025-02-14 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476197', 'tblTempVendorCDR_20' ) end [2025-02-14 20:31:19] Production.INFO: ProcessCDR(1,14476197,1,1,2) [2025-02-14 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476197', 'tblTempUsageDetail_20' ) start [2025-02-14 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476197', 'tblTempUsageDetail_20' ) end [2025-02-14 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:31:22] Production.INFO: ==28782== Releasing lock... [2025-02-14 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:31:22] Production.INFO: 49 MB #Memory Used# [2025-02-14 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:32:06 [end_date_ymd] => 2025-02-14 20:32:06 [RateCDR] => 1 ) [2025-02-14 20:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:32:06' and `end` < '2025-02-14 20:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:32:19] Production.INFO: count ==2797 [2025-02-14 20:32:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:32:06 - End Time 2025-02-14 20:32:06 [2025-02-14 20:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476202', 'tblTempUsageDetail_20' ) start [2025-02-14 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476202', 'tblTempUsageDetail_20' ) end [2025-02-14 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476202', 'tblTempVendorCDR_20' ) start [2025-02-14 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476202', 'tblTempVendorCDR_20' ) end [2025-02-14 20:32:20] Production.INFO: ProcessCDR(1,14476202,1,1,2) [2025-02-14 20:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476202', 'tblTempUsageDetail_20' ) start [2025-02-14 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476202', 'tblTempUsageDetail_20' ) end [2025-02-14 20:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:32:24] Production.INFO: ==28854== Releasing lock... [2025-02-14 20:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:32:24] Production.INFO: 49 MB #Memory Used# [2025-02-14 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:33:05 [end_date_ymd] => 2025-02-14 20:33:05 [RateCDR] => 1 ) [2025-02-14 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:33:05' and `end` < '2025-02-14 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:33:19] Production.INFO: count ==2799 [2025-02-14 20:33:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:33:05 - End Time 2025-02-14 20:33:05 [2025-02-14 20:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476207', 'tblTempUsageDetail_20' ) start [2025-02-14 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476207', 'tblTempUsageDetail_20' ) end [2025-02-14 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476207', 'tblTempVendorCDR_20' ) start [2025-02-14 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476207', 'tblTempVendorCDR_20' ) end [2025-02-14 20:33:20] Production.INFO: ProcessCDR(1,14476207,1,1,2) [2025-02-14 20:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476207', 'tblTempUsageDetail_20' ) start [2025-02-14 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476207', 'tblTempUsageDetail_20' ) end [2025-02-14 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:33:24] Production.INFO: ==28926== Releasing lock... [2025-02-14 20:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:33:24] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:34:06 [end_date_ymd] => 2025-02-14 20:34:06 [RateCDR] => 1 ) [2025-02-14 20: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-02-14 17:34:06' and `end` < '2025-02-14 20: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-02-14 20:34:19] Production.INFO: count ==2794 [2025-02-14 20:34:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:34:06 - End Time 2025-02-14 20:34:06 [2025-02-14 20:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476212', 'tblTempUsageDetail_20' ) start [2025-02-14 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476212', 'tblTempUsageDetail_20' ) end [2025-02-14 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476212', 'tblTempVendorCDR_20' ) start [2025-02-14 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476212', 'tblTempVendorCDR_20' ) end [2025-02-14 20:34:20] Production.INFO: ProcessCDR(1,14476212,1,1,2) [2025-02-14 20:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476212', 'tblTempUsageDetail_20' ) start [2025-02-14 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476212', 'tblTempUsageDetail_20' ) end [2025-02-14 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:34:23] Production.INFO: ==29001== Releasing lock... [2025-02-14 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:34:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:35:05 [end_date_ymd] => 2025-02-14 20:35:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:35:05' and `end` < '2025-02-14 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-02-14 20:35:19] Production.INFO: count ==2791 [2025-02-14 20:35:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:35:05 - End Time 2025-02-14 20:35:05 [2025-02-14 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476217', 'tblTempUsageDetail_20' ) start [2025-02-14 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476217', 'tblTempUsageDetail_20' ) end [2025-02-14 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476217', 'tblTempVendorCDR_20' ) start [2025-02-14 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476217', 'tblTempVendorCDR_20' ) end [2025-02-14 20:35:19] Production.INFO: ProcessCDR(1,14476217,1,1,2) [2025-02-14 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476217', 'tblTempUsageDetail_20' ) start [2025-02-14 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476217', 'tblTempUsageDetail_20' ) end [2025-02-14 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:35:23] Production.INFO: ==29073== Releasing lock... [2025-02-14 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:35:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:36:06 [end_date_ymd] => 2025-02-14 20:36:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:36:06' and `end` < '2025-02-14 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-02-14 20:36:19] Production.INFO: count ==2789 [2025-02-14 20:36:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:36:06 - End Time 2025-02-14 20:36:06 [2025-02-14 20:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476222', 'tblTempUsageDetail_20' ) start [2025-02-14 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476222', 'tblTempUsageDetail_20' ) end [2025-02-14 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476222', 'tblTempVendorCDR_20' ) start [2025-02-14 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476222', 'tblTempVendorCDR_20' ) end [2025-02-14 20:36:20] Production.INFO: ProcessCDR(1,14476222,1,1,2) [2025-02-14 20:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476222', 'tblTempUsageDetail_20' ) start [2025-02-14 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476222', 'tblTempUsageDetail_20' ) end [2025-02-14 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:36:23] Production.INFO: ==29144== Releasing lock... [2025-02-14 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:36:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:37:05 [end_date_ymd] => 2025-02-14 20:37:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:37:05' and `end` < '2025-02-14 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-02-14 20:37:19] Production.INFO: count ==2789 [2025-02-14 20:37:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:37:05 - End Time 2025-02-14 20:37:05 [2025-02-14 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476227', 'tblTempUsageDetail_20' ) start [2025-02-14 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476227', 'tblTempUsageDetail_20' ) end [2025-02-14 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476227', 'tblTempVendorCDR_20' ) start [2025-02-14 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476227', 'tblTempVendorCDR_20' ) end [2025-02-14 20:37:19] Production.INFO: ProcessCDR(1,14476227,1,1,2) [2025-02-14 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476227', 'tblTempUsageDetail_20' ) start [2025-02-14 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476227', 'tblTempUsageDetail_20' ) end [2025-02-14 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:37:23] Production.INFO: ==29215== Releasing lock... [2025-02-14 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:37:23] Production.INFO: 49.5 MB #Memory Used# [2025-02-14 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:38:05 [end_date_ymd] => 2025-02-14 20:38:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:38:05' and `end` < '2025-02-14 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-02-14 20:38:19] Production.INFO: count ==2791 [2025-02-14 20:38:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:38:05 - End Time 2025-02-14 20:38:05 [2025-02-14 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476232', 'tblTempUsageDetail_20' ) start [2025-02-14 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476232', 'tblTempUsageDetail_20' ) end [2025-02-14 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476232', 'tblTempVendorCDR_20' ) start [2025-02-14 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476232', 'tblTempVendorCDR_20' ) end [2025-02-14 20:38:19] Production.INFO: ProcessCDR(1,14476232,1,1,2) [2025-02-14 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476232', 'tblTempUsageDetail_20' ) start [2025-02-14 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476232', 'tblTempUsageDetail_20' ) end [2025-02-14 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:38:23] Production.INFO: ==29290== Releasing lock... [2025-02-14 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:38:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:39:05 [end_date_ymd] => 2025-02-14 20:39:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:39:05' and `end` < '2025-02-14 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-02-14 20:39:20] Production.INFO: count ==2789 [2025-02-14 20:39:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:39:05 - End Time 2025-02-14 20:39:05 [2025-02-14 20:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476237', 'tblTempUsageDetail_20' ) start [2025-02-14 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476237', 'tblTempUsageDetail_20' ) end [2025-02-14 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476237', 'tblTempVendorCDR_20' ) start [2025-02-14 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476237', 'tblTempVendorCDR_20' ) end [2025-02-14 20:39:20] Production.INFO: ProcessCDR(1,14476237,1,1,2) [2025-02-14 20:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476237', 'tblTempUsageDetail_20' ) start [2025-02-14 20:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476237', 'tblTempUsageDetail_20' ) end [2025-02-14 20:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:39:25] Production.INFO: ==29361== Releasing lock... [2025-02-14 20:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:39:25] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:40:05 [end_date_ymd] => 2025-02-14 20:40:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:40:05' and `end` < '2025-02-14 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-02-14 20:40:22] Production.INFO: count ==2776 [2025-02-14 20:40:23] Production.ERROR: pbx CDR StartTime 2025-02-14 17:40:05 - End Time 2025-02-14 20:40:05 [2025-02-14 20:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476243', 'tblTempUsageDetail_20' ) start [2025-02-14 20:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476243', 'tblTempUsageDetail_20' ) end [2025-02-14 20:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476243', 'tblTempVendorCDR_20' ) start [2025-02-14 20:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476243', 'tblTempVendorCDR_20' ) end [2025-02-14 20:40:23] Production.INFO: ProcessCDR(1,14476243,1,1,2) [2025-02-14 20:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476243', 'tblTempUsageDetail_20' ) start [2025-02-14 20:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476243', 'tblTempUsageDetail_20' ) end [2025-02-14 20:40:28] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:40:28] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:40:28] Production.INFO: ==29472== Releasing lock... [2025-02-14 20:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:40:28] Production.INFO: 49.75 MB #Memory Used# [2025-02-14 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:41:05 [end_date_ymd] => 2025-02-14 20:41:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:41:05' and `end` < '2025-02-14 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-02-14 20:41:19] Production.INFO: count ==2783 [2025-02-14 20:41:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:41:05 - End Time 2025-02-14 20:41:05 [2025-02-14 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476248', 'tblTempUsageDetail_20' ) start [2025-02-14 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476248', 'tblTempUsageDetail_20' ) end [2025-02-14 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476248', 'tblTempVendorCDR_20' ) start [2025-02-14 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476248', 'tblTempVendorCDR_20' ) end [2025-02-14 20:41:19] Production.INFO: ProcessCDR(1,14476248,1,1,2) [2025-02-14 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476248', 'tblTempUsageDetail_20' ) start [2025-02-14 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476248', 'tblTempUsageDetail_20' ) end [2025-02-14 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:41:23] Production.INFO: ==29547== Releasing lock... [2025-02-14 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:41:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:42:05 [end_date_ymd] => 2025-02-14 20:42:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:42:05' and `end` < '2025-02-14 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-02-14 20:42:25] Production.INFO: count ==2785 [2025-02-14 20:42:26] Production.ERROR: pbx CDR StartTime 2025-02-14 17:42:05 - End Time 2025-02-14 20:42:05 [2025-02-14 20:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476253', 'tblTempUsageDetail_20' ) start [2025-02-14 20:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476253', 'tblTempUsageDetail_20' ) end [2025-02-14 20:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476253', 'tblTempVendorCDR_20' ) start [2025-02-14 20:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476253', 'tblTempVendorCDR_20' ) end [2025-02-14 20:42:26] Production.INFO: ProcessCDR(1,14476253,1,1,2) [2025-02-14 20:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476253', 'tblTempUsageDetail_20' ) start [2025-02-14 20:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476253', 'tblTempUsageDetail_20' ) end [2025-02-14 20:42:31] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:42:31] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:42:31] Production.INFO: ==29621== Releasing lock... [2025-02-14 20:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:42:31] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:43:05 [end_date_ymd] => 2025-02-14 20:43:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:43:05' and `end` < '2025-02-14 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-02-14 20:43:21] Production.INFO: count ==2807 [2025-02-14 20:43:21] Production.ERROR: pbx CDR StartTime 2025-02-14 17:43:05 - End Time 2025-02-14 20:43:05 [2025-02-14 20:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476258', 'tblTempUsageDetail_20' ) start [2025-02-14 20:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476258', 'tblTempUsageDetail_20' ) end [2025-02-14 20:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476258', 'tblTempVendorCDR_20' ) start [2025-02-14 20:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476258', 'tblTempVendorCDR_20' ) end [2025-02-14 20:43:21] Production.INFO: ProcessCDR(1,14476258,1,1,2) [2025-02-14 20:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476258', 'tblTempUsageDetail_20' ) start [2025-02-14 20:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476258', 'tblTempUsageDetail_20' ) end [2025-02-14 20:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:43:26] Production.INFO: ==29692== Releasing lock... [2025-02-14 20:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:43:26] Production.INFO: 49 MB #Memory Used# [2025-02-14 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:44:05 [end_date_ymd] => 2025-02-14 20:44:05 [RateCDR] => 1 ) [2025-02-14 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:44:05' and `end` < '2025-02-14 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:44:20] Production.INFO: count ==2807 [2025-02-14 20:44:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:44:05 - End Time 2025-02-14 20:44:05 [2025-02-14 20:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476263', 'tblTempUsageDetail_20' ) start [2025-02-14 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476263', 'tblTempUsageDetail_20' ) end [2025-02-14 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476263', 'tblTempVendorCDR_20' ) start [2025-02-14 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476263', 'tblTempVendorCDR_20' ) end [2025-02-14 20:44:20] Production.INFO: ProcessCDR(1,14476263,1,1,2) [2025-02-14 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476263', 'tblTempUsageDetail_20' ) start [2025-02-14 20:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476263', 'tblTempUsageDetail_20' ) end [2025-02-14 20:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:44:25] Production.INFO: ==29765== Releasing lock... [2025-02-14 20:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:44:25] Production.INFO: 49 MB #Memory Used# [2025-02-14 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:45:05 [end_date_ymd] => 2025-02-14 20:45:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:45:05' and `end` < '2025-02-14 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-02-14 20:45:18] Production.INFO: count ==2797 [2025-02-14 20:45:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:45:05 - End Time 2025-02-14 20:45:05 [2025-02-14 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476268', 'tblTempUsageDetail_20' ) start [2025-02-14 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476268', 'tblTempUsageDetail_20' ) end [2025-02-14 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476268', 'tblTempVendorCDR_20' ) start [2025-02-14 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476268', 'tblTempVendorCDR_20' ) end [2025-02-14 20:45:19] Production.INFO: ProcessCDR(1,14476268,1,1,2) [2025-02-14 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476268', 'tblTempUsageDetail_20' ) start [2025-02-14 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476268', 'tblTempUsageDetail_20' ) end [2025-02-14 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:45:22] Production.INFO: ==29842== Releasing lock... [2025-02-14 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:45:22] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:46:05 [end_date_ymd] => 2025-02-14 20:46:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:46:05' and `end` < '2025-02-14 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-02-14 20:46:20] Production.INFO: count ==2791 [2025-02-14 20:46:21] Production.ERROR: pbx CDR StartTime 2025-02-14 17:46:05 - End Time 2025-02-14 20:46:05 [2025-02-14 20:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476273', 'tblTempUsageDetail_20' ) start [2025-02-14 20:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476273', 'tblTempUsageDetail_20' ) end [2025-02-14 20:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476273', 'tblTempVendorCDR_20' ) start [2025-02-14 20:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476273', 'tblTempVendorCDR_20' ) end [2025-02-14 20:46:21] Production.INFO: ProcessCDR(1,14476273,1,1,2) [2025-02-14 20:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476273', 'tblTempUsageDetail_20' ) start [2025-02-14 20:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476273', 'tblTempUsageDetail_20' ) end [2025-02-14 20:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:46:25] Production.INFO: ==29915== Releasing lock... [2025-02-14 20:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:46:25] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:47:04 [end_date_ymd] => 2025-02-14 20:47:04 [RateCDR] => 1 ) [2025-02-14 20:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 17:47:04' and `end` < '2025-02-14 20:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 20:47:18] Production.INFO: count ==2789 [2025-02-14 20:47:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:47:04 - End Time 2025-02-14 20:47:04 [2025-02-14 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476278', 'tblTempUsageDetail_20' ) start [2025-02-14 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476278', 'tblTempUsageDetail_20' ) end [2025-02-14 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476278', 'tblTempVendorCDR_20' ) start [2025-02-14 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476278', 'tblTempVendorCDR_20' ) end [2025-02-14 20:47:19] Production.INFO: ProcessCDR(1,14476278,1,1,2) [2025-02-14 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476278', 'tblTempUsageDetail_20' ) start [2025-02-14 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476278', 'tblTempUsageDetail_20' ) end [2025-02-14 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:47:22] Production.INFO: ==29992== Releasing lock... [2025-02-14 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:47:22] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:48:06 [end_date_ymd] => 2025-02-14 20:48:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:48:06' and `end` < '2025-02-14 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-02-14 20:48:19] Production.INFO: count ==2783 [2025-02-14 20:48:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:48:06 - End Time 2025-02-14 20:48:06 [2025-02-14 20:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476283', 'tblTempUsageDetail_20' ) start [2025-02-14 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476283', 'tblTempUsageDetail_20' ) end [2025-02-14 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476283', 'tblTempVendorCDR_20' ) start [2025-02-14 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476283', 'tblTempVendorCDR_20' ) end [2025-02-14 20:48:20] Production.INFO: ProcessCDR(1,14476283,1,1,2) [2025-02-14 20:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476283', 'tblTempUsageDetail_20' ) start [2025-02-14 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476283', 'tblTempUsageDetail_20' ) end [2025-02-14 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:48:23] Production.INFO: ==30064== Releasing lock... [2025-02-14 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:48:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:49:05 [end_date_ymd] => 2025-02-14 20:49:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:49:05' and `end` < '2025-02-14 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-02-14 20:49:19] Production.INFO: count ==2788 [2025-02-14 20:49:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:49:05 - End Time 2025-02-14 20:49:05 [2025-02-14 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476288', 'tblTempUsageDetail_20' ) start [2025-02-14 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476288', 'tblTempUsageDetail_20' ) end [2025-02-14 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476288', 'tblTempVendorCDR_20' ) start [2025-02-14 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476288', 'tblTempVendorCDR_20' ) end [2025-02-14 20:49:19] Production.INFO: ProcessCDR(1,14476288,1,1,2) [2025-02-14 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476288', 'tblTempUsageDetail_20' ) start [2025-02-14 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476288', 'tblTempUsageDetail_20' ) end [2025-02-14 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:49:23] Production.INFO: ==30136== Releasing lock... [2025-02-14 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:49:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:50:06 [end_date_ymd] => 2025-02-14 20:50:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:50:06' and `end` < '2025-02-14 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-02-14 20:50:20] Production.INFO: count ==2786 [2025-02-14 20:50:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:50:06 - End Time 2025-02-14 20:50:06 [2025-02-14 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476294', 'tblTempUsageDetail_20' ) start [2025-02-14 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476294', 'tblTempUsageDetail_20' ) end [2025-02-14 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476294', 'tblTempVendorCDR_20' ) start [2025-02-14 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476294', 'tblTempVendorCDR_20' ) end [2025-02-14 20:50:20] Production.INFO: ProcessCDR(1,14476294,1,1,2) [2025-02-14 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476294', 'tblTempUsageDetail_20' ) start [2025-02-14 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476294', 'tblTempUsageDetail_20' ) end [2025-02-14 20:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:50:24] Production.INFO: ==30211== Releasing lock... [2025-02-14 20:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:50:24] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:51:05 [end_date_ymd] => 2025-02-14 20:51:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:51:05' and `end` < '2025-02-14 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-02-14 20:51:20] Production.INFO: count ==2769 [2025-02-14 20:51:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:51:05 - End Time 2025-02-14 20:51:05 [2025-02-14 20:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476299', 'tblTempUsageDetail_20' ) start [2025-02-14 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476299', 'tblTempUsageDetail_20' ) end [2025-02-14 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476299', 'tblTempVendorCDR_20' ) start [2025-02-14 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476299', 'tblTempVendorCDR_20' ) end [2025-02-14 20:51:20] Production.INFO: ProcessCDR(1,14476299,1,1,2) [2025-02-14 20:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476299', 'tblTempUsageDetail_20' ) start [2025-02-14 20:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476299', 'tblTempUsageDetail_20' ) end [2025-02-14 20:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:51:25] Production.INFO: ==30285== Releasing lock... [2025-02-14 20:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:51:25] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:52:05 [end_date_ymd] => 2025-02-14 20:52:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:52:05' and `end` < '2025-02-14 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-02-14 20:52:19] Production.INFO: count ==2776 [2025-02-14 20:52:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:52:05 - End Time 2025-02-14 20:52:05 [2025-02-14 20:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476304', 'tblTempUsageDetail_20' ) start [2025-02-14 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476304', 'tblTempUsageDetail_20' ) end [2025-02-14 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476304', 'tblTempVendorCDR_20' ) start [2025-02-14 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476304', 'tblTempVendorCDR_20' ) end [2025-02-14 20:52:20] Production.INFO: ProcessCDR(1,14476304,1,1,2) [2025-02-14 20:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476304', 'tblTempUsageDetail_20' ) start [2025-02-14 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476304', 'tblTempUsageDetail_20' ) end [2025-02-14 20:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:52:24] Production.INFO: ==30355== Releasing lock... [2025-02-14 20:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:52:24] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:53:05 [end_date_ymd] => 2025-02-14 20:53:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:53:05' and `end` < '2025-02-14 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-02-14 20:53:20] Production.INFO: count ==2797 [2025-02-14 20:53:21] Production.ERROR: pbx CDR StartTime 2025-02-14 17:53:05 - End Time 2025-02-14 20:53:05 [2025-02-14 20:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476309', 'tblTempUsageDetail_20' ) start [2025-02-14 20:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476309', 'tblTempUsageDetail_20' ) end [2025-02-14 20:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476309', 'tblTempVendorCDR_20' ) start [2025-02-14 20:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476309', 'tblTempVendorCDR_20' ) end [2025-02-14 20:53:21] Production.INFO: ProcessCDR(1,14476309,1,1,2) [2025-02-14 20:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476309', 'tblTempUsageDetail_20' ) start [2025-02-14 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476309', 'tblTempUsageDetail_20' ) end [2025-02-14 20:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:53:24] Production.INFO: ==30430== Releasing lock... [2025-02-14 20:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:53:24] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:54:05 [end_date_ymd] => 2025-02-14 20:54:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:54:05' and `end` < '2025-02-14 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-02-14 20:54:18] Production.INFO: count ==2797 [2025-02-14 20:54:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:54:05 - End Time 2025-02-14 20:54:05 [2025-02-14 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476314', 'tblTempUsageDetail_20' ) start [2025-02-14 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476314', 'tblTempUsageDetail_20' ) end [2025-02-14 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476314', 'tblTempVendorCDR_20' ) start [2025-02-14 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476314', 'tblTempVendorCDR_20' ) end [2025-02-14 20:54:19] Production.INFO: ProcessCDR(1,14476314,1,1,2) [2025-02-14 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476314', 'tblTempUsageDetail_20' ) start [2025-02-14 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476314', 'tblTempUsageDetail_20' ) end [2025-02-14 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:54:22] Production.INFO: ==30505== Releasing lock... [2025-02-14 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:54:22] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:55:05 [end_date_ymd] => 2025-02-14 20:55:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:55:05' and `end` < '2025-02-14 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-02-14 20:55:18] Production.INFO: count ==2800 [2025-02-14 20:55:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:55:05 - End Time 2025-02-14 20:55:05 [2025-02-14 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476319', 'tblTempUsageDetail_20' ) start [2025-02-14 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476319', 'tblTempUsageDetail_20' ) end [2025-02-14 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476319', 'tblTempVendorCDR_20' ) start [2025-02-14 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476319', 'tblTempVendorCDR_20' ) end [2025-02-14 20:55:19] Production.INFO: ProcessCDR(1,14476319,1,1,2) [2025-02-14 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476319', 'tblTempUsageDetail_20' ) start [2025-02-14 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476319', 'tblTempUsageDetail_20' ) end [2025-02-14 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:55:23] Production.INFO: ==30614== Releasing lock... [2025-02-14 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:55:23] Production.INFO: 49 MB #Memory Used# [2025-02-14 20:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:56:04 [end_date_ymd] => 2025-02-14 20:56:04 [RateCDR] => 1 ) [2025-02-14 20: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-02-14 17:56:04' and `end` < '2025-02-14 20: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-02-14 20:56:19] Production.INFO: count ==2801 [2025-02-14 20:56:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:56:04 - End Time 2025-02-14 20:56:04 [2025-02-14 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476324', 'tblTempUsageDetail_20' ) start [2025-02-14 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476324', 'tblTempUsageDetail_20' ) end [2025-02-14 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476324', 'tblTempVendorCDR_20' ) start [2025-02-14 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476324', 'tblTempVendorCDR_20' ) end [2025-02-14 20:56:19] Production.INFO: ProcessCDR(1,14476324,1,1,2) [2025-02-14 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476324', 'tblTempUsageDetail_20' ) start [2025-02-14 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476324', 'tblTempUsageDetail_20' ) end [2025-02-14 20:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:56:24] Production.INFO: ==30687== Releasing lock... [2025-02-14 20:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:56:24] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:57:05 [end_date_ymd] => 2025-02-14 20:57:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:57:05' and `end` < '2025-02-14 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-02-14 20:57:19] Production.INFO: count ==2789 [2025-02-14 20:57:19] Production.ERROR: pbx CDR StartTime 2025-02-14 17:57:05 - End Time 2025-02-14 20:57:05 [2025-02-14 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476329', 'tblTempUsageDetail_20' ) start [2025-02-14 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476329', 'tblTempUsageDetail_20' ) end [2025-02-14 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476329', 'tblTempVendorCDR_20' ) start [2025-02-14 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476329', 'tblTempVendorCDR_20' ) end [2025-02-14 20:57:20] Production.INFO: ProcessCDR(1,14476329,1,1,2) [2025-02-14 20:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476329', 'tblTempUsageDetail_20' ) start [2025-02-14 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476329', 'tblTempUsageDetail_20' ) end [2025-02-14 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:57:23] Production.INFO: ==30759== Releasing lock... [2025-02-14 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:57:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:58:04 [end_date_ymd] => 2025-02-14 20:58:04 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:58:04' and `end` < '2025-02-14 20: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-02-14 20:58:18] Production.INFO: count ==2772 [2025-02-14 20:58:18] Production.ERROR: pbx CDR StartTime 2025-02-14 17:58:04 - End Time 2025-02-14 20:58:04 [2025-02-14 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476334', 'tblTempUsageDetail_20' ) start [2025-02-14 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476334', 'tblTempUsageDetail_20' ) end [2025-02-14 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476334', 'tblTempVendorCDR_20' ) start [2025-02-14 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476334', 'tblTempVendorCDR_20' ) end [2025-02-14 20:58:19] Production.INFO: ProcessCDR(1,14476334,1,1,2) [2025-02-14 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476334', 'tblTempUsageDetail_20' ) start [2025-02-14 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476334', 'tblTempUsageDetail_20' ) end [2025-02-14 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:58:22] Production.INFO: ==30830== Releasing lock... [2025-02-14 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:58:22] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 17:59:05 [end_date_ymd] => 2025-02-14 20:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 17:59:05' and `end` < '2025-02-14 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-02-14 20:59:19] Production.INFO: count ==2775 [2025-02-14 20:59:20] Production.ERROR: pbx CDR StartTime 2025-02-14 17:59:05 - End Time 2025-02-14 20:59:05 [2025-02-14 20:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476339', 'tblTempUsageDetail_20' ) start [2025-02-14 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476339', 'tblTempUsageDetail_20' ) end [2025-02-14 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476339', 'tblTempVendorCDR_20' ) start [2025-02-14 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476339', 'tblTempVendorCDR_20' ) end [2025-02-14 20:59:20] Production.INFO: ProcessCDR(1,14476339,1,1,2) [2025-02-14 20:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 20:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476339', 'tblTempUsageDetail_20' ) start [2025-02-14 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476339', 'tblTempUsageDetail_20' ) end [2025-02-14 20:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 20:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 20:59:23] Production.INFO: ==30904== Releasing lock... [2025-02-14 20:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 20:59:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:00:05 [end_date_ymd] => 2025-02-14 21:00:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:00:05' and `end` < '2025-02-14 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-02-14 21:00:21] Production.INFO: count ==2766 [2025-02-14 21:00:22] Production.ERROR: pbx CDR StartTime 2025-02-14 18:00:05 - End Time 2025-02-14 21:00:05 [2025-02-14 21:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476345', 'tblTempUsageDetail_20' ) start [2025-02-14 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476345', 'tblTempUsageDetail_20' ) end [2025-02-14 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476345', 'tblTempVendorCDR_20' ) start [2025-02-14 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476345', 'tblTempVendorCDR_20' ) end [2025-02-14 21:00:22] Production.INFO: ProcessCDR(1,14476345,1,1,2) [2025-02-14 21:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476345', 'tblTempUsageDetail_20' ) start [2025-02-14 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476345', 'tblTempUsageDetail_20' ) end [2025-02-14 21:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:00:25] Production.INFO: ==30982== Releasing lock... [2025-02-14 21:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:00:25] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:01:05 [end_date_ymd] => 2025-02-14 21:01:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:01:05' and `end` < '2025-02-14 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-02-14 21:01:20] Production.INFO: count ==2687 [2025-02-14 21:01:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:01:05 - End Time 2025-02-14 21:01:05 [2025-02-14 21:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476350', 'tblTempUsageDetail_20' ) start [2025-02-14 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476350', 'tblTempUsageDetail_20' ) end [2025-02-14 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476350', 'tblTempVendorCDR_20' ) start [2025-02-14 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476350', 'tblTempVendorCDR_20' ) end [2025-02-14 21:01:20] Production.INFO: ProcessCDR(1,14476350,1,1,2) [2025-02-14 21:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476350', 'tblTempUsageDetail_20' ) start [2025-02-14 21:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476350', 'tblTempUsageDetail_20' ) end [2025-02-14 21:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:01:24] Production.INFO: ==31071== Releasing lock... [2025-02-14 21:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:01:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-14 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:02:06 [end_date_ymd] => 2025-02-14 21:02:06 [RateCDR] => 1 ) [2025-02-14 21:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 18:02:06' and `end` < '2025-02-14 21:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 21:02:19] Production.INFO: count ==2662 [2025-02-14 21:02:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:02:06 - End Time 2025-02-14 21:02:06 [2025-02-14 21:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476355', 'tblTempUsageDetail_20' ) start [2025-02-14 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476355', 'tblTempUsageDetail_20' ) end [2025-02-14 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476355', 'tblTempVendorCDR_20' ) start [2025-02-14 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476355', 'tblTempVendorCDR_20' ) end [2025-02-14 21:02:20] Production.INFO: ProcessCDR(1,14476355,1,1,2) [2025-02-14 21:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476355', 'tblTempUsageDetail_20' ) start [2025-02-14 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476355', 'tblTempUsageDetail_20' ) end [2025-02-14 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:02:23] Production.INFO: ==31144== Releasing lock... [2025-02-14 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:02:23] Production.INFO: 48 MB #Memory Used# [2025-02-14 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:03:05 [end_date_ymd] => 2025-02-14 21:03:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:03:05' and `end` < '2025-02-14 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-02-14 21:03:19] Production.INFO: count ==2666 [2025-02-14 21:03:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:03:05 - End Time 2025-02-14 21:03:05 [2025-02-14 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476360', 'tblTempUsageDetail_20' ) start [2025-02-14 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476360', 'tblTempUsageDetail_20' ) end [2025-02-14 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476360', 'tblTempVendorCDR_20' ) start [2025-02-14 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476360', 'tblTempVendorCDR_20' ) end [2025-02-14 21:03:19] Production.INFO: ProcessCDR(1,14476360,1,1,2) [2025-02-14 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476360', 'tblTempUsageDetail_20' ) start [2025-02-14 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476360', 'tblTempUsageDetail_20' ) end [2025-02-14 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:03:23] Production.INFO: ==31218== Releasing lock... [2025-02-14 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:03:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-14 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:04:06 [end_date_ymd] => 2025-02-14 21:04:06 [RateCDR] => 1 ) [2025-02-14 21:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 18:04:06' and `end` < '2025-02-14 21:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 21:04:19] Production.INFO: count ==2672 [2025-02-14 21:04:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:04:06 - End Time 2025-02-14 21:04:06 [2025-02-14 21:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476365', 'tblTempUsageDetail_20' ) start [2025-02-14 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476365', 'tblTempUsageDetail_20' ) end [2025-02-14 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476365', 'tblTempVendorCDR_20' ) start [2025-02-14 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476365', 'tblTempVendorCDR_20' ) end [2025-02-14 21:04:20] Production.INFO: ProcessCDR(1,14476365,1,1,2) [2025-02-14 21:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476365', 'tblTempUsageDetail_20' ) start [2025-02-14 21:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476365', 'tblTempUsageDetail_20' ) end [2025-02-14 21:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:04:25] Production.INFO: ==31296== Releasing lock... [2025-02-14 21:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:04:25] Production.INFO: 48 MB #Memory Used# [2025-02-14 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:05:05 [end_date_ymd] => 2025-02-14 21:05:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:05:05' and `end` < '2025-02-14 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-02-14 21:05:20] Production.INFO: count ==2670 [2025-02-14 21:05:21] Production.ERROR: pbx CDR StartTime 2025-02-14 18:05:05 - End Time 2025-02-14 21:05:05 [2025-02-14 21:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476370', 'tblTempUsageDetail_20' ) start [2025-02-14 21:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476370', 'tblTempUsageDetail_20' ) end [2025-02-14 21:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476370', 'tblTempVendorCDR_20' ) start [2025-02-14 21:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476370', 'tblTempVendorCDR_20' ) end [2025-02-14 21:05:21] Production.INFO: ProcessCDR(1,14476370,1,1,2) [2025-02-14 21:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476370', 'tblTempUsageDetail_20' ) start [2025-02-14 21:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476370', 'tblTempUsageDetail_20' ) end [2025-02-14 21:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:05:25] Production.INFO: ==31370== Releasing lock... [2025-02-14 21:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:05:25] Production.INFO: 48 MB #Memory Used# [2025-02-14 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:06:06 [end_date_ymd] => 2025-02-14 21:06:06 [RateCDR] => 1 ) [2025-02-14 21: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-02-14 18:06:06' and `end` < '2025-02-14 21: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-02-14 21:06:20] Production.INFO: count ==2656 [2025-02-14 21:06:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:06:06 - End Time 2025-02-14 21:06:06 [2025-02-14 21:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476375', 'tblTempUsageDetail_20' ) start [2025-02-14 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476375', 'tblTempUsageDetail_20' ) end [2025-02-14 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476375', 'tblTempVendorCDR_20' ) start [2025-02-14 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476375', 'tblTempVendorCDR_20' ) end [2025-02-14 21:06:20] Production.INFO: ProcessCDR(1,14476375,1,1,2) [2025-02-14 21:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476375', 'tblTempUsageDetail_20' ) start [2025-02-14 21:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476375', 'tblTempUsageDetail_20' ) end [2025-02-14 21:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:06:25] Production.INFO: ==31444== Releasing lock... [2025-02-14 21:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:06:25] Production.INFO: 48 MB #Memory Used# [2025-02-14 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:07:05 [end_date_ymd] => 2025-02-14 21:07:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:07:05' and `end` < '2025-02-14 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-02-14 21:07:18] Production.INFO: count ==2655 [2025-02-14 21:07:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:07:05 - End Time 2025-02-14 21:07:05 [2025-02-14 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476380', 'tblTempUsageDetail_20' ) start [2025-02-14 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476380', 'tblTempUsageDetail_20' ) end [2025-02-14 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476380', 'tblTempVendorCDR_20' ) start [2025-02-14 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476380', 'tblTempVendorCDR_20' ) end [2025-02-14 21:07:19] Production.INFO: ProcessCDR(1,14476380,1,1,2) [2025-02-14 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476380', 'tblTempUsageDetail_20' ) start [2025-02-14 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476380', 'tblTempUsageDetail_20' ) end [2025-02-14 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:07:22] Production.INFO: ==31515== Releasing lock... [2025-02-14 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:07:22] Production.INFO: 48 MB #Memory Used# [2025-02-14 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:08:05 [end_date_ymd] => 2025-02-14 21:08:05 [RateCDR] => 1 ) [2025-02-14 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 18:08:05' and `end` < '2025-02-14 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 21:08:21] Production.INFO: count ==2643 [2025-02-14 21:08:21] Production.ERROR: pbx CDR StartTime 2025-02-14 18:08:05 - End Time 2025-02-14 21:08:05 [2025-02-14 21:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476385', 'tblTempUsageDetail_20' ) start [2025-02-14 21:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476385', 'tblTempUsageDetail_20' ) end [2025-02-14 21:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476385', 'tblTempVendorCDR_20' ) start [2025-02-14 21:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476385', 'tblTempVendorCDR_20' ) end [2025-02-14 21:08:22] Production.INFO: ProcessCDR(1,14476385,1,1,2) [2025-02-14 21:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476385', 'tblTempUsageDetail_20' ) start [2025-02-14 21:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476385', 'tblTempUsageDetail_20' ) end [2025-02-14 21:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:08:25] Production.INFO: ==31589== Releasing lock... [2025-02-14 21:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:08:25] Production.INFO: 47.75 MB #Memory Used# [2025-02-14 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:09:05 [end_date_ymd] => 2025-02-14 21:09:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:09:05' and `end` < '2025-02-14 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-02-14 21:09:19] Production.INFO: count ==2637 [2025-02-14 21:09:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:09:05 - End Time 2025-02-14 21:09:05 [2025-02-14 21:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476390', 'tblTempUsageDetail_20' ) start [2025-02-14 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476390', 'tblTempUsageDetail_20' ) end [2025-02-14 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476390', 'tblTempVendorCDR_20' ) start [2025-02-14 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476390', 'tblTempVendorCDR_20' ) end [2025-02-14 21:09:20] Production.INFO: ProcessCDR(1,14476390,1,1,2) [2025-02-14 21:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476390', 'tblTempUsageDetail_20' ) start [2025-02-14 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476390', 'tblTempUsageDetail_20' ) end [2025-02-14 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:09:23] Production.INFO: ==31660== Releasing lock... [2025-02-14 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:09:23] Production.INFO: 47.75 MB #Memory Used# [2025-02-14 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:10:06 [end_date_ymd] => 2025-02-14 21:10:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:10:06' and `end` < '2025-02-14 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-02-14 21:10:20] Production.INFO: count ==2631 [2025-02-14 21:10:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:10:06 - End Time 2025-02-14 21:10:06 [2025-02-14 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476396', 'tblTempUsageDetail_20' ) start [2025-02-14 21:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476396', 'tblTempUsageDetail_20' ) end [2025-02-14 21:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476396', 'tblTempVendorCDR_20' ) start [2025-02-14 21:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476396', 'tblTempVendorCDR_20' ) end [2025-02-14 21:10:21] Production.INFO: ProcessCDR(1,14476396,1,1,2) [2025-02-14 21:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476396', 'tblTempUsageDetail_20' ) start [2025-02-14 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476396', 'tblTempUsageDetail_20' ) end [2025-02-14 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:10:24] Production.INFO: ==31772== Releasing lock... [2025-02-14 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:10:24] Production.INFO: 47.75 MB #Memory Used# [2025-02-14 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:11:05 [end_date_ymd] => 2025-02-14 21:11:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:11:05' and `end` < '2025-02-14 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-02-14 21:11:18] Production.INFO: count ==2545 [2025-02-14 21:11:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:11:05 - End Time 2025-02-14 21:11:05 [2025-02-14 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476401', 'tblTempUsageDetail_20' ) start [2025-02-14 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476401', 'tblTempUsageDetail_20' ) end [2025-02-14 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476401', 'tblTempVendorCDR_20' ) start [2025-02-14 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476401', 'tblTempVendorCDR_20' ) end [2025-02-14 21:11:19] Production.INFO: ProcessCDR(1,14476401,1,1,2) [2025-02-14 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476401', 'tblTempUsageDetail_20' ) start [2025-02-14 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476401', 'tblTempUsageDetail_20' ) end [2025-02-14 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:11:23] Production.INFO: ==31847== Releasing lock... [2025-02-14 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:11:23] Production.INFO: 47.25 MB #Memory Used# [2025-02-14 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:12:06 [end_date_ymd] => 2025-02-14 21:12:06 [RateCDR] => 1 ) [2025-02-14 21: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-02-14 18:12:06' and `end` < '2025-02-14 21: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-02-14 21:12:19] Production.INFO: count ==2523 [2025-02-14 21:12:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:12:06 - End Time 2025-02-14 21:12:06 [2025-02-14 21:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476406', 'tblTempUsageDetail_20' ) start [2025-02-14 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476406', 'tblTempUsageDetail_20' ) end [2025-02-14 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476406', 'tblTempVendorCDR_20' ) start [2025-02-14 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476406', 'tblTempVendorCDR_20' ) end [2025-02-14 21:12:20] Production.INFO: ProcessCDR(1,14476406,1,1,2) [2025-02-14 21:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476406', 'tblTempUsageDetail_20' ) start [2025-02-14 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476406', 'tblTempUsageDetail_20' ) end [2025-02-14 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:12:23] Production.INFO: ==31921== Releasing lock... [2025-02-14 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:12:23] Production.INFO: 47 MB #Memory Used# [2025-02-14 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:13:05 [end_date_ymd] => 2025-02-14 21:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:13:05' and `end` < '2025-02-14 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-02-14 21:13:18] Production.INFO: count ==2518 [2025-02-14 21:13:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:13:05 - End Time 2025-02-14 21:13:05 [2025-02-14 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476411', 'tblTempUsageDetail_20' ) start [2025-02-14 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476411', 'tblTempUsageDetail_20' ) end [2025-02-14 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476411', 'tblTempVendorCDR_20' ) start [2025-02-14 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476411', 'tblTempVendorCDR_20' ) end [2025-02-14 21:13:19] Production.INFO: ProcessCDR(1,14476411,1,1,2) [2025-02-14 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476411', 'tblTempUsageDetail_20' ) start [2025-02-14 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476411', 'tblTempUsageDetail_20' ) end [2025-02-14 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:13:22] Production.INFO: ==31991== Releasing lock... [2025-02-14 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:13:22] Production.INFO: 47 MB #Memory Used# [2025-02-14 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:14:05 [end_date_ymd] => 2025-02-14 21:14:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:14:05' and `end` < '2025-02-14 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-02-14 21:14:21] Production.INFO: count ==2500 [2025-02-14 21:14:21] Production.ERROR: pbx CDR StartTime 2025-02-14 18:14:05 - End Time 2025-02-14 21:14:05 [2025-02-14 21:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476416', 'tblTempUsageDetail_20' ) start [2025-02-14 21:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476416', 'tblTempUsageDetail_20' ) end [2025-02-14 21:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476416', 'tblTempVendorCDR_20' ) start [2025-02-14 21:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476416', 'tblTempVendorCDR_20' ) end [2025-02-14 21:14:21] Production.INFO: ProcessCDR(1,14476416,1,1,2) [2025-02-14 21:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476416', 'tblTempUsageDetail_20' ) start [2025-02-14 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476416', 'tblTempUsageDetail_20' ) end [2025-02-14 21:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:14:24] Production.INFO: ==32068== Releasing lock... [2025-02-14 21:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:14:24] Production.INFO: 46.75 MB #Memory Used# [2025-02-14 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:15:05 [end_date_ymd] => 2025-02-14 21:15:05 [RateCDR] => 1 ) [2025-02-14 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 18:15:05' and `end` < '2025-02-14 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 21:15:18] Production.INFO: count ==2500 [2025-02-14 21:15:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:15:05 - End Time 2025-02-14 21:15:05 [2025-02-14 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476421', 'tblTempUsageDetail_20' ) start [2025-02-14 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476421', 'tblTempUsageDetail_20' ) end [2025-02-14 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476421', 'tblTempVendorCDR_20' ) start [2025-02-14 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476421', 'tblTempVendorCDR_20' ) end [2025-02-14 21:15:19] Production.INFO: ProcessCDR(1,14476421,1,1,2) [2025-02-14 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476421', 'tblTempUsageDetail_20' ) start [2025-02-14 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476421', 'tblTempUsageDetail_20' ) end [2025-02-14 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:15:22] Production.INFO: ==32141== Releasing lock... [2025-02-14 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:15:22] Production.INFO: 46.75 MB #Memory Used# [2025-02-14 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:16:05 [end_date_ymd] => 2025-02-14 21:16:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:16:05' and `end` < '2025-02-14 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-02-14 21:16:19] Production.INFO: count ==2487 [2025-02-14 21:16:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:16:05 - End Time 2025-02-14 21:16:05 [2025-02-14 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476426', 'tblTempUsageDetail_20' ) start [2025-02-14 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476426', 'tblTempUsageDetail_20' ) end [2025-02-14 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476426', 'tblTempVendorCDR_20' ) start [2025-02-14 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476426', 'tblTempVendorCDR_20' ) end [2025-02-14 21:16:19] Production.INFO: ProcessCDR(1,14476426,1,1,2) [2025-02-14 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476426', 'tblTempUsageDetail_20' ) start [2025-02-14 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476426', 'tblTempUsageDetail_20' ) end [2025-02-14 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:16:23] Production.INFO: ==32214== Releasing lock... [2025-02-14 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:16:23] Production.INFO: 46.75 MB #Memory Used# [2025-02-14 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:17:05 [end_date_ymd] => 2025-02-14 21:17:05 [RateCDR] => 1 ) [2025-02-14 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 18:17:05' and `end` < '2025-02-14 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 21:17:19] Production.INFO: count ==2480 [2025-02-14 21:17:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:17:05 - End Time 2025-02-14 21:17:05 [2025-02-14 21:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476431', 'tblTempUsageDetail_20' ) start [2025-02-14 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476431', 'tblTempUsageDetail_20' ) end [2025-02-14 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476431', 'tblTempVendorCDR_20' ) start [2025-02-14 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476431', 'tblTempVendorCDR_20' ) end [2025-02-14 21:17:20] Production.INFO: ProcessCDR(1,14476431,1,1,2) [2025-02-14 21:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476431', 'tblTempUsageDetail_20' ) start [2025-02-14 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476431', 'tblTempUsageDetail_20' ) end [2025-02-14 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:17:24] Production.INFO: ==32288== Releasing lock... [2025-02-14 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:17:24] Production.INFO: 46.75 MB #Memory Used# [2025-02-14 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:18:05 [end_date_ymd] => 2025-02-14 21:18:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:18:05' and `end` < '2025-02-14 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-02-14 21:18:19] Production.INFO: count ==2477 [2025-02-14 21:18:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:18:05 - End Time 2025-02-14 21:18:05 [2025-02-14 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476436', 'tblTempUsageDetail_20' ) start [2025-02-14 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476436', 'tblTempUsageDetail_20' ) end [2025-02-14 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476436', 'tblTempVendorCDR_20' ) start [2025-02-14 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476436', 'tblTempVendorCDR_20' ) end [2025-02-14 21:18:19] Production.INFO: ProcessCDR(1,14476436,1,1,2) [2025-02-14 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476436', 'tblTempUsageDetail_20' ) start [2025-02-14 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476436', 'tblTempUsageDetail_20' ) end [2025-02-14 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:18:22] Production.INFO: ==32360== Releasing lock... [2025-02-14 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:18:22] Production.INFO: 46.5 MB #Memory Used# [2025-02-14 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:19:05 [end_date_ymd] => 2025-02-14 21:19:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:19:05' and `end` < '2025-02-14 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-02-14 21:19:19] Production.INFO: count ==2484 [2025-02-14 21:19:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:19:05 - End Time 2025-02-14 21:19:05 [2025-02-14 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476441', 'tblTempUsageDetail_20' ) start [2025-02-14 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476441', 'tblTempUsageDetail_20' ) end [2025-02-14 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476441', 'tblTempVendorCDR_20' ) start [2025-02-14 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476441', 'tblTempVendorCDR_20' ) end [2025-02-14 21:19:19] Production.INFO: ProcessCDR(1,14476441,1,1,2) [2025-02-14 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476441', 'tblTempUsageDetail_20' ) start [2025-02-14 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476441', 'tblTempUsageDetail_20' ) end [2025-02-14 21:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:19:23] Production.INFO: ==32434== Releasing lock... [2025-02-14 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:19:23] Production.INFO: 46.75 MB #Memory Used# [2025-02-14 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:20:06 [end_date_ymd] => 2025-02-14 21:20:06 [RateCDR] => 1 ) [2025-02-14 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 18:20:06' and `end` < '2025-02-14 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 21:20:19] Production.INFO: count ==2482 [2025-02-14 21:20:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:20:06 - End Time 2025-02-14 21:20:06 [2025-02-14 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476447', 'tblTempUsageDetail_20' ) start [2025-02-14 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476447', 'tblTempUsageDetail_20' ) end [2025-02-14 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476447', 'tblTempVendorCDR_20' ) start [2025-02-14 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476447', 'tblTempVendorCDR_20' ) end [2025-02-14 21:20:20] Production.INFO: ProcessCDR(1,14476447,1,1,2) [2025-02-14 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476447', 'tblTempUsageDetail_20' ) start [2025-02-14 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476447', 'tblTempUsageDetail_20' ) end [2025-02-14 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:20:23] Production.INFO: ==32510== Releasing lock... [2025-02-14 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:20:23] Production.INFO: 46.75 MB #Memory Used# [2025-02-14 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:21:05 [end_date_ymd] => 2025-02-14 21:21:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:21:05' and `end` < '2025-02-14 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-02-14 21:21:20] Production.INFO: count ==2444 [2025-02-14 21:21:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:21:05 - End Time 2025-02-14 21:21:05 [2025-02-14 21:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476452', 'tblTempUsageDetail_20' ) start [2025-02-14 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476452', 'tblTempUsageDetail_20' ) end [2025-02-14 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476452', 'tblTempVendorCDR_20' ) start [2025-02-14 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476452', 'tblTempVendorCDR_20' ) end [2025-02-14 21:21:20] Production.INFO: ProcessCDR(1,14476452,1,1,2) [2025-02-14 21:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476452', 'tblTempUsageDetail_20' ) start [2025-02-14 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476452', 'tblTempUsageDetail_20' ) end [2025-02-14 21:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:21:24] Production.INFO: ==32583== Releasing lock... [2025-02-14 21:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:21:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-14 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:22:05 [end_date_ymd] => 2025-02-14 21:22:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:22:05' and `end` < '2025-02-14 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-02-14 21:22:18] Production.INFO: count ==2431 [2025-02-14 21:22:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:22:05 - End Time 2025-02-14 21:22:05 [2025-02-14 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476457', 'tblTempUsageDetail_20' ) start [2025-02-14 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476457', 'tblTempUsageDetail_20' ) end [2025-02-14 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476457', 'tblTempVendorCDR_20' ) start [2025-02-14 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476457', 'tblTempVendorCDR_20' ) end [2025-02-14 21:22:19] Production.INFO: ProcessCDR(1,14476457,1,1,2) [2025-02-14 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476457', 'tblTempUsageDetail_20' ) start [2025-02-14 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476457', 'tblTempUsageDetail_20' ) end [2025-02-14 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:22:22] Production.INFO: ==32654== Releasing lock... [2025-02-14 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:22:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-14 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:23:05 [end_date_ymd] => 2025-02-14 21:23:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:23:05' and `end` < '2025-02-14 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-02-14 21:23:18] Production.INFO: count ==2431 [2025-02-14 21:23:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:23:05 - End Time 2025-02-14 21:23:05 [2025-02-14 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476462', 'tblTempUsageDetail_20' ) start [2025-02-14 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476462', 'tblTempUsageDetail_20' ) end [2025-02-14 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476462', 'tblTempVendorCDR_20' ) start [2025-02-14 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476462', 'tblTempVendorCDR_20' ) end [2025-02-14 21:23:19] Production.INFO: ProcessCDR(1,14476462,1,1,2) [2025-02-14 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476462', 'tblTempUsageDetail_20' ) start [2025-02-14 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476462', 'tblTempUsageDetail_20' ) end [2025-02-14 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:23:22] Production.INFO: ==32731== Releasing lock... [2025-02-14 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:23:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-14 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:24:06 [end_date_ymd] => 2025-02-14 21:24:06 [RateCDR] => 1 ) [2025-02-14 21:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 18:24:06' and `end` < '2025-02-14 21:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 21:24:19] Production.INFO: count ==2430 [2025-02-14 21:24:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:24:06 - End Time 2025-02-14 21:24:06 [2025-02-14 21:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476467', 'tblTempUsageDetail_20' ) start [2025-02-14 21:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476467', 'tblTempUsageDetail_20' ) end [2025-02-14 21:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476467', 'tblTempVendorCDR_20' ) start [2025-02-14 21:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476467', 'tblTempVendorCDR_20' ) end [2025-02-14 21:24:20] Production.INFO: ProcessCDR(1,14476467,1,1,2) [2025-02-14 21:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476467', 'tblTempUsageDetail_20' ) start [2025-02-14 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476467', 'tblTempUsageDetail_20' ) end [2025-02-14 21:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:24:24] Production.INFO: ==355== Releasing lock... [2025-02-14 21:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:24:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-14 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:25:05 [end_date_ymd] => 2025-02-14 21:25:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:25:05' and `end` < '2025-02-14 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-02-14 21:25:19] Production.INFO: count ==2426 [2025-02-14 21:25:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:25:05 - End Time 2025-02-14 21:25:05 [2025-02-14 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476472', 'tblTempUsageDetail_20' ) start [2025-02-14 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476472', 'tblTempUsageDetail_20' ) end [2025-02-14 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476472', 'tblTempVendorCDR_20' ) start [2025-02-14 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476472', 'tblTempVendorCDR_20' ) end [2025-02-14 21:25:19] Production.INFO: ProcessCDR(1,14476472,1,1,2) [2025-02-14 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476472', 'tblTempUsageDetail_20' ) start [2025-02-14 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476472', 'tblTempUsageDetail_20' ) end [2025-02-14 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:25:23] Production.INFO: ==425== Releasing lock... [2025-02-14 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:25:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-14 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:26:05 [end_date_ymd] => 2025-02-14 21:26:05 [RateCDR] => 1 ) [2025-02-14 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 18:26:05' and `end` < '2025-02-14 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 21:26:18] Production.INFO: count ==2424 [2025-02-14 21:26:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:26:05 - End Time 2025-02-14 21:26:05 [2025-02-14 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476477', 'tblTempUsageDetail_20' ) start [2025-02-14 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476477', 'tblTempUsageDetail_20' ) end [2025-02-14 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476477', 'tblTempVendorCDR_20' ) start [2025-02-14 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476477', 'tblTempVendorCDR_20' ) end [2025-02-14 21:26:19] Production.INFO: ProcessCDR(1,14476477,1,1,2) [2025-02-14 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476477', 'tblTempUsageDetail_20' ) start [2025-02-14 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476477', 'tblTempUsageDetail_20' ) end [2025-02-14 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:26:22] Production.INFO: ==539== Releasing lock... [2025-02-14 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:26:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-14 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:27:05 [end_date_ymd] => 2025-02-14 21:27:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:27:05' and `end` < '2025-02-14 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-02-14 21:27:21] Production.INFO: count ==2417 [2025-02-14 21:27:21] Production.ERROR: pbx CDR StartTime 2025-02-14 18:27:05 - End Time 2025-02-14 21:27:05 [2025-02-14 21:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476482', 'tblTempUsageDetail_20' ) start [2025-02-14 21:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476482', 'tblTempUsageDetail_20' ) end [2025-02-14 21:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476482', 'tblTempVendorCDR_20' ) start [2025-02-14 21:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476482', 'tblTempVendorCDR_20' ) end [2025-02-14 21:27:21] Production.INFO: ProcessCDR(1,14476482,1,1,2) [2025-02-14 21:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476482', 'tblTempUsageDetail_20' ) start [2025-02-14 21:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476482', 'tblTempUsageDetail_20' ) end [2025-02-14 21:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:27:26] Production.INFO: ==619== Releasing lock... [2025-02-14 21:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:27:26] Production.INFO: 46.25 MB #Memory Used# [2025-02-14 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:28:05 [end_date_ymd] => 2025-02-14 21:28:05 [RateCDR] => 1 ) [2025-02-14 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 18:28:05' and `end` < '2025-02-14 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 21:28:18] Production.INFO: count ==2410 [2025-02-14 21:28:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:28:05 - End Time 2025-02-14 21:28:05 [2025-02-14 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476487', 'tblTempUsageDetail_20' ) start [2025-02-14 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476487', 'tblTempUsageDetail_20' ) end [2025-02-14 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476487', 'tblTempVendorCDR_20' ) start [2025-02-14 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476487', 'tblTempVendorCDR_20' ) end [2025-02-14 21:28:19] Production.INFO: ProcessCDR(1,14476487,1,1,2) [2025-02-14 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476487', 'tblTempUsageDetail_20' ) start [2025-02-14 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476487', 'tblTempUsageDetail_20' ) end [2025-02-14 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:28:22] Production.INFO: ==715== Releasing lock... [2025-02-14 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:28:22] Production.INFO: 46 MB #Memory Used# [2025-02-14 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:29:06 [end_date_ymd] => 2025-02-14 21:29:06 [RateCDR] => 1 ) [2025-02-14 21:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 18:29:06' and `end` < '2025-02-14 21:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 21:29:19] Production.INFO: count ==2406 [2025-02-14 21:29:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:29:06 - End Time 2025-02-14 21:29:06 [2025-02-14 21:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476492', 'tblTempUsageDetail_20' ) start [2025-02-14 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476492', 'tblTempUsageDetail_20' ) end [2025-02-14 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476492', 'tblTempVendorCDR_20' ) start [2025-02-14 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476492', 'tblTempVendorCDR_20' ) end [2025-02-14 21:29:20] Production.INFO: ProcessCDR(1,14476492,1,1,2) [2025-02-14 21:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476492', 'tblTempUsageDetail_20' ) start [2025-02-14 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476492', 'tblTempUsageDetail_20' ) end [2025-02-14 21:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:29:23] Production.INFO: ==790== Releasing lock... [2025-02-14 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:29:23] Production.INFO: 46 MB #Memory Used# [2025-02-14 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:30:05 [end_date_ymd] => 2025-02-14 21:30:05 [RateCDR] => 1 ) [2025-02-14 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 18:30:05' and `end` < '2025-02-14 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 21:30:19] Production.INFO: count ==2407 [2025-02-14 21:30:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:30:05 - End Time 2025-02-14 21:30:05 [2025-02-14 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476498', 'tblTempUsageDetail_20' ) start [2025-02-14 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476498', 'tblTempUsageDetail_20' ) end [2025-02-14 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476498', 'tblTempVendorCDR_20' ) start [2025-02-14 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476498', 'tblTempVendorCDR_20' ) end [2025-02-14 21:30:19] Production.INFO: ProcessCDR(1,14476498,1,1,2) [2025-02-14 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476498', 'tblTempUsageDetail_20' ) start [2025-02-14 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476498', 'tblTempUsageDetail_20' ) end [2025-02-14 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:30:24] Production.INFO: ==862== Releasing lock... [2025-02-14 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:30:24] Production.INFO: 46 MB #Memory Used# [2025-02-14 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:31:05 [end_date_ymd] => 2025-02-14 21:31:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:31:05' and `end` < '2025-02-14 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-02-14 21:31:18] Production.INFO: count ==2371 [2025-02-14 21:31:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:31:05 - End Time 2025-02-14 21:31:05 [2025-02-14 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476503', 'tblTempUsageDetail_20' ) start [2025-02-14 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476503', 'tblTempUsageDetail_20' ) end [2025-02-14 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476503', 'tblTempVendorCDR_20' ) start [2025-02-14 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476503', 'tblTempVendorCDR_20' ) end [2025-02-14 21:31:19] Production.INFO: ProcessCDR(1,14476503,1,1,2) [2025-02-14 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476503', 'tblTempUsageDetail_20' ) start [2025-02-14 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476503', 'tblTempUsageDetail_20' ) end [2025-02-14 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:31:23] Production.INFO: ==936== Releasing lock... [2025-02-14 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:31:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-14 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:32:05 [end_date_ymd] => 2025-02-14 21:32:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:32:05' and `end` < '2025-02-14 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-02-14 21:32:19] Production.INFO: count ==2369 [2025-02-14 21:32:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:32:05 - End Time 2025-02-14 21:32:05 [2025-02-14 21:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476508', 'tblTempUsageDetail_20' ) start [2025-02-14 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476508', 'tblTempUsageDetail_20' ) end [2025-02-14 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476508', 'tblTempVendorCDR_20' ) start [2025-02-14 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476508', 'tblTempVendorCDR_20' ) end [2025-02-14 21:32:20] Production.INFO: ProcessCDR(1,14476508,1,1,2) [2025-02-14 21:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476508', 'tblTempUsageDetail_20' ) start [2025-02-14 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476508', 'tblTempUsageDetail_20' ) end [2025-02-14 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:32:23] Production.INFO: ==1008== Releasing lock... [2025-02-14 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:32:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-14 21:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:33:06 [end_date_ymd] => 2025-02-14 21:33:06 [RateCDR] => 1 ) [2025-02-14 21: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-02-14 18:33:06' and `end` < '2025-02-14 21: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-02-14 21:33:19] Production.INFO: count ==2353 [2025-02-14 21:33:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:33:06 - End Time 2025-02-14 21:33:06 [2025-02-14 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476513', 'tblTempUsageDetail_20' ) start [2025-02-14 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476513', 'tblTempUsageDetail_20' ) end [2025-02-14 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476513', 'tblTempVendorCDR_20' ) start [2025-02-14 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476513', 'tblTempVendorCDR_20' ) end [2025-02-14 21:33:20] Production.INFO: ProcessCDR(1,14476513,1,1,2) [2025-02-14 21:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476513', 'tblTempUsageDetail_20' ) start [2025-02-14 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476513', 'tblTempUsageDetail_20' ) end [2025-02-14 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:33:23] Production.INFO: ==1078== Releasing lock... [2025-02-14 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:33:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-14 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:34:05 [end_date_ymd] => 2025-02-14 21:34:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:34:05' and `end` < '2025-02-14 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-02-14 21:34:18] Production.INFO: count ==2351 [2025-02-14 21:34:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:34:05 - End Time 2025-02-14 21:34:05 [2025-02-14 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476518', 'tblTempUsageDetail_20' ) start [2025-02-14 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476518', 'tblTempUsageDetail_20' ) end [2025-02-14 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476518', 'tblTempVendorCDR_20' ) start [2025-02-14 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476518', 'tblTempVendorCDR_20' ) end [2025-02-14 21:34:19] Production.INFO: ProcessCDR(1,14476518,1,1,2) [2025-02-14 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476518', 'tblTempUsageDetail_20' ) start [2025-02-14 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476518', 'tblTempUsageDetail_20' ) end [2025-02-14 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:34:22] Production.INFO: ==1154== Releasing lock... [2025-02-14 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:34:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-14 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:35:05 [end_date_ymd] => 2025-02-14 21:35:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:35:05' and `end` < '2025-02-14 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-02-14 21:35:19] Production.INFO: count ==2347 [2025-02-14 21:35:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:35:05 - End Time 2025-02-14 21:35:05 [2025-02-14 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476523', 'tblTempUsageDetail_20' ) start [2025-02-14 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476523', 'tblTempUsageDetail_20' ) end [2025-02-14 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476523', 'tblTempVendorCDR_20' ) start [2025-02-14 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476523', 'tblTempVendorCDR_20' ) end [2025-02-14 21:35:19] Production.INFO: ProcessCDR(1,14476523,1,1,2) [2025-02-14 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476523', 'tblTempUsageDetail_20' ) start [2025-02-14 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476523', 'tblTempUsageDetail_20' ) end [2025-02-14 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:35:22] Production.INFO: ==1230== Releasing lock... [2025-02-14 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:35:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-14 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:36:05 [end_date_ymd] => 2025-02-14 21:36:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:36:05' and `end` < '2025-02-14 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-02-14 21:36:18] Production.INFO: count ==2347 [2025-02-14 21:36:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:36:05 - End Time 2025-02-14 21:36:05 [2025-02-14 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476528', 'tblTempUsageDetail_20' ) start [2025-02-14 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476528', 'tblTempUsageDetail_20' ) end [2025-02-14 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476528', 'tblTempVendorCDR_20' ) start [2025-02-14 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476528', 'tblTempVendorCDR_20' ) end [2025-02-14 21:36:19] Production.INFO: ProcessCDR(1,14476528,1,1,2) [2025-02-14 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476528', 'tblTempUsageDetail_20' ) start [2025-02-14 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476528', 'tblTempUsageDetail_20' ) end [2025-02-14 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:36:22] Production.INFO: ==1312== Releasing lock... [2025-02-14 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:36:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-14 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:37:05 [end_date_ymd] => 2025-02-14 21:37:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:37:05' and `end` < '2025-02-14 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-02-14 21:37:19] Production.INFO: count ==2343 [2025-02-14 21:37:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:37:05 - End Time 2025-02-14 21:37:05 [2025-02-14 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476533', 'tblTempUsageDetail_20' ) start [2025-02-14 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476533', 'tblTempUsageDetail_20' ) end [2025-02-14 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476533', 'tblTempVendorCDR_20' ) start [2025-02-14 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476533', 'tblTempVendorCDR_20' ) end [2025-02-14 21:37:19] Production.INFO: ProcessCDR(1,14476533,1,1,2) [2025-02-14 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476533', 'tblTempUsageDetail_20' ) start [2025-02-14 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476533', 'tblTempUsageDetail_20' ) end [2025-02-14 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:37:22] Production.INFO: ==1384== Releasing lock... [2025-02-14 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:37:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-14 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:38:05 [end_date_ymd] => 2025-02-14 21:38:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:38:05' and `end` < '2025-02-14 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-02-14 21:38:18] Production.INFO: count ==2343 [2025-02-14 21:38:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:38:05 - End Time 2025-02-14 21:38:05 [2025-02-14 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476538', 'tblTempUsageDetail_20' ) start [2025-02-14 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476538', 'tblTempUsageDetail_20' ) end [2025-02-14 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476538', 'tblTempVendorCDR_20' ) start [2025-02-14 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476538', 'tblTempVendorCDR_20' ) end [2025-02-14 21:38:19] Production.INFO: ProcessCDR(1,14476538,1,1,2) [2025-02-14 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476538', 'tblTempUsageDetail_20' ) start [2025-02-14 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476538', 'tblTempUsageDetail_20' ) end [2025-02-14 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:38:22] Production.INFO: ==1457== Releasing lock... [2025-02-14 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:38:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-14 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:39:05 [end_date_ymd] => 2025-02-14 21:39:05 [RateCDR] => 1 ) [2025-02-14 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 18:39:05' and `end` < '2025-02-14 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 21:39:19] Production.INFO: count ==2342 [2025-02-14 21:39:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:39:05 - End Time 2025-02-14 21:39:05 [2025-02-14 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476543', 'tblTempUsageDetail_20' ) start [2025-02-14 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476543', 'tblTempUsageDetail_20' ) end [2025-02-14 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476543', 'tblTempVendorCDR_20' ) start [2025-02-14 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476543', 'tblTempVendorCDR_20' ) end [2025-02-14 21:39:19] Production.INFO: ProcessCDR(1,14476543,1,1,2) [2025-02-14 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476543', 'tblTempUsageDetail_20' ) start [2025-02-14 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476543', 'tblTempUsageDetail_20' ) end [2025-02-14 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:39:23] Production.INFO: ==1561== Releasing lock... [2025-02-14 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:39:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-14 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:40:05 [end_date_ymd] => 2025-02-14 21:40:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:40:05' and `end` < '2025-02-14 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-02-14 21:40:20] Production.INFO: count ==2346 [2025-02-14 21:40:21] Production.ERROR: pbx CDR StartTime 2025-02-14 18:40:05 - End Time 2025-02-14 21:40:05 [2025-02-14 21:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476549', 'tblTempUsageDetail_20' ) start [2025-02-14 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476549', 'tblTempUsageDetail_20' ) end [2025-02-14 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476549', 'tblTempVendorCDR_20' ) start [2025-02-14 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476549', 'tblTempVendorCDR_20' ) end [2025-02-14 21:40:21] Production.INFO: ProcessCDR(1,14476549,1,1,2) [2025-02-14 21:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476549', 'tblTempUsageDetail_20' ) start [2025-02-14 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476549', 'tblTempUsageDetail_20' ) end [2025-02-14 21:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:40:24] Production.INFO: ==1638== Releasing lock... [2025-02-14 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:40:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-14 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:41:05 [end_date_ymd] => 2025-02-14 21:41:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:41:05' and `end` < '2025-02-14 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-02-14 21:41:19] Production.INFO: count ==2301 [2025-02-14 21:41:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:41:05 - End Time 2025-02-14 21:41:05 [2025-02-14 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476554', 'tblTempUsageDetail_20' ) start [2025-02-14 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476554', 'tblTempUsageDetail_20' ) end [2025-02-14 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476554', 'tblTempVendorCDR_20' ) start [2025-02-14 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476554', 'tblTempVendorCDR_20' ) end [2025-02-14 21:41:20] Production.INFO: ProcessCDR(1,14476554,1,1,2) [2025-02-14 21:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476554', 'tblTempUsageDetail_20' ) start [2025-02-14 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476554', 'tblTempUsageDetail_20' ) end [2025-02-14 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:41:23] Production.INFO: ==1753== Releasing lock... [2025-02-14 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:41:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-14 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:42:05 [end_date_ymd] => 2025-02-14 21:42:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:42:05' and `end` < '2025-02-14 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-02-14 21:42:18] Production.INFO: count ==2299 [2025-02-14 21:42:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:42:05 - End Time 2025-02-14 21:42:05 [2025-02-14 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476559', 'tblTempUsageDetail_20' ) start [2025-02-14 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476559', 'tblTempUsageDetail_20' ) end [2025-02-14 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476559', 'tblTempVendorCDR_20' ) start [2025-02-14 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476559', 'tblTempVendorCDR_20' ) end [2025-02-14 21:42:19] Production.INFO: ProcessCDR(1,14476559,1,1,2) [2025-02-14 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476559', 'tblTempUsageDetail_20' ) start [2025-02-14 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476559', 'tblTempUsageDetail_20' ) end [2025-02-14 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:42:22] Production.INFO: ==1830== Releasing lock... [2025-02-14 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:42:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-14 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:43:06 [end_date_ymd] => 2025-02-14 21:43:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:43:06' and `end` < '2025-02-14 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-02-14 21:43:19] Production.INFO: count ==2299 [2025-02-14 21:43:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:43:06 - End Time 2025-02-14 21:43:06 [2025-02-14 21:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476564', 'tblTempUsageDetail_20' ) start [2025-02-14 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476564', 'tblTempUsageDetail_20' ) end [2025-02-14 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476564', 'tblTempVendorCDR_20' ) start [2025-02-14 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476564', 'tblTempVendorCDR_20' ) end [2025-02-14 21:43:20] Production.INFO: ProcessCDR(1,14476564,1,1,2) [2025-02-14 21:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476564', 'tblTempUsageDetail_20' ) start [2025-02-14 21:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476564', 'tblTempUsageDetail_20' ) end [2025-02-14 21:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:43:25] Production.INFO: ==1907== Releasing lock... [2025-02-14 21:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:43:25] Production.INFO: 45.25 MB #Memory Used# [2025-02-14 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:44:05 [end_date_ymd] => 2025-02-14 21:44:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:44:05' and `end` < '2025-02-14 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-02-14 21:44:18] Production.INFO: count ==2292 [2025-02-14 21:44:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:44:05 - End Time 2025-02-14 21:44:05 [2025-02-14 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476569', 'tblTempUsageDetail_20' ) start [2025-02-14 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476569', 'tblTempUsageDetail_20' ) end [2025-02-14 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476569', 'tblTempVendorCDR_20' ) start [2025-02-14 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476569', 'tblTempVendorCDR_20' ) end [2025-02-14 21:44:19] Production.INFO: ProcessCDR(1,14476569,1,1,2) [2025-02-14 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476569', 'tblTempUsageDetail_20' ) start [2025-02-14 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476569', 'tblTempUsageDetail_20' ) end [2025-02-14 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:44:22] Production.INFO: ==1977== Releasing lock... [2025-02-14 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:44:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-14 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:45:05 [end_date_ymd] => 2025-02-14 21:45:05 [RateCDR] => 1 ) [2025-02-14 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 18:45:05' and `end` < '2025-02-14 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 21:45:19] Production.INFO: count ==2282 [2025-02-14 21:45:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:45:05 - End Time 2025-02-14 21:45:05 [2025-02-14 21:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476574', 'tblTempUsageDetail_20' ) start [2025-02-14 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476574', 'tblTempUsageDetail_20' ) end [2025-02-14 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476574', 'tblTempVendorCDR_20' ) start [2025-02-14 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476574', 'tblTempVendorCDR_20' ) end [2025-02-14 21:45:20] Production.INFO: ProcessCDR(1,14476574,1,1,2) [2025-02-14 21:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476574', 'tblTempUsageDetail_20' ) start [2025-02-14 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476574', 'tblTempUsageDetail_20' ) end [2025-02-14 21:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:45:23] Production.INFO: ==2049== Releasing lock... [2025-02-14 21:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:45:23] Production.INFO: 45 MB #Memory Used# [2025-02-14 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:46:05 [end_date_ymd] => 2025-02-14 21:46:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:46:05' and `end` < '2025-02-14 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-02-14 21:46:18] Production.INFO: count ==2260 [2025-02-14 21:46:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:46:05 - End Time 2025-02-14 21:46:05 [2025-02-14 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476579', 'tblTempUsageDetail_20' ) start [2025-02-14 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476579', 'tblTempUsageDetail_20' ) end [2025-02-14 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476579', 'tblTempVendorCDR_20' ) start [2025-02-14 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476579', 'tblTempVendorCDR_20' ) end [2025-02-14 21:46:19] Production.INFO: ProcessCDR(1,14476579,1,1,2) [2025-02-14 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476579', 'tblTempUsageDetail_20' ) start [2025-02-14 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476579', 'tblTempUsageDetail_20' ) end [2025-02-14 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:46:22] Production.INFO: ==2119== Releasing lock... [2025-02-14 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:46:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-14 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:47:05 [end_date_ymd] => 2025-02-14 21:47:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:47:05' and `end` < '2025-02-14 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-02-14 21:47:18] Production.INFO: count ==2260 [2025-02-14 21:47:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:47:05 - End Time 2025-02-14 21:47:05 [2025-02-14 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476584', 'tblTempUsageDetail_20' ) start [2025-02-14 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476584', 'tblTempUsageDetail_20' ) end [2025-02-14 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476584', 'tblTempVendorCDR_20' ) start [2025-02-14 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476584', 'tblTempVendorCDR_20' ) end [2025-02-14 21:47:19] Production.INFO: ProcessCDR(1,14476584,1,1,2) [2025-02-14 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476584', 'tblTempUsageDetail_20' ) start [2025-02-14 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476584', 'tblTempUsageDetail_20' ) end [2025-02-14 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:47:22] Production.INFO: ==2191== Releasing lock... [2025-02-14 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:47:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-14 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:48:05 [end_date_ymd] => 2025-02-14 21:48:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:48:05' and `end` < '2025-02-14 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-02-14 21:48:19] Production.INFO: count ==2259 [2025-02-14 21:48:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:48:05 - End Time 2025-02-14 21:48:05 [2025-02-14 21:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476589', 'tblTempUsageDetail_20' ) start [2025-02-14 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476589', 'tblTempUsageDetail_20' ) end [2025-02-14 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476589', 'tblTempVendorCDR_20' ) start [2025-02-14 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476589', 'tblTempVendorCDR_20' ) end [2025-02-14 21:48:20] Production.INFO: ProcessCDR(1,14476589,1,1,2) [2025-02-14 21:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476589', 'tblTempUsageDetail_20' ) start [2025-02-14 21:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476589', 'tblTempUsageDetail_20' ) end [2025-02-14 21:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:48:25] Production.INFO: ==2263== Releasing lock... [2025-02-14 21:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:48:25] Production.INFO: 45 MB #Memory Used# [2025-02-14 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:49:05 [end_date_ymd] => 2025-02-14 21:49:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:49:05' and `end` < '2025-02-14 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-02-14 21:49:18] Production.INFO: count ==2252 [2025-02-14 21:49:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:49:05 - End Time 2025-02-14 21:49:05 [2025-02-14 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476594', 'tblTempUsageDetail_20' ) start [2025-02-14 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476594', 'tblTempUsageDetail_20' ) end [2025-02-14 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476594', 'tblTempVendorCDR_20' ) start [2025-02-14 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476594', 'tblTempVendorCDR_20' ) end [2025-02-14 21:49:19] Production.INFO: ProcessCDR(1,14476594,1,1,2) [2025-02-14 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476594', 'tblTempUsageDetail_20' ) start [2025-02-14 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476594', 'tblTempUsageDetail_20' ) end [2025-02-14 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:49:22] Production.INFO: ==2333== Releasing lock... [2025-02-14 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:49:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-14 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:50:06 [end_date_ymd] => 2025-02-14 21:50:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:50:06' and `end` < '2025-02-14 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-02-14 21:50:19] Production.INFO: count ==2252 [2025-02-14 21:50:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:50:06 - End Time 2025-02-14 21:50:06 [2025-02-14 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476600', 'tblTempUsageDetail_20' ) start [2025-02-14 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476600', 'tblTempUsageDetail_20' ) end [2025-02-14 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476600', 'tblTempVendorCDR_20' ) start [2025-02-14 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476600', 'tblTempVendorCDR_20' ) end [2025-02-14 21:50:20] Production.INFO: ProcessCDR(1,14476600,1,1,2) [2025-02-14 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476600', 'tblTempUsageDetail_20' ) start [2025-02-14 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476600', 'tblTempUsageDetail_20' ) end [2025-02-14 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:50:23] Production.INFO: ==2405== Releasing lock... [2025-02-14 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:50:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-14 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:51:05 [end_date_ymd] => 2025-02-14 21:51:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:51:05' and `end` < '2025-02-14 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-02-14 21:51:19] Production.INFO: count ==2207 [2025-02-14 21:51:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:51:05 - End Time 2025-02-14 21:51:05 [2025-02-14 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476605', 'tblTempUsageDetail_20' ) start [2025-02-14 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476605', 'tblTempUsageDetail_20' ) end [2025-02-14 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476605', 'tblTempVendorCDR_20' ) start [2025-02-14 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476605', 'tblTempVendorCDR_20' ) end [2025-02-14 21:51:19] Production.INFO: ProcessCDR(1,14476605,1,1,2) [2025-02-14 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476605', 'tblTempUsageDetail_20' ) start [2025-02-14 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476605', 'tblTempUsageDetail_20' ) end [2025-02-14 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:51:22] Production.INFO: ==2479== Releasing lock... [2025-02-14 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:51:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-14 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:52:05 [end_date_ymd] => 2025-02-14 21:52:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:52:05' and `end` < '2025-02-14 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-02-14 21:52:18] Production.INFO: count ==2211 [2025-02-14 21:52:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:52:05 - End Time 2025-02-14 21:52:05 [2025-02-14 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476610', 'tblTempUsageDetail_20' ) start [2025-02-14 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476610', 'tblTempUsageDetail_20' ) end [2025-02-14 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476610', 'tblTempVendorCDR_20' ) start [2025-02-14 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476610', 'tblTempVendorCDR_20' ) end [2025-02-14 21:52:19] Production.INFO: ProcessCDR(1,14476610,1,1,2) [2025-02-14 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476610', 'tblTempUsageDetail_20' ) start [2025-02-14 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476610', 'tblTempUsageDetail_20' ) end [2025-02-14 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:52:22] Production.INFO: ==2548== Releasing lock... [2025-02-14 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:52:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-14 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:53:05 [end_date_ymd] => 2025-02-14 21:53:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:53:05' and `end` < '2025-02-14 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-02-14 21:53:18] Production.INFO: count ==2212 [2025-02-14 21:53:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:53:05 - End Time 2025-02-14 21:53:05 [2025-02-14 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476615', 'tblTempUsageDetail_20' ) start [2025-02-14 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476615', 'tblTempUsageDetail_20' ) end [2025-02-14 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476615', 'tblTempVendorCDR_20' ) start [2025-02-14 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476615', 'tblTempVendorCDR_20' ) end [2025-02-14 21:53:19] Production.INFO: ProcessCDR(1,14476615,1,1,2) [2025-02-14 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476615', 'tblTempUsageDetail_20' ) start [2025-02-14 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476615', 'tblTempUsageDetail_20' ) end [2025-02-14 21:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:53:24] Production.INFO: ==2621== Releasing lock... [2025-02-14 21:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:53:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-14 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:54:05 [end_date_ymd] => 2025-02-14 21:54:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:54:05' and `end` < '2025-02-14 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-02-14 21:54:18] Production.INFO: count ==2212 [2025-02-14 21:54:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:54:05 - End Time 2025-02-14 21:54:05 [2025-02-14 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476620', 'tblTempUsageDetail_20' ) start [2025-02-14 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476620', 'tblTempUsageDetail_20' ) end [2025-02-14 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476620', 'tblTempVendorCDR_20' ) start [2025-02-14 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476620', 'tblTempVendorCDR_20' ) end [2025-02-14 21:54:19] Production.INFO: ProcessCDR(1,14476620,1,1,2) [2025-02-14 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476620', 'tblTempUsageDetail_20' ) start [2025-02-14 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476620', 'tblTempUsageDetail_20' ) end [2025-02-14 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:54:22] Production.INFO: ==2694== Releasing lock... [2025-02-14 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:54:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-14 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:55:05 [end_date_ymd] => 2025-02-14 21:55:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:55:05' and `end` < '2025-02-14 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-02-14 21:55:19] Production.INFO: count ==2209 [2025-02-14 21:55:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:55:05 - End Time 2025-02-14 21:55:05 [2025-02-14 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476625', 'tblTempUsageDetail_20' ) start [2025-02-14 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476625', 'tblTempUsageDetail_20' ) end [2025-02-14 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476625', 'tblTempVendorCDR_20' ) start [2025-02-14 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476625', 'tblTempVendorCDR_20' ) end [2025-02-14 21:55:19] Production.INFO: ProcessCDR(1,14476625,1,1,2) [2025-02-14 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476625', 'tblTempUsageDetail_20' ) start [2025-02-14 21:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476625', 'tblTempUsageDetail_20' ) end [2025-02-14 21:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:55:24] Production.INFO: ==2767== Releasing lock... [2025-02-14 21:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:55:24] Production.INFO: 44.25 MB #Memory Used# [2025-02-14 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:56:06 [end_date_ymd] => 2025-02-14 21:56:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:56:06' and `end` < '2025-02-14 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-02-14 21:56:19] Production.INFO: count ==2215 [2025-02-14 21:56:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:56:06 - End Time 2025-02-14 21:56:06 [2025-02-14 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476630', 'tblTempUsageDetail_20' ) start [2025-02-14 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476630', 'tblTempUsageDetail_20' ) end [2025-02-14 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476630', 'tblTempVendorCDR_20' ) start [2025-02-14 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476630', 'tblTempVendorCDR_20' ) end [2025-02-14 21:56:20] Production.INFO: ProcessCDR(1,14476630,1,1,2) [2025-02-14 21:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476630', 'tblTempUsageDetail_20' ) start [2025-02-14 21:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476630', 'tblTempUsageDetail_20' ) end [2025-02-14 21:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:56:24] Production.INFO: ==2842== Releasing lock... [2025-02-14 21:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:56:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-14 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:57:05 [end_date_ymd] => 2025-02-14 21:57:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:57:05' and `end` < '2025-02-14 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-02-14 21:57:19] Production.INFO: count ==2218 [2025-02-14 21:57:20] Production.ERROR: pbx CDR StartTime 2025-02-14 18:57:05 - End Time 2025-02-14 21:57:05 [2025-02-14 21:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476635', 'tblTempUsageDetail_20' ) start [2025-02-14 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476635', 'tblTempUsageDetail_20' ) end [2025-02-14 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476635', 'tblTempVendorCDR_20' ) start [2025-02-14 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476635', 'tblTempVendorCDR_20' ) end [2025-02-14 21:57:20] Production.INFO: ProcessCDR(1,14476635,1,1,2) [2025-02-14 21:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476635', 'tblTempUsageDetail_20' ) start [2025-02-14 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476635', 'tblTempUsageDetail_20' ) end [2025-02-14 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:57:23] Production.INFO: ==2958== Releasing lock... [2025-02-14 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:57:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-14 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:58:05 [end_date_ymd] => 2025-02-14 21:58:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:58:05' and `end` < '2025-02-14 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-02-14 21:58:18] Production.INFO: count ==2211 [2025-02-14 21:58:19] Production.ERROR: pbx CDR StartTime 2025-02-14 18:58:05 - End Time 2025-02-14 21:58:05 [2025-02-14 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476640', 'tblTempUsageDetail_20' ) start [2025-02-14 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476640', 'tblTempUsageDetail_20' ) end [2025-02-14 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476640', 'tblTempVendorCDR_20' ) start [2025-02-14 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476640', 'tblTempVendorCDR_20' ) end [2025-02-14 21:58:19] Production.INFO: ProcessCDR(1,14476640,1,1,2) [2025-02-14 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476640', 'tblTempUsageDetail_20' ) start [2025-02-14 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476640', 'tblTempUsageDetail_20' ) end [2025-02-14 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:58:22] Production.INFO: ==3036== Releasing lock... [2025-02-14 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:58:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-14 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 18:59:05 [end_date_ymd] => 2025-02-14 21:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 18:59:05' and `end` < '2025-02-14 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-02-14 21:59:18] Production.INFO: count ==2200 [2025-02-14 21:59:18] Production.ERROR: pbx CDR StartTime 2025-02-14 18:59:05 - End Time 2025-02-14 21:59:05 [2025-02-14 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476645', 'tblTempUsageDetail_20' ) start [2025-02-14 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476645', 'tblTempUsageDetail_20' ) end [2025-02-14 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476645', 'tblTempVendorCDR_20' ) start [2025-02-14 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476645', 'tblTempVendorCDR_20' ) end [2025-02-14 21:59:18] Production.INFO: ProcessCDR(1,14476645,1,1,2) [2025-02-14 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 21:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476645', 'tblTempUsageDetail_20' ) start [2025-02-14 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476645', 'tblTempUsageDetail_20' ) end [2025-02-14 21:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 21:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 21:59:23] Production.INFO: ==3111== Releasing lock... [2025-02-14 21:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 21:59:23] Production.INFO: 44 MB #Memory Used# [2025-02-14 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:00:06 [end_date_ymd] => 2025-02-14 22:00:06 [RateCDR] => 1 ) [2025-02-14 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 19:00:06' and `end` < '2025-02-14 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-02-14 22:00:19] Production.INFO: count ==2200 [2025-02-14 22:00:20] Production.ERROR: pbx CDR StartTime 2025-02-14 19:00:06 - End Time 2025-02-14 22:00:06 [2025-02-14 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476651', 'tblTempUsageDetail_20' ) start [2025-02-14 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476651', 'tblTempUsageDetail_20' ) end [2025-02-14 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476651', 'tblTempVendorCDR_20' ) start [2025-02-14 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476651', 'tblTempVendorCDR_20' ) end [2025-02-14 22:00:20] Production.INFO: ProcessCDR(1,14476651,1,1,2) [2025-02-14 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476651', 'tblTempUsageDetail_20' ) start [2025-02-14 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476651', 'tblTempUsageDetail_20' ) end [2025-02-14 22:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:00:24] Production.INFO: ==3194== Releasing lock... [2025-02-14 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:00:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-14 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:01:05 [end_date_ymd] => 2025-02-14 22:01:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:01:05' and `end` < '2025-02-14 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-02-14 22:01:18] Production.INFO: count ==2173 [2025-02-14 22:01:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:01:05 - End Time 2025-02-14 22:01:05 [2025-02-14 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476656', 'tblTempUsageDetail_20' ) start [2025-02-14 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476656', 'tblTempUsageDetail_20' ) end [2025-02-14 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476656', 'tblTempVendorCDR_20' ) start [2025-02-14 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476656', 'tblTempVendorCDR_20' ) end [2025-02-14 22:01:19] Production.INFO: ProcessCDR(1,14476656,1,1,2) [2025-02-14 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476656', 'tblTempUsageDetail_20' ) start [2025-02-14 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476656', 'tblTempUsageDetail_20' ) end [2025-02-14 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:01:22] Production.INFO: ==3288== Releasing lock... [2025-02-14 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:01:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-14 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:02:05 [end_date_ymd] => 2025-02-14 22:02:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:02:05' and `end` < '2025-02-14 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-02-14 22:02:18] Production.INFO: count ==2165 [2025-02-14 22:02:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:02:05 - End Time 2025-02-14 22:02:05 [2025-02-14 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476661', 'tblTempUsageDetail_20' ) start [2025-02-14 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476661', 'tblTempUsageDetail_20' ) end [2025-02-14 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476661', 'tblTempVendorCDR_20' ) start [2025-02-14 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476661', 'tblTempVendorCDR_20' ) end [2025-02-14 22:02:19] Production.INFO: ProcessCDR(1,14476661,1,1,2) [2025-02-14 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476661', 'tblTempUsageDetail_20' ) start [2025-02-14 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476661', 'tblTempUsageDetail_20' ) end [2025-02-14 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:02:22] Production.INFO: ==3376== Releasing lock... [2025-02-14 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:02:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-14 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:03:05 [end_date_ymd] => 2025-02-14 22:03:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:03:05' and `end` < '2025-02-14 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-02-14 22:03:18] Production.INFO: count ==2164 [2025-02-14 22:03:18] Production.ERROR: pbx CDR StartTime 2025-02-14 19:03:05 - End Time 2025-02-14 22:03:05 [2025-02-14 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476666', 'tblTempUsageDetail_20' ) start [2025-02-14 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476666', 'tblTempUsageDetail_20' ) end [2025-02-14 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476666', 'tblTempVendorCDR_20' ) start [2025-02-14 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476666', 'tblTempVendorCDR_20' ) end [2025-02-14 22:03:19] Production.INFO: ProcessCDR(1,14476666,1,1,2) [2025-02-14 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476666', 'tblTempUsageDetail_20' ) start [2025-02-14 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476666', 'tblTempUsageDetail_20' ) end [2025-02-14 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:03:22] Production.INFO: ==3451== Releasing lock... [2025-02-14 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:03:22] Production.INFO: 44 MB #Memory Used# [2025-02-14 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:04:05 [end_date_ymd] => 2025-02-14 22:04:05 [RateCDR] => 1 ) [2025-02-14 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 19:04:05' and `end` < '2025-02-14 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 22:04:18] Production.INFO: count ==2163 [2025-02-14 22:04:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:04:05 - End Time 2025-02-14 22:04:05 [2025-02-14 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476671', 'tblTempUsageDetail_20' ) start [2025-02-14 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476671', 'tblTempUsageDetail_20' ) end [2025-02-14 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476671', 'tblTempVendorCDR_20' ) start [2025-02-14 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476671', 'tblTempVendorCDR_20' ) end [2025-02-14 22:04:19] Production.INFO: ProcessCDR(1,14476671,1,1,2) [2025-02-14 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476671', 'tblTempUsageDetail_20' ) start [2025-02-14 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476671', 'tblTempUsageDetail_20' ) end [2025-02-14 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:04:22] Production.INFO: ==3535== Releasing lock... [2025-02-14 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:04:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-14 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:05:05 [end_date_ymd] => 2025-02-14 22:05:05 [RateCDR] => 1 ) [2025-02-14 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 19:05:05' and `end` < '2025-02-14 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 22:05:18] Production.INFO: count ==2159 [2025-02-14 22:05:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:05:05 - End Time 2025-02-14 22:05:05 [2025-02-14 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476676', 'tblTempUsageDetail_20' ) start [2025-02-14 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476676', 'tblTempUsageDetail_20' ) end [2025-02-14 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476676', 'tblTempVendorCDR_20' ) start [2025-02-14 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476676', 'tblTempVendorCDR_20' ) end [2025-02-14 22:05:19] Production.INFO: ProcessCDR(1,14476676,1,1,2) [2025-02-14 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476676', 'tblTempUsageDetail_20' ) start [2025-02-14 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476676', 'tblTempUsageDetail_20' ) end [2025-02-14 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:05:22] Production.INFO: ==3618== Releasing lock... [2025-02-14 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:05:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-14 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:06:05 [end_date_ymd] => 2025-02-14 22:06:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:06:05' and `end` < '2025-02-14 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-02-14 22:06:19] Production.INFO: count ==2161 [2025-02-14 22:06:20] Production.ERROR: pbx CDR StartTime 2025-02-14 19:06:05 - End Time 2025-02-14 22:06:05 [2025-02-14 22:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476681', 'tblTempUsageDetail_20' ) start [2025-02-14 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476681', 'tblTempUsageDetail_20' ) end [2025-02-14 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476681', 'tblTempVendorCDR_20' ) start [2025-02-14 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476681', 'tblTempVendorCDR_20' ) end [2025-02-14 22:06:20] Production.INFO: ProcessCDR(1,14476681,1,1,2) [2025-02-14 22:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476681', 'tblTempUsageDetail_20' ) start [2025-02-14 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476681', 'tblTempUsageDetail_20' ) end [2025-02-14 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:06:23] Production.INFO: ==3697== Releasing lock... [2025-02-14 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:06:23] Production.INFO: 44 MB #Memory Used# [2025-02-14 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:07:06 [end_date_ymd] => 2025-02-14 22:07:06 [RateCDR] => 1 ) [2025-02-14 22:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 19:07:06' and `end` < '2025-02-14 22:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 22:07:21] Production.INFO: count ==2163 [2025-02-14 22:07:21] Production.ERROR: pbx CDR StartTime 2025-02-14 19:07:06 - End Time 2025-02-14 22:07:06 [2025-02-14 22:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476686', 'tblTempUsageDetail_20' ) start [2025-02-14 22:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476686', 'tblTempUsageDetail_20' ) end [2025-02-14 22:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476686', 'tblTempVendorCDR_20' ) start [2025-02-14 22:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476686', 'tblTempVendorCDR_20' ) end [2025-02-14 22:07:21] Production.INFO: ProcessCDR(1,14476686,1,1,2) [2025-02-14 22:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476686', 'tblTempUsageDetail_20' ) start [2025-02-14 22:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476686', 'tblTempUsageDetail_20' ) end [2025-02-14 22:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:07:26] Production.INFO: ==3778== Releasing lock... [2025-02-14 22:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:07:26] Production.INFO: 44 MB #Memory Used# [2025-02-14 22:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:08:04 [end_date_ymd] => 2025-02-14 22:08:04 [RateCDR] => 1 ) [2025-02-14 22: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-02-14 19:08:04' and `end` < '2025-02-14 22: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-02-14 22:08:18] Production.INFO: count ==2163 [2025-02-14 22:08:18] Production.ERROR: pbx CDR StartTime 2025-02-14 19:08:04 - End Time 2025-02-14 22:08:04 [2025-02-14 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476691', 'tblTempUsageDetail_20' ) start [2025-02-14 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476691', 'tblTempUsageDetail_20' ) end [2025-02-14 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476691', 'tblTempVendorCDR_20' ) start [2025-02-14 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476691', 'tblTempVendorCDR_20' ) end [2025-02-14 22:08:18] Production.INFO: ProcessCDR(1,14476691,1,1,2) [2025-02-14 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476691', 'tblTempUsageDetail_20' ) start [2025-02-14 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476691', 'tblTempUsageDetail_20' ) end [2025-02-14 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:08:22] Production.INFO: ==3858== Releasing lock... [2025-02-14 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:08:22] Production.INFO: 44 MB #Memory Used# [2025-02-14 22:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:09:06 [end_date_ymd] => 2025-02-14 22:09:06 [RateCDR] => 1 ) [2025-02-14 22: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-02-14 19:09:06' and `end` < '2025-02-14 22: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-02-14 22:09:19] Production.INFO: count ==2149 [2025-02-14 22:09:20] Production.ERROR: pbx CDR StartTime 2025-02-14 19:09:06 - End Time 2025-02-14 22:09:06 [2025-02-14 22:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476696', 'tblTempUsageDetail_20' ) start [2025-02-14 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476696', 'tblTempUsageDetail_20' ) end [2025-02-14 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476696', 'tblTempVendorCDR_20' ) start [2025-02-14 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476696', 'tblTempVendorCDR_20' ) end [2025-02-14 22:09:20] Production.INFO: ProcessCDR(1,14476696,1,1,2) [2025-02-14 22:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476696', 'tblTempUsageDetail_20' ) start [2025-02-14 22:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476696', 'tblTempUsageDetail_20' ) end [2025-02-14 22:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:09:24] Production.INFO: ==3939== Releasing lock... [2025-02-14 22:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:09:24] Production.INFO: 44 MB #Memory Used# [2025-02-14 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:10:06 [end_date_ymd] => 2025-02-14 22:10:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:10:06' and `end` < '2025-02-14 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-02-14 22:10:20] Production.INFO: count ==2144 [2025-02-14 22:10:21] Production.ERROR: pbx CDR StartTime 2025-02-14 19:10:06 - End Time 2025-02-14 22:10:06 [2025-02-14 22:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476702', 'tblTempUsageDetail_20' ) start [2025-02-14 22:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476702', 'tblTempUsageDetail_20' ) end [2025-02-14 22:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476702', 'tblTempVendorCDR_20' ) start [2025-02-14 22:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476702', 'tblTempVendorCDR_20' ) end [2025-02-14 22:10:21] Production.INFO: ProcessCDR(1,14476702,1,1,2) [2025-02-14 22:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476702', 'tblTempUsageDetail_20' ) start [2025-02-14 22:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476702', 'tblTempUsageDetail_20' ) end [2025-02-14 22:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:10:24] Production.INFO: ==4021== Releasing lock... [2025-02-14 22:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:10:24] Production.INFO: 44.25 MB #Memory Used# [2025-02-14 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:11:05 [end_date_ymd] => 2025-02-14 22:11:05 [RateCDR] => 1 ) [2025-02-14 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 19:11:05' and `end` < '2025-02-14 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-02-14 22:11:19] Production.INFO: count ==2106 [2025-02-14 22:11:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:11:05 - End Time 2025-02-14 22:11:05 [2025-02-14 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476707', 'tblTempUsageDetail_20' ) start [2025-02-14 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476707', 'tblTempUsageDetail_20' ) end [2025-02-14 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476707', 'tblTempVendorCDR_20' ) start [2025-02-14 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476707', 'tblTempVendorCDR_20' ) end [2025-02-14 22:11:19] Production.INFO: ProcessCDR(1,14476707,1,1,2) [2025-02-14 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476707', 'tblTempUsageDetail_20' ) start [2025-02-14 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476707', 'tblTempUsageDetail_20' ) end [2025-02-14 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:11:22] Production.INFO: ==4105== Releasing lock... [2025-02-14 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:11:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-14 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:12:05 [end_date_ymd] => 2025-02-14 22:12:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:12:05' and `end` < '2025-02-14 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-02-14 22:12:19] Production.INFO: count ==2107 [2025-02-14 22:12:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:12:05 - End Time 2025-02-14 22:12:05 [2025-02-14 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476712', 'tblTempUsageDetail_20' ) start [2025-02-14 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476712', 'tblTempUsageDetail_20' ) end [2025-02-14 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476712', 'tblTempVendorCDR_20' ) start [2025-02-14 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476712', 'tblTempVendorCDR_20' ) end [2025-02-14 22:12:19] Production.INFO: ProcessCDR(1,14476712,1,1,2) [2025-02-14 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476712', 'tblTempUsageDetail_20' ) start [2025-02-14 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476712', 'tblTempUsageDetail_20' ) end [2025-02-14 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:12:23] Production.INFO: ==4223== Releasing lock... [2025-02-14 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:12:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-14 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:13:05 [end_date_ymd] => 2025-02-14 22:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:13:05' and `end` < '2025-02-14 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-02-14 22:13:18] Production.INFO: count ==2103 [2025-02-14 22:13:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:13:05 - End Time 2025-02-14 22:13:05 [2025-02-14 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476717', 'tblTempUsageDetail_20' ) start [2025-02-14 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476717', 'tblTempUsageDetail_20' ) end [2025-02-14 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476717', 'tblTempVendorCDR_20' ) start [2025-02-14 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476717', 'tblTempVendorCDR_20' ) end [2025-02-14 22:13:19] Production.INFO: ProcessCDR(1,14476717,1,1,2) [2025-02-14 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476717', 'tblTempUsageDetail_20' ) start [2025-02-14 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476717', 'tblTempUsageDetail_20' ) end [2025-02-14 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:13:22] Production.INFO: ==4306== Releasing lock... [2025-02-14 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:13:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-14 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:14:05 [end_date_ymd] => 2025-02-14 22:14:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:14:05' and `end` < '2025-02-14 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-02-14 22:14:18] Production.INFO: count ==2105 [2025-02-14 22:14:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:14:05 - End Time 2025-02-14 22:14:05 [2025-02-14 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476722', 'tblTempUsageDetail_20' ) start [2025-02-14 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476722', 'tblTempUsageDetail_20' ) end [2025-02-14 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476722', 'tblTempVendorCDR_20' ) start [2025-02-14 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476722', 'tblTempVendorCDR_20' ) end [2025-02-14 22:14:19] Production.INFO: ProcessCDR(1,14476722,1,1,2) [2025-02-14 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476722', 'tblTempUsageDetail_20' ) start [2025-02-14 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476722', 'tblTempUsageDetail_20' ) end [2025-02-14 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:14:22] Production.INFO: ==4384== Releasing lock... [2025-02-14 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:14:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-14 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:15:05 [end_date_ymd] => 2025-02-14 22:15:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:15:05' and `end` < '2025-02-14 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-02-14 22:15:18] Production.INFO: count ==2103 [2025-02-14 22:15:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:15:05 - End Time 2025-02-14 22:15:05 [2025-02-14 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476727', 'tblTempUsageDetail_20' ) start [2025-02-14 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476727', 'tblTempUsageDetail_20' ) end [2025-02-14 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476727', 'tblTempVendorCDR_20' ) start [2025-02-14 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476727', 'tblTempVendorCDR_20' ) end [2025-02-14 22:15:19] Production.INFO: ProcessCDR(1,14476727,1,1,2) [2025-02-14 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476727', 'tblTempUsageDetail_20' ) start [2025-02-14 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476727', 'tblTempUsageDetail_20' ) end [2025-02-14 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:15:22] Production.INFO: ==4464== Releasing lock... [2025-02-14 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:15:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-14 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:16:05 [end_date_ymd] => 2025-02-14 22:16:05 [RateCDR] => 1 ) [2025-02-14 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 19:16:05' and `end` < '2025-02-14 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 22:16:18] Production.INFO: count ==2102 [2025-02-14 22:16:18] Production.ERROR: pbx CDR StartTime 2025-02-14 19:16:05 - End Time 2025-02-14 22:16:05 [2025-02-14 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476732', 'tblTempUsageDetail_20' ) start [2025-02-14 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476732', 'tblTempUsageDetail_20' ) end [2025-02-14 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476732', 'tblTempVendorCDR_20' ) start [2025-02-14 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476732', 'tblTempVendorCDR_20' ) end [2025-02-14 22:16:18] Production.INFO: ProcessCDR(1,14476732,1,1,2) [2025-02-14 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476732', 'tblTempUsageDetail_20' ) start [2025-02-14 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476732', 'tblTempUsageDetail_20' ) end [2025-02-14 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:16:22] Production.INFO: ==4545== Releasing lock... [2025-02-14 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:16:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-14 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:17:05 [end_date_ymd] => 2025-02-14 22:17:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:17:05' and `end` < '2025-02-14 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-02-14 22:17:19] Production.INFO: count ==2103 [2025-02-14 22:17:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:17:05 - End Time 2025-02-14 22:17:05 [2025-02-14 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476737', 'tblTempUsageDetail_20' ) start [2025-02-14 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476737', 'tblTempUsageDetail_20' ) end [2025-02-14 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476737', 'tblTempVendorCDR_20' ) start [2025-02-14 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476737', 'tblTempVendorCDR_20' ) end [2025-02-14 22:17:19] Production.INFO: ProcessCDR(1,14476737,1,1,2) [2025-02-14 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476737', 'tblTempUsageDetail_20' ) start [2025-02-14 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476737', 'tblTempUsageDetail_20' ) end [2025-02-14 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:17:23] Production.INFO: ==4650== Releasing lock... [2025-02-14 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:17:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-14 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:18:05 [end_date_ymd] => 2025-02-14 22:18:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:18:05' and `end` < '2025-02-14 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-02-14 22:18:19] Production.INFO: count ==2099 [2025-02-14 22:18:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:18:05 - End Time 2025-02-14 22:18:05 [2025-02-14 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476742', 'tblTempUsageDetail_20' ) start [2025-02-14 22:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476742', 'tblTempUsageDetail_20' ) end [2025-02-14 22:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476742', 'tblTempVendorCDR_20' ) start [2025-02-14 22:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476742', 'tblTempVendorCDR_20' ) end [2025-02-14 22:18:20] Production.INFO: ProcessCDR(1,14476742,1,1,2) [2025-02-14 22:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476742', 'tblTempUsageDetail_20' ) start [2025-02-14 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476742', 'tblTempUsageDetail_20' ) end [2025-02-14 22:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:18:23] Production.INFO: ==4733== Releasing lock... [2025-02-14 22:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:18:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-14 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:19:05 [end_date_ymd] => 2025-02-14 22:19:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:19:05' and `end` < '2025-02-14 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-02-14 22:19:19] Production.INFO: count ==2075 [2025-02-14 22:19:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:19:05 - End Time 2025-02-14 22:19:05 [2025-02-14 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476747', 'tblTempUsageDetail_20' ) start [2025-02-14 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476747', 'tblTempUsageDetail_20' ) end [2025-02-14 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476747', 'tblTempVendorCDR_20' ) start [2025-02-14 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476747', 'tblTempVendorCDR_20' ) end [2025-02-14 22:19:19] Production.INFO: ProcessCDR(1,14476747,1,1,2) [2025-02-14 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476747', 'tblTempUsageDetail_20' ) start [2025-02-14 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476747', 'tblTempUsageDetail_20' ) end [2025-02-14 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:19:23] Production.INFO: ==4818== Releasing lock... [2025-02-14 22:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:19:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-14 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:20:06 [end_date_ymd] => 2025-02-14 22:20:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:20:06' and `end` < '2025-02-14 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-02-14 22:20:19] Production.INFO: count ==2071 [2025-02-14 22:20:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:20:06 - End Time 2025-02-14 22:20:06 [2025-02-14 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476753', 'tblTempUsageDetail_20' ) start [2025-02-14 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476753', 'tblTempUsageDetail_20' ) end [2025-02-14 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476753', 'tblTempVendorCDR_20' ) start [2025-02-14 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476753', 'tblTempVendorCDR_20' ) end [2025-02-14 22:20:19] Production.INFO: ProcessCDR(1,14476753,1,1,2) [2025-02-14 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476753', 'tblTempUsageDetail_20' ) start [2025-02-14 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476753', 'tblTempUsageDetail_20' ) end [2025-02-14 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:20:23] Production.INFO: ==4897== Releasing lock... [2025-02-14 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:20:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-14 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:21:05 [end_date_ymd] => 2025-02-14 22:21:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:21:05' and `end` < '2025-02-14 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-02-14 22:21:19] Production.INFO: count ==2018 [2025-02-14 22:21:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:21:05 - End Time 2025-02-14 22:21:05 [2025-02-14 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476758', 'tblTempUsageDetail_20' ) start [2025-02-14 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476758', 'tblTempUsageDetail_20' ) end [2025-02-14 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476758', 'tblTempVendorCDR_20' ) start [2025-02-14 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476758', 'tblTempVendorCDR_20' ) end [2025-02-14 22:21:19] Production.INFO: ProcessCDR(1,14476758,1,1,2) [2025-02-14 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476758', 'tblTempUsageDetail_20' ) start [2025-02-14 22:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476758', 'tblTempUsageDetail_20' ) end [2025-02-14 22:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:21:24] Production.INFO: ==4982== Releasing lock... [2025-02-14 22:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:21:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-14 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:22:05 [end_date_ymd] => 2025-02-14 22:22:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:22:05' and `end` < '2025-02-14 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-02-14 22:22:19] Production.INFO: count ==2015 [2025-02-14 22:22:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:22:05 - End Time 2025-02-14 22:22:05 [2025-02-14 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476763', 'tblTempUsageDetail_20' ) start [2025-02-14 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476763', 'tblTempUsageDetail_20' ) end [2025-02-14 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476763', 'tblTempVendorCDR_20' ) start [2025-02-14 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476763', 'tblTempVendorCDR_20' ) end [2025-02-14 22:22:19] Production.INFO: ProcessCDR(1,14476763,1,1,2) [2025-02-14 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476763', 'tblTempUsageDetail_20' ) start [2025-02-14 22:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476763', 'tblTempUsageDetail_20' ) end [2025-02-14 22:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:22:24] Production.INFO: ==5061== Releasing lock... [2025-02-14 22:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:22:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-14 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:23:05 [end_date_ymd] => 2025-02-14 22:23:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:23:05' and `end` < '2025-02-14 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-02-14 22:23:19] Production.INFO: count ==2011 [2025-02-14 22:23:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:23:05 - End Time 2025-02-14 22:23:05 [2025-02-14 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476768', 'tblTempUsageDetail_20' ) start [2025-02-14 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476768', 'tblTempUsageDetail_20' ) end [2025-02-14 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476768', 'tblTempVendorCDR_20' ) start [2025-02-14 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476768', 'tblTempVendorCDR_20' ) end [2025-02-14 22:23:19] Production.INFO: ProcessCDR(1,14476768,1,1,2) [2025-02-14 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476768', 'tblTempUsageDetail_20' ) start [2025-02-14 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476768', 'tblTempUsageDetail_20' ) end [2025-02-14 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:23:23] Production.INFO: ==5145== Releasing lock... [2025-02-14 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:23:23] Production.INFO: 43 MB #Memory Used# [2025-02-14 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:24:05 [end_date_ymd] => 2025-02-14 22:24:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:24:05' and `end` < '2025-02-14 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-02-14 22:24:18] Production.INFO: count ==2007 [2025-02-14 22:24:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:24:05 - End Time 2025-02-14 22:24:05 [2025-02-14 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476773', 'tblTempUsageDetail_20' ) start [2025-02-14 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476773', 'tblTempUsageDetail_20' ) end [2025-02-14 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476773', 'tblTempVendorCDR_20' ) start [2025-02-14 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476773', 'tblTempVendorCDR_20' ) end [2025-02-14 22:24:19] Production.INFO: ProcessCDR(1,14476773,1,1,2) [2025-02-14 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476773', 'tblTempUsageDetail_20' ) start [2025-02-14 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476773', 'tblTempUsageDetail_20' ) end [2025-02-14 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:24:22] Production.INFO: ==5218== Releasing lock... [2025-02-14 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:24:22] Production.INFO: 43 MB #Memory Used# [2025-02-14 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:25:05 [end_date_ymd] => 2025-02-14 22:25:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:25:05' and `end` < '2025-02-14 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-02-14 22:25:19] Production.INFO: count ==1998 [2025-02-14 22:25:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:25:05 - End Time 2025-02-14 22:25:05 [2025-02-14 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476778', 'tblTempUsageDetail_20' ) start [2025-02-14 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476778', 'tblTempUsageDetail_20' ) end [2025-02-14 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476778', 'tblTempVendorCDR_20' ) start [2025-02-14 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476778', 'tblTempVendorCDR_20' ) end [2025-02-14 22:25:19] Production.INFO: ProcessCDR(1,14476778,1,1,2) [2025-02-14 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476778', 'tblTempUsageDetail_20' ) start [2025-02-14 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476778', 'tblTempUsageDetail_20' ) end [2025-02-14 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:25:22] Production.INFO: ==5300== Releasing lock... [2025-02-14 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:25:22] Production.INFO: 43 MB #Memory Used# [2025-02-14 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:26:05 [end_date_ymd] => 2025-02-14 22:26:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:26:05' and `end` < '2025-02-14 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-02-14 22:26:18] Production.INFO: count ==1932 [2025-02-14 22:26:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:26:05 - End Time 2025-02-14 22:26:05 [2025-02-14 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476783', 'tblTempUsageDetail_20' ) start [2025-02-14 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476783', 'tblTempUsageDetail_20' ) end [2025-02-14 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476783', 'tblTempVendorCDR_20' ) start [2025-02-14 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476783', 'tblTempVendorCDR_20' ) end [2025-02-14 22:26:19] Production.INFO: ProcessCDR(1,14476783,1,1,2) [2025-02-14 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476783', 'tblTempUsageDetail_20' ) start [2025-02-14 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476783', 'tblTempUsageDetail_20' ) end [2025-02-14 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:26:22] Production.INFO: ==5384== Releasing lock... [2025-02-14 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:26:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-14 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:27:05 [end_date_ymd] => 2025-02-14 22:27:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:27:05' and `end` < '2025-02-14 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-02-14 22:27:19] Production.INFO: count ==1881 [2025-02-14 22:27:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:27:05 - End Time 2025-02-14 22:27:05 [2025-02-14 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476788', 'tblTempUsageDetail_20' ) start [2025-02-14 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476788', 'tblTempUsageDetail_20' ) end [2025-02-14 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476788', 'tblTempVendorCDR_20' ) start [2025-02-14 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476788', 'tblTempVendorCDR_20' ) end [2025-02-14 22:27:19] Production.INFO: ProcessCDR(1,14476788,1,1,2) [2025-02-14 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476788', 'tblTempUsageDetail_20' ) start [2025-02-14 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476788', 'tblTempUsageDetail_20' ) end [2025-02-14 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:27:23] Production.INFO: ==5463== Releasing lock... [2025-02-14 22:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:27:23] Production.INFO: 42 MB #Memory Used# [2025-02-14 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:28:05 [end_date_ymd] => 2025-02-14 22:28:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:28:05' and `end` < '2025-02-14 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-02-14 22:28:19] Production.INFO: count ==1867 [2025-02-14 22:28:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:28:05 - End Time 2025-02-14 22:28:05 [2025-02-14 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476793', 'tblTempUsageDetail_20' ) start [2025-02-14 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476793', 'tblTempUsageDetail_20' ) end [2025-02-14 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476793', 'tblTempVendorCDR_20' ) start [2025-02-14 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476793', 'tblTempVendorCDR_20' ) end [2025-02-14 22:28:20] Production.INFO: ProcessCDR(1,14476793,1,1,2) [2025-02-14 22:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476793', 'tblTempUsageDetail_20' ) start [2025-02-14 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476793', 'tblTempUsageDetail_20' ) end [2025-02-14 22:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:28:23] Production.INFO: ==5577== Releasing lock... [2025-02-14 22:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:28:23] Production.INFO: 42 MB #Memory Used# [2025-02-14 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:29:05 [end_date_ymd] => 2025-02-14 22:29:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:29:05' and `end` < '2025-02-14 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-02-14 22:29:19] Production.INFO: count ==1866 [2025-02-14 22:29:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:29:05 - End Time 2025-02-14 22:29:05 [2025-02-14 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476798', 'tblTempUsageDetail_20' ) start [2025-02-14 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476798', 'tblTempUsageDetail_20' ) end [2025-02-14 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476798', 'tblTempVendorCDR_20' ) start [2025-02-14 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476798', 'tblTempVendorCDR_20' ) end [2025-02-14 22:29:19] Production.INFO: ProcessCDR(1,14476798,1,1,2) [2025-02-14 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476798', 'tblTempUsageDetail_20' ) start [2025-02-14 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476798', 'tblTempUsageDetail_20' ) end [2025-02-14 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:29:22] Production.INFO: ==5659== Releasing lock... [2025-02-14 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:29:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-14 22:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:30:07 [end_date_ymd] => 2025-02-14 22:30:07 [RateCDR] => 1 ) [2025-02-14 22:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 19:30:07' and `end` < '2025-02-14 22:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 22:30:20] Production.INFO: count ==1853 [2025-02-14 22:30:20] Production.ERROR: pbx CDR StartTime 2025-02-14 19:30:07 - End Time 2025-02-14 22:30:07 [2025-02-14 22:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476804', 'tblTempUsageDetail_20' ) start [2025-02-14 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476804', 'tblTempUsageDetail_20' ) end [2025-02-14 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476804', 'tblTempVendorCDR_20' ) start [2025-02-14 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476804', 'tblTempVendorCDR_20' ) end [2025-02-14 22:30:20] Production.INFO: ProcessCDR(1,14476804,1,1,2) [2025-02-14 22:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476804', 'tblTempUsageDetail_20' ) start [2025-02-14 22:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476804', 'tblTempUsageDetail_20' ) end [2025-02-14 22:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:30:24] Production.INFO: ==5743== Releasing lock... [2025-02-14 22:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:30:24] Production.INFO: 42 MB #Memory Used# [2025-02-14 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:31:05 [end_date_ymd] => 2025-02-14 22:31:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:31:05' and `end` < '2025-02-14 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-02-14 22:31:18] Production.INFO: count ==1813 [2025-02-14 22:31:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:31:05 - End Time 2025-02-14 22:31:05 [2025-02-14 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476809', 'tblTempUsageDetail_20' ) start [2025-02-14 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476809', 'tblTempUsageDetail_20' ) end [2025-02-14 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476809', 'tblTempVendorCDR_20' ) start [2025-02-14 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476809', 'tblTempVendorCDR_20' ) end [2025-02-14 22:31:19] Production.INFO: ProcessCDR(1,14476809,1,1,2) [2025-02-14 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476809', 'tblTempUsageDetail_20' ) start [2025-02-14 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476809', 'tblTempUsageDetail_20' ) end [2025-02-14 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:31:22] Production.INFO: ==5831== Releasing lock... [2025-02-14 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:31:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-14 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:32:05 [end_date_ymd] => 2025-02-14 22:32:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:32:05' and `end` < '2025-02-14 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-02-14 22:32:19] Production.INFO: count ==1815 [2025-02-14 22:32:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:32:05 - End Time 2025-02-14 22:32:05 [2025-02-14 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476814', 'tblTempUsageDetail_20' ) start [2025-02-14 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476814', 'tblTempUsageDetail_20' ) end [2025-02-14 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476814', 'tblTempVendorCDR_20' ) start [2025-02-14 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476814', 'tblTempVendorCDR_20' ) end [2025-02-14 22:32:19] Production.INFO: ProcessCDR(1,14476814,1,1,2) [2025-02-14 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476814', 'tblTempUsageDetail_20' ) start [2025-02-14 22:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476814', 'tblTempUsageDetail_20' ) end [2025-02-14 22:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:32:24] Production.INFO: ==5904== Releasing lock... [2025-02-14 22:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:32:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-14 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:33:05 [end_date_ymd] => 2025-02-14 22:33:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:33:05' and `end` < '2025-02-14 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-02-14 22:33:18] Production.INFO: count ==1793 [2025-02-14 22:33:18] Production.ERROR: pbx CDR StartTime 2025-02-14 19:33:05 - End Time 2025-02-14 22:33:05 [2025-02-14 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476819', 'tblTempUsageDetail_20' ) start [2025-02-14 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476819', 'tblTempUsageDetail_20' ) end [2025-02-14 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476819', 'tblTempVendorCDR_20' ) start [2025-02-14 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476819', 'tblTempVendorCDR_20' ) end [2025-02-14 22:33:18] Production.INFO: ProcessCDR(1,14476819,1,1,2) [2025-02-14 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476819', 'tblTempUsageDetail_20' ) start [2025-02-14 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476819', 'tblTempUsageDetail_20' ) end [2025-02-14 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:33:22] Production.INFO: ==5984== Releasing lock... [2025-02-14 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:33:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-14 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:34:05 [end_date_ymd] => 2025-02-14 22:34:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:34:05' and `end` < '2025-02-14 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-02-14 22:34:18] Production.INFO: count ==1789 [2025-02-14 22:34:18] Production.ERROR: pbx CDR StartTime 2025-02-14 19:34:05 - End Time 2025-02-14 22:34:05 [2025-02-14 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476824', 'tblTempUsageDetail_20' ) start [2025-02-14 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476824', 'tblTempUsageDetail_20' ) end [2025-02-14 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476824', 'tblTempVendorCDR_20' ) start [2025-02-14 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476824', 'tblTempVendorCDR_20' ) end [2025-02-14 22:34:19] Production.INFO: ProcessCDR(1,14476824,1,1,2) [2025-02-14 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476824', 'tblTempUsageDetail_20' ) start [2025-02-14 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476824', 'tblTempUsageDetail_20' ) end [2025-02-14 22:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:34:23] Production.INFO: ==6073== Releasing lock... [2025-02-14 22:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:34:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-14 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:35:05 [end_date_ymd] => 2025-02-14 22:35:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:35:05' and `end` < '2025-02-14 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-02-14 22:35:18] Production.INFO: count ==1784 [2025-02-14 22:35:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:35:05 - End Time 2025-02-14 22:35:05 [2025-02-14 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476829', 'tblTempUsageDetail_20' ) start [2025-02-14 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476829', 'tblTempUsageDetail_20' ) end [2025-02-14 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476829', 'tblTempVendorCDR_20' ) start [2025-02-14 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476829', 'tblTempVendorCDR_20' ) end [2025-02-14 22:35:19] Production.INFO: ProcessCDR(1,14476829,1,1,2) [2025-02-14 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476829', 'tblTempUsageDetail_20' ) start [2025-02-14 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476829', 'tblTempUsageDetail_20' ) end [2025-02-14 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:35:22] Production.INFO: ==6153== Releasing lock... [2025-02-14 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:35:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-14 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:36:05 [end_date_ymd] => 2025-02-14 22:36:05 [RateCDR] => 1 ) [2025-02-14 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 19:36:05' and `end` < '2025-02-14 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 22:36:19] Production.INFO: count ==1778 [2025-02-14 22:36:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:36:05 - End Time 2025-02-14 22:36:05 [2025-02-14 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476834', 'tblTempUsageDetail_20' ) start [2025-02-14 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476834', 'tblTempUsageDetail_20' ) end [2025-02-14 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476834', 'tblTempVendorCDR_20' ) start [2025-02-14 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476834', 'tblTempVendorCDR_20' ) end [2025-02-14 22:36:19] Production.INFO: ProcessCDR(1,14476834,1,1,2) [2025-02-14 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476834', 'tblTempUsageDetail_20' ) start [2025-02-14 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476834', 'tblTempUsageDetail_20' ) end [2025-02-14 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:36:22] Production.INFO: ==6233== Releasing lock... [2025-02-14 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:36:22] Production.INFO: 41 MB #Memory Used# [2025-02-14 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:37:05 [end_date_ymd] => 2025-02-14 22:37:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:37:05' and `end` < '2025-02-14 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 22:37:18] Production.INFO: count ==1772 [2025-02-14 22:37:18] Production.ERROR: pbx CDR StartTime 2025-02-14 19:37:05 - End Time 2025-02-14 22:37:05 [2025-02-14 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476839', 'tblTempUsageDetail_20' ) start [2025-02-14 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476839', 'tblTempUsageDetail_20' ) end [2025-02-14 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476839', 'tblTempVendorCDR_20' ) start [2025-02-14 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476839', 'tblTempVendorCDR_20' ) end [2025-02-14 22:37:18] Production.INFO: ProcessCDR(1,14476839,1,1,2) [2025-02-14 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476839', 'tblTempUsageDetail_20' ) start [2025-02-14 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476839', 'tblTempUsageDetail_20' ) end [2025-02-14 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:37:22] Production.INFO: ==6322== Releasing lock... [2025-02-14 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:37:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-14 22:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:38:06 [end_date_ymd] => 2025-02-14 22:38:06 [RateCDR] => 1 ) [2025-02-14 22: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-02-14 19:38:06' and `end` < '2025-02-14 22: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-02-14 22:38:19] Production.INFO: count ==1768 [2025-02-14 22:38:20] Production.ERROR: pbx CDR StartTime 2025-02-14 19:38:06 - End Time 2025-02-14 22:38:06 [2025-02-14 22:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476844', 'tblTempUsageDetail_20' ) start [2025-02-14 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476844', 'tblTempUsageDetail_20' ) end [2025-02-14 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476844', 'tblTempVendorCDR_20' ) start [2025-02-14 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476844', 'tblTempVendorCDR_20' ) end [2025-02-14 22:38:20] Production.INFO: ProcessCDR(1,14476844,1,1,2) [2025-02-14 22:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476844', 'tblTempUsageDetail_20' ) start [2025-02-14 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476844', 'tblTempUsageDetail_20' ) end [2025-02-14 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:38:23] Production.INFO: ==6434== Releasing lock... [2025-02-14 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:38:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-14 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:39:05 [end_date_ymd] => 2025-02-14 22:39:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:39:05' and `end` < '2025-02-14 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-02-14 22:39:18] Production.INFO: count ==1764 [2025-02-14 22:39:18] Production.ERROR: pbx CDR StartTime 2025-02-14 19:39:05 - End Time 2025-02-14 22:39:05 [2025-02-14 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476849', 'tblTempUsageDetail_20' ) start [2025-02-14 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476849', 'tblTempUsageDetail_20' ) end [2025-02-14 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476849', 'tblTempVendorCDR_20' ) start [2025-02-14 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476849', 'tblTempVendorCDR_20' ) end [2025-02-14 22:39:18] Production.INFO: ProcessCDR(1,14476849,1,1,2) [2025-02-14 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476849', 'tblTempUsageDetail_20' ) start [2025-02-14 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476849', 'tblTempUsageDetail_20' ) end [2025-02-14 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:39:21] Production.INFO: ==6514== Releasing lock... [2025-02-14 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:39:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-14 22:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:40:07 [end_date_ymd] => 2025-02-14 22:40:07 [RateCDR] => 1 ) [2025-02-14 22: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-02-14 19:40:07' and `end` < '2025-02-14 22: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-02-14 22:40:20] Production.INFO: count ==1734 [2025-02-14 22:40:20] Production.ERROR: pbx CDR StartTime 2025-02-14 19:40:07 - End Time 2025-02-14 22:40:07 [2025-02-14 22:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476855', 'tblTempUsageDetail_20' ) start [2025-02-14 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476855', 'tblTempUsageDetail_20' ) end [2025-02-14 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476855', 'tblTempVendorCDR_20' ) start [2025-02-14 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476855', 'tblTempVendorCDR_20' ) end [2025-02-14 22:40:20] Production.INFO: ProcessCDR(1,14476855,1,1,2) [2025-02-14 22:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476855', 'tblTempUsageDetail_20' ) start [2025-02-14 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476855', 'tblTempUsageDetail_20' ) end [2025-02-14 22:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:40:24] Production.INFO: ==6612== Releasing lock... [2025-02-14 22:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:40:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-14 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:41:05 [end_date_ymd] => 2025-02-14 22:41:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:41:05' and `end` < '2025-02-14 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-02-14 22:41:19] Production.INFO: count ==1608 [2025-02-14 22:41:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:41:05 - End Time 2025-02-14 22:41:05 [2025-02-14 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476860', 'tblTempUsageDetail_20' ) start [2025-02-14 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476860', 'tblTempUsageDetail_20' ) end [2025-02-14 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476860', 'tblTempVendorCDR_20' ) start [2025-02-14 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476860', 'tblTempVendorCDR_20' ) end [2025-02-14 22:41:19] Production.INFO: ProcessCDR(1,14476860,1,1,2) [2025-02-14 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476860', 'tblTempUsageDetail_20' ) start [2025-02-14 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476860', 'tblTempUsageDetail_20' ) end [2025-02-14 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:41:22] Production.INFO: ==6700== Releasing lock... [2025-02-14 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:41:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-14 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:42:05 [end_date_ymd] => 2025-02-14 22:42:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:42:05' and `end` < '2025-02-14 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-02-14 22:42:19] Production.INFO: count ==1552 [2025-02-14 22:42:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:42:05 - End Time 2025-02-14 22:42:05 [2025-02-14 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476865', 'tblTempUsageDetail_20' ) start [2025-02-14 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476865', 'tblTempUsageDetail_20' ) end [2025-02-14 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476865', 'tblTempVendorCDR_20' ) start [2025-02-14 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476865', 'tblTempVendorCDR_20' ) end [2025-02-14 22:42:19] Production.INFO: ProcessCDR(1,14476865,1,1,2) [2025-02-14 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476865', 'tblTempUsageDetail_20' ) start [2025-02-14 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476865', 'tblTempUsageDetail_20' ) end [2025-02-14 22:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:42:24] Production.INFO: ==6786== Releasing lock... [2025-02-14 22:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:42:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-14 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:43:05 [end_date_ymd] => 2025-02-14 22:43:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:43:05' and `end` < '2025-02-14 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-02-14 22:43:18] Production.INFO: count ==1556 [2025-02-14 22:43:18] Production.ERROR: pbx CDR StartTime 2025-02-14 19:43:05 - End Time 2025-02-14 22:43:05 [2025-02-14 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476870', 'tblTempUsageDetail_20' ) start [2025-02-14 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476870', 'tblTempUsageDetail_20' ) end [2025-02-14 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476870', 'tblTempVendorCDR_20' ) start [2025-02-14 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476870', 'tblTempVendorCDR_20' ) end [2025-02-14 22:43:18] Production.INFO: ProcessCDR(1,14476870,1,1,2) [2025-02-14 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476870', 'tblTempUsageDetail_20' ) start [2025-02-14 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476870', 'tblTempUsageDetail_20' ) end [2025-02-14 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:43:22] Production.INFO: ==6913== Releasing lock... [2025-02-14 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:43:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-14 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:44:05 [end_date_ymd] => 2025-02-14 22:44:05 [RateCDR] => 1 ) [2025-02-14 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 19:44:05' and `end` < '2025-02-14 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 22:44:20] Production.INFO: count ==1549 [2025-02-14 22:44:20] Production.ERROR: pbx CDR StartTime 2025-02-14 19:44:05 - End Time 2025-02-14 22:44:05 [2025-02-14 22:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476875', 'tblTempUsageDetail_20' ) start [2025-02-14 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476875', 'tblTempUsageDetail_20' ) end [2025-02-14 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476875', 'tblTempVendorCDR_20' ) start [2025-02-14 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476875', 'tblTempVendorCDR_20' ) end [2025-02-14 22:44:20] Production.INFO: ProcessCDR(1,14476875,1,1,2) [2025-02-14 22:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476875', 'tblTempUsageDetail_20' ) start [2025-02-14 22:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476875', 'tblTempUsageDetail_20' ) end [2025-02-14 22:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:44:25] Production.INFO: ==7003== Releasing lock... [2025-02-14 22:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:44:25] Production.INFO: 39.25 MB #Memory Used# [2025-02-14 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:45:05 [end_date_ymd] => 2025-02-14 22:45:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:45:05' and `end` < '2025-02-14 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-02-14 22:45:18] Production.INFO: count ==1545 [2025-02-14 22:45:18] Production.ERROR: pbx CDR StartTime 2025-02-14 19:45:05 - End Time 2025-02-14 22:45:05 [2025-02-14 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476880', 'tblTempUsageDetail_20' ) start [2025-02-14 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476880', 'tblTempUsageDetail_20' ) end [2025-02-14 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476880', 'tblTempVendorCDR_20' ) start [2025-02-14 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476880', 'tblTempVendorCDR_20' ) end [2025-02-14 22:45:18] Production.INFO: ProcessCDR(1,14476880,1,1,2) [2025-02-14 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476880', 'tblTempUsageDetail_20' ) start [2025-02-14 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476880', 'tblTempUsageDetail_20' ) end [2025-02-14 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:45:21] Production.INFO: ==7097== Releasing lock... [2025-02-14 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:45:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-14 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:46:05 [end_date_ymd] => 2025-02-14 22:46:05 [RateCDR] => 1 ) [2025-02-14 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 19:46:05' and `end` < '2025-02-14 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 22:46:19] Production.INFO: count ==1546 [2025-02-14 22:46:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:46:05 - End Time 2025-02-14 22:46:05 [2025-02-14 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476885', 'tblTempUsageDetail_20' ) start [2025-02-14 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476885', 'tblTempUsageDetail_20' ) end [2025-02-14 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476885', 'tblTempVendorCDR_20' ) start [2025-02-14 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476885', 'tblTempVendorCDR_20' ) end [2025-02-14 22:46:19] Production.INFO: ProcessCDR(1,14476885,1,1,2) [2025-02-14 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476885', 'tblTempUsageDetail_20' ) start [2025-02-14 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476885', 'tblTempUsageDetail_20' ) end [2025-02-14 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:46:22] Production.INFO: ==7192== Releasing lock... [2025-02-14 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:46:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-14 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:47:05 [end_date_ymd] => 2025-02-14 22:47:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:47:05' and `end` < '2025-02-14 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-02-14 22:47:18] Production.INFO: count ==1545 [2025-02-14 22:47:18] Production.ERROR: pbx CDR StartTime 2025-02-14 19:47:05 - End Time 2025-02-14 22:47:05 [2025-02-14 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476890', 'tblTempUsageDetail_20' ) start [2025-02-14 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476890', 'tblTempUsageDetail_20' ) end [2025-02-14 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476890', 'tblTempVendorCDR_20' ) start [2025-02-14 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476890', 'tblTempVendorCDR_20' ) end [2025-02-14 22:47:18] Production.INFO: ProcessCDR(1,14476890,1,1,2) [2025-02-14 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476890', 'tblTempUsageDetail_20' ) start [2025-02-14 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476890', 'tblTempUsageDetail_20' ) end [2025-02-14 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:47:21] Production.INFO: ==7282== Releasing lock... [2025-02-14 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:47:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-14 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:48:06 [end_date_ymd] => 2025-02-14 22:48:06 [RateCDR] => 1 ) [2025-02-14 22:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 19:48:06' and `end` < '2025-02-14 22:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 22:48:19] Production.INFO: count ==1545 [2025-02-14 22:48:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:48:06 - End Time 2025-02-14 22:48:06 [2025-02-14 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476895', 'tblTempUsageDetail_20' ) start [2025-02-14 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476895', 'tblTempUsageDetail_20' ) end [2025-02-14 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476895', 'tblTempVendorCDR_20' ) start [2025-02-14 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476895', 'tblTempVendorCDR_20' ) end [2025-02-14 22:48:19] Production.INFO: ProcessCDR(1,14476895,1,1,2) [2025-02-14 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476895', 'tblTempUsageDetail_20' ) start [2025-02-14 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476895', 'tblTempUsageDetail_20' ) end [2025-02-14 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:48:22] Production.INFO: ==7384== Releasing lock... [2025-02-14 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:48:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-14 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:49:05 [end_date_ymd] => 2025-02-14 22:49:05 [RateCDR] => 1 ) [2025-02-14 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 19:49:05' and `end` < '2025-02-14 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 22:49:19] Production.INFO: count ==1545 [2025-02-14 22:49:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:49:05 - End Time 2025-02-14 22:49:05 [2025-02-14 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476900', 'tblTempUsageDetail_20' ) start [2025-02-14 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476900', 'tblTempUsageDetail_20' ) end [2025-02-14 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476900', 'tblTempVendorCDR_20' ) start [2025-02-14 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476900', 'tblTempVendorCDR_20' ) end [2025-02-14 22:49:19] Production.INFO: ProcessCDR(1,14476900,1,1,2) [2025-02-14 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476900', 'tblTempUsageDetail_20' ) start [2025-02-14 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476900', 'tblTempUsageDetail_20' ) end [2025-02-14 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:49:22] Production.INFO: ==7484== Releasing lock... [2025-02-14 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:49:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-14 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:50:06 [end_date_ymd] => 2025-02-14 22:50:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:50:06' and `end` < '2025-02-14 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-02-14 22:50:20] Production.INFO: count ==1541 [2025-02-14 22:50:20] Production.ERROR: pbx CDR StartTime 2025-02-14 19:50:06 - End Time 2025-02-14 22:50:06 [2025-02-14 22:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476906', 'tblTempUsageDetail_20' ) start [2025-02-14 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476906', 'tblTempUsageDetail_20' ) end [2025-02-14 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476906', 'tblTempVendorCDR_20' ) start [2025-02-14 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476906', 'tblTempVendorCDR_20' ) end [2025-02-14 22:50:20] Production.INFO: ProcessCDR(1,14476906,1,1,2) [2025-02-14 22:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476906', 'tblTempUsageDetail_20' ) start [2025-02-14 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476906', 'tblTempUsageDetail_20' ) end [2025-02-14 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:50:23] Production.INFO: ==7565== Releasing lock... [2025-02-14 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:50:23] Production.INFO: 39 MB #Memory Used# [2025-02-14 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:51:05 [end_date_ymd] => 2025-02-14 22:51:05 [RateCDR] => 1 ) [2025-02-14 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 19:51:05' and `end` < '2025-02-14 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 22:51:18] Production.INFO: count ==1523 [2025-02-14 22:51:18] Production.ERROR: pbx CDR StartTime 2025-02-14 19:51:05 - End Time 2025-02-14 22:51:05 [2025-02-14 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476911', 'tblTempUsageDetail_20' ) start [2025-02-14 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476911', 'tblTempUsageDetail_20' ) end [2025-02-14 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476911', 'tblTempVendorCDR_20' ) start [2025-02-14 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476911', 'tblTempVendorCDR_20' ) end [2025-02-14 22:51:18] Production.INFO: ProcessCDR(1,14476911,1,1,2) [2025-02-14 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476911', 'tblTempUsageDetail_20' ) start [2025-02-14 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476911', 'tblTempUsageDetail_20' ) end [2025-02-14 22:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:51:23] Production.INFO: ==7653== Releasing lock... [2025-02-14 22:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:51:23] Production.INFO: 39 MB #Memory Used# [2025-02-14 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:52:06 [end_date_ymd] => 2025-02-14 22:52:06 [RateCDR] => 1 ) [2025-02-14 22:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 19:52:06' and `end` < '2025-02-14 22:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 22:52:19] Production.INFO: count ==1523 [2025-02-14 22:52:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:52:06 - End Time 2025-02-14 22:52:06 [2025-02-14 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476916', 'tblTempUsageDetail_20' ) start [2025-02-14 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476916', 'tblTempUsageDetail_20' ) end [2025-02-14 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476916', 'tblTempVendorCDR_20' ) start [2025-02-14 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476916', 'tblTempVendorCDR_20' ) end [2025-02-14 22:52:19] Production.INFO: ProcessCDR(1,14476916,1,1,2) [2025-02-14 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476916', 'tblTempUsageDetail_20' ) start [2025-02-14 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476916', 'tblTempUsageDetail_20' ) end [2025-02-14 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:52:22] Production.INFO: ==7738== Releasing lock... [2025-02-14 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:52:22] Production.INFO: 39 MB #Memory Used# [2025-02-14 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:53:05 [end_date_ymd] => 2025-02-14 22:53:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:53:05' and `end` < '2025-02-14 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-02-14 22:53:18] Production.INFO: count ==1527 [2025-02-14 22:53:18] Production.ERROR: pbx CDR StartTime 2025-02-14 19:53:05 - End Time 2025-02-14 22:53:05 [2025-02-14 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476921', 'tblTempUsageDetail_20' ) start [2025-02-14 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476921', 'tblTempUsageDetail_20' ) end [2025-02-14 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476921', 'tblTempVendorCDR_20' ) start [2025-02-14 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476921', 'tblTempVendorCDR_20' ) end [2025-02-14 22:53:18] Production.INFO: ProcessCDR(1,14476921,1,1,2) [2025-02-14 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476921', 'tblTempUsageDetail_20' ) start [2025-02-14 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476921', 'tblTempUsageDetail_20' ) end [2025-02-14 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:53:22] Production.INFO: ==7823== Releasing lock... [2025-02-14 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:53:22] Production.INFO: 39 MB #Memory Used# [2025-02-14 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:54:05 [end_date_ymd] => 2025-02-14 22:54:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:54:05' and `end` < '2025-02-14 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-02-14 22:54:18] Production.INFO: count ==1526 [2025-02-14 22:54:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:54:05 - End Time 2025-02-14 22:54:05 [2025-02-14 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476926', 'tblTempUsageDetail_20' ) start [2025-02-14 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476926', 'tblTempUsageDetail_20' ) end [2025-02-14 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476926', 'tblTempVendorCDR_20' ) start [2025-02-14 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476926', 'tblTempVendorCDR_20' ) end [2025-02-14 22:54:19] Production.INFO: ProcessCDR(1,14476926,1,1,2) [2025-02-14 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476926', 'tblTempUsageDetail_20' ) start [2025-02-14 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476926', 'tblTempUsageDetail_20' ) end [2025-02-14 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:54:22] Production.INFO: ==7901== Releasing lock... [2025-02-14 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:54:22] Production.INFO: 39 MB #Memory Used# [2025-02-14 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:55:06 [end_date_ymd] => 2025-02-14 22:55:06 [RateCDR] => 1 ) [2025-02-14 22: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-02-14 19:55:06' and `end` < '2025-02-14 22: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-02-14 22:55:19] Production.INFO: count ==1525 [2025-02-14 22:55:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:55:06 - End Time 2025-02-14 22:55:06 [2025-02-14 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476931', 'tblTempUsageDetail_20' ) start [2025-02-14 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476931', 'tblTempUsageDetail_20' ) end [2025-02-14 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476931', 'tblTempVendorCDR_20' ) start [2025-02-14 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476931', 'tblTempVendorCDR_20' ) end [2025-02-14 22:55:19] Production.INFO: ProcessCDR(1,14476931,1,1,2) [2025-02-14 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476931', 'tblTempUsageDetail_20' ) start [2025-02-14 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476931', 'tblTempUsageDetail_20' ) end [2025-02-14 22:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:55:23] Production.INFO: ==7985== Releasing lock... [2025-02-14 22:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:55:23] Production.INFO: 39 MB #Memory Used# [2025-02-14 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:56:05 [end_date_ymd] => 2025-02-14 22:56:05 [RateCDR] => 1 ) [2025-02-14 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 19:56:05' and `end` < '2025-02-14 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 22:56:19] Production.INFO: count ==1526 [2025-02-14 22:56:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:56:05 - End Time 2025-02-14 22:56:05 [2025-02-14 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476936', 'tblTempUsageDetail_20' ) start [2025-02-14 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476936', 'tblTempUsageDetail_20' ) end [2025-02-14 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476936', 'tblTempVendorCDR_20' ) start [2025-02-14 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476936', 'tblTempVendorCDR_20' ) end [2025-02-14 22:56:19] Production.INFO: ProcessCDR(1,14476936,1,1,2) [2025-02-14 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476936', 'tblTempUsageDetail_20' ) start [2025-02-14 22:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476936', 'tblTempUsageDetail_20' ) end [2025-02-14 22:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:56:24] Production.INFO: ==8067== Releasing lock... [2025-02-14 22:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:56:24] Production.INFO: 39 MB #Memory Used# [2025-02-14 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:57:05 [end_date_ymd] => 2025-02-14 22:57:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:57:05' and `end` < '2025-02-14 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-02-14 22:57:18] Production.INFO: count ==1535 [2025-02-14 22:57:18] Production.ERROR: pbx CDR StartTime 2025-02-14 19:57:05 - End Time 2025-02-14 22:57:05 [2025-02-14 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476941', 'tblTempUsageDetail_20' ) start [2025-02-14 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476941', 'tblTempUsageDetail_20' ) end [2025-02-14 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476941', 'tblTempVendorCDR_20' ) start [2025-02-14 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476941', 'tblTempVendorCDR_20' ) end [2025-02-14 22:57:18] Production.INFO: ProcessCDR(1,14476941,1,1,2) [2025-02-14 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476941', 'tblTempUsageDetail_20' ) start [2025-02-14 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476941', 'tblTempUsageDetail_20' ) end [2025-02-14 22:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:57:23] Production.INFO: ==8154== Releasing lock... [2025-02-14 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:57:23] Production.INFO: 39 MB #Memory Used# [2025-02-14 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:58:05 [end_date_ymd] => 2025-02-14 22:58:05 [RateCDR] => 1 ) [2025-02-14 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 19:58:05' and `end` < '2025-02-14 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 22:58:18] Production.INFO: count ==1536 [2025-02-14 22:58:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:58:05 - End Time 2025-02-14 22:58:05 [2025-02-14 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476946', 'tblTempUsageDetail_20' ) start [2025-02-14 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476946', 'tblTempUsageDetail_20' ) end [2025-02-14 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476946', 'tblTempVendorCDR_20' ) start [2025-02-14 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476946', 'tblTempVendorCDR_20' ) end [2025-02-14 22:58:19] Production.INFO: ProcessCDR(1,14476946,1,1,2) [2025-02-14 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476946', 'tblTempUsageDetail_20' ) start [2025-02-14 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476946', 'tblTempUsageDetail_20' ) end [2025-02-14 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:58:22] Production.INFO: ==8232== Releasing lock... [2025-02-14 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:58:22] Production.INFO: 39 MB #Memory Used# [2025-02-14 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 19:59:05 [end_date_ymd] => 2025-02-14 22:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 19:59:05' and `end` < '2025-02-14 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-02-14 22:59:19] Production.INFO: count ==1539 [2025-02-14 22:59:19] Production.ERROR: pbx CDR StartTime 2025-02-14 19:59:05 - End Time 2025-02-14 22:59:05 [2025-02-14 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476951', 'tblTempUsageDetail_20' ) start [2025-02-14 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476951', 'tblTempUsageDetail_20' ) end [2025-02-14 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476951', 'tblTempVendorCDR_20' ) start [2025-02-14 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476951', 'tblTempVendorCDR_20' ) end [2025-02-14 22:59:19] Production.INFO: ProcessCDR(1,14476951,1,1,2) [2025-02-14 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476951', 'tblTempUsageDetail_20' ) start [2025-02-14 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476951', 'tblTempUsageDetail_20' ) end [2025-02-14 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 22:59:22] Production.INFO: ==8359== Releasing lock... [2025-02-14 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 22:59:22] Production.INFO: 39 MB #Memory Used# [2025-02-14 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:00:06 [end_date_ymd] => 2025-02-14 23:00:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:00:06' and `end` < '2025-02-14 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-02-14 23:00:20] Production.INFO: count ==1536 [2025-02-14 23:00:20] Production.ERROR: pbx CDR StartTime 2025-02-14 20:00:06 - End Time 2025-02-14 23:00:06 [2025-02-14 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476957', 'tblTempUsageDetail_20' ) start [2025-02-14 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476957', 'tblTempUsageDetail_20' ) end [2025-02-14 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476957', 'tblTempVendorCDR_20' ) start [2025-02-14 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476957', 'tblTempVendorCDR_20' ) end [2025-02-14 23:00:20] Production.INFO: ProcessCDR(1,14476957,1,1,2) [2025-02-14 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476957', 'tblTempUsageDetail_20' ) start [2025-02-14 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476957', 'tblTempUsageDetail_20' ) end [2025-02-14 23:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:00:24] Production.INFO: ==8452== Releasing lock... [2025-02-14 23:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:00:24] Production.INFO: 39 MB #Memory Used# [2025-02-14 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:01:06 [end_date_ymd] => 2025-02-14 23:01:06 [RateCDR] => 1 ) [2025-02-14 23: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-02-14 20:01:06' and `end` < '2025-02-14 23: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-02-14 23:01:19] Production.INFO: count ==1523 [2025-02-14 23:01:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:01:06 - End Time 2025-02-14 23:01:06 [2025-02-14 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476962', 'tblTempUsageDetail_20' ) start [2025-02-14 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476962', 'tblTempUsageDetail_20' ) end [2025-02-14 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476962', 'tblTempVendorCDR_20' ) start [2025-02-14 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476962', 'tblTempVendorCDR_20' ) end [2025-02-14 23:01:19] Production.INFO: ProcessCDR(1,14476962,1,1,2) [2025-02-14 23:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476962', 'tblTempUsageDetail_20' ) start [2025-02-14 23:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476962', 'tblTempUsageDetail_20' ) end [2025-02-14 23:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:01:24] Production.INFO: ==8551== Releasing lock... [2025-02-14 23:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:01:24] Production.INFO: 39 MB #Memory Used# [2025-02-14 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:02:06 [end_date_ymd] => 2025-02-14 23:02:06 [RateCDR] => 1 ) [2025-02-14 23:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:02:06' and `end` < '2025-02-14 23:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:02:19] Production.INFO: count ==1522 [2025-02-14 23:02:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:02:06 - End Time 2025-02-14 23:02:06 [2025-02-14 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476967', 'tblTempUsageDetail_20' ) start [2025-02-14 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476967', 'tblTempUsageDetail_20' ) end [2025-02-14 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476967', 'tblTempVendorCDR_20' ) start [2025-02-14 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476967', 'tblTempVendorCDR_20' ) end [2025-02-14 23:02:19] Production.INFO: ProcessCDR(1,14476967,1,1,2) [2025-02-14 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476967', 'tblTempUsageDetail_20' ) start [2025-02-14 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476967', 'tblTempUsageDetail_20' ) end [2025-02-14 23:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:02:23] Production.INFO: ==8735== Releasing lock... [2025-02-14 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:02:23] Production.INFO: 39 MB #Memory Used# [2025-02-14 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:03:05 [end_date_ymd] => 2025-02-14 23:03:05 [RateCDR] => 1 ) [2025-02-14 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:03:05' and `end` < '2025-02-14 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:03:19] Production.INFO: count ==1518 [2025-02-14 23:03:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:03:05 - End Time 2025-02-14 23:03:05 [2025-02-14 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476972', 'tblTempUsageDetail_20' ) start [2025-02-14 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476972', 'tblTempUsageDetail_20' ) end [2025-02-14 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476972', 'tblTempVendorCDR_20' ) start [2025-02-14 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476972', 'tblTempVendorCDR_20' ) end [2025-02-14 23:03:19] Production.INFO: ProcessCDR(1,14476972,1,1,2) [2025-02-14 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476972', 'tblTempUsageDetail_20' ) start [2025-02-14 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476972', 'tblTempUsageDetail_20' ) end [2025-02-14 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:03:22] Production.INFO: ==8827== Releasing lock... [2025-02-14 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:03:22] Production.INFO: 39 MB #Memory Used# [2025-02-14 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:04:05 [end_date_ymd] => 2025-02-14 23:04:05 [RateCDR] => 1 ) [2025-02-14 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:04:05' and `end` < '2025-02-14 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-02-14 23:04:18] Production.INFO: count ==1518 [2025-02-14 23:04:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:04:05 - End Time 2025-02-14 23:04:05 [2025-02-14 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476977', 'tblTempUsageDetail_20' ) start [2025-02-14 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476977', 'tblTempUsageDetail_20' ) end [2025-02-14 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476977', 'tblTempVendorCDR_20' ) start [2025-02-14 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476977', 'tblTempVendorCDR_20' ) end [2025-02-14 23:04:19] Production.INFO: ProcessCDR(1,14476977,1,1,2) [2025-02-14 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476977', 'tblTempUsageDetail_20' ) start [2025-02-14 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476977', 'tblTempUsageDetail_20' ) end [2025-02-14 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:04:22] Production.INFO: ==8929== Releasing lock... [2025-02-14 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:04:22] Production.INFO: 39 MB #Memory Used# [2025-02-14 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:05:06 [end_date_ymd] => 2025-02-14 23:05:06 [RateCDR] => 1 ) [2025-02-14 23:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:05:06' and `end` < '2025-02-14 23:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:05:19] Production.INFO: count ==1518 [2025-02-14 23:05:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:05:06 - End Time 2025-02-14 23:05:06 [2025-02-14 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476982', 'tblTempUsageDetail_20' ) start [2025-02-14 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476982', 'tblTempUsageDetail_20' ) end [2025-02-14 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476982', 'tblTempVendorCDR_20' ) start [2025-02-14 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476982', 'tblTempVendorCDR_20' ) end [2025-02-14 23:05:19] Production.INFO: ProcessCDR(1,14476982,1,1,2) [2025-02-14 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476982', 'tblTempUsageDetail_20' ) start [2025-02-14 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476982', 'tblTempUsageDetail_20' ) end [2025-02-14 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:05:22] Production.INFO: ==9113== Releasing lock... [2025-02-14 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:05:22] Production.INFO: 39 MB #Memory Used# [2025-02-14 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:06:05 [end_date_ymd] => 2025-02-14 23:06:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:06:05' and `end` < '2025-02-14 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-02-14 23:06:19] Production.INFO: count ==1520 [2025-02-14 23:06:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:06:05 - End Time 2025-02-14 23:06:05 [2025-02-14 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476987', 'tblTempUsageDetail_20' ) start [2025-02-14 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476987', 'tblTempUsageDetail_20' ) end [2025-02-14 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476987', 'tblTempVendorCDR_20' ) start [2025-02-14 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476987', 'tblTempVendorCDR_20' ) end [2025-02-14 23:06:19] Production.INFO: ProcessCDR(1,14476987,1,1,2) [2025-02-14 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476987', 'tblTempUsageDetail_20' ) start [2025-02-14 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476987', 'tblTempUsageDetail_20' ) end [2025-02-14 23:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:06:23] Production.INFO: ==9205== Releasing lock... [2025-02-14 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:06:23] Production.INFO: 39 MB #Memory Used# [2025-02-14 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:07:05 [end_date_ymd] => 2025-02-14 23:07:05 [RateCDR] => 1 ) [2025-02-14 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:07:05' and `end` < '2025-02-14 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:07:19] Production.INFO: count ==1520 [2025-02-14 23:07:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:07:05 - End Time 2025-02-14 23:07:05 [2025-02-14 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476992', 'tblTempUsageDetail_20' ) start [2025-02-14 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476992', 'tblTempUsageDetail_20' ) end [2025-02-14 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476992', 'tblTempVendorCDR_20' ) start [2025-02-14 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476992', 'tblTempVendorCDR_20' ) end [2025-02-14 23:07:19] Production.INFO: ProcessCDR(1,14476992,1,1,2) [2025-02-14 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476992', 'tblTempUsageDetail_20' ) start [2025-02-14 23:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476992', 'tblTempUsageDetail_20' ) end [2025-02-14 23:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:07:23] Production.INFO: ==9306== Releasing lock... [2025-02-14 23:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:07:23] Production.INFO: 39 MB #Memory Used# [2025-02-14 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:08:05 [end_date_ymd] => 2025-02-14 23:08:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:08:05' and `end` < '2025-02-14 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-02-14 23:08:18] Production.INFO: count ==1522 [2025-02-14 23:08:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:08:05 - End Time 2025-02-14 23:08:05 [2025-02-14 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476997', 'tblTempUsageDetail_20' ) start [2025-02-14 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14476997', 'tblTempUsageDetail_20' ) end [2025-02-14 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476997', 'tblTempVendorCDR_20' ) start [2025-02-14 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14476997', 'tblTempVendorCDR_20' ) end [2025-02-14 23:08:18] Production.INFO: ProcessCDR(1,14476997,1,1,2) [2025-02-14 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14476997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14476997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14476997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14476997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476997', 'tblTempUsageDetail_20' ) start [2025-02-14 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14476997', 'tblTempUsageDetail_20' ) end [2025-02-14 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:08:21] Production.INFO: ==9398== Releasing lock... [2025-02-14 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:08:21] Production.INFO: 39 MB #Memory Used# [2025-02-14 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:09:06 [end_date_ymd] => 2025-02-14 23:09:06 [RateCDR] => 1 ) [2025-02-14 23:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:09:06' and `end` < '2025-02-14 23:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:09:19] Production.INFO: count ==1522 [2025-02-14 23:09:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:09:06 - End Time 2025-02-14 23:09:06 [2025-02-14 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477002', 'tblTempUsageDetail_20' ) start [2025-02-14 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477002', 'tblTempUsageDetail_20' ) end [2025-02-14 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477002', 'tblTempVendorCDR_20' ) start [2025-02-14 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477002', 'tblTempVendorCDR_20' ) end [2025-02-14 23:09:19] Production.INFO: ProcessCDR(1,14477002,1,1,2) [2025-02-14 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477002', 'tblTempUsageDetail_20' ) start [2025-02-14 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477002', 'tblTempUsageDetail_20' ) end [2025-02-14 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:09:22] Production.INFO: ==9573== Releasing lock... [2025-02-14 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:09:22] Production.INFO: 39 MB #Memory Used# [2025-02-14 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:10:06 [end_date_ymd] => 2025-02-14 23:10:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:10:06' and `end` < '2025-02-14 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-02-14 23:10:19] Production.INFO: count ==1524 [2025-02-14 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:10:06 - End Time 2025-02-14 23:10:06 [2025-02-14 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477008', 'tblTempUsageDetail_20' ) start [2025-02-14 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477008', 'tblTempUsageDetail_20' ) end [2025-02-14 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477008', 'tblTempVendorCDR_20' ) start [2025-02-14 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477008', 'tblTempVendorCDR_20' ) end [2025-02-14 23:10:19] Production.INFO: ProcessCDR(1,14477008,1,1,2) [2025-02-14 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477008', 'tblTempUsageDetail_20' ) start [2025-02-14 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477008', 'tblTempUsageDetail_20' ) end [2025-02-14 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:10:23] Production.INFO: ==9657== Releasing lock... [2025-02-14 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:10:23] Production.INFO: 39 MB #Memory Used# [2025-02-14 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:11:05 [end_date_ymd] => 2025-02-14 23:11:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:11:05' and `end` < '2025-02-14 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-02-14 23:11:18] Production.INFO: count ==1429 [2025-02-14 23:11:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:11:05 - End Time 2025-02-14 23:11:05 [2025-02-14 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477013', 'tblTempUsageDetail_20' ) start [2025-02-14 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477013', 'tblTempUsageDetail_20' ) end [2025-02-14 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477013', 'tblTempVendorCDR_20' ) start [2025-02-14 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477013', 'tblTempVendorCDR_20' ) end [2025-02-14 23:11:18] Production.INFO: ProcessCDR(1,14477013,1,1,2) [2025-02-14 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477013', 'tblTempUsageDetail_20' ) start [2025-02-14 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477013', 'tblTempUsageDetail_20' ) end [2025-02-14 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:11:22] Production.INFO: ==9770== Releasing lock... [2025-02-14 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:11:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-14 23:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:12:04 [end_date_ymd] => 2025-02-14 23:12:04 [RateCDR] => 1 ) [2025-02-14 23:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:12:04' and `end` < '2025-02-14 23:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:12:19] Production.INFO: count ==1433 [2025-02-14 23:12:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:12:04 - End Time 2025-02-14 23:12:04 [2025-02-14 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477018', 'tblTempUsageDetail_20' ) start [2025-02-14 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477018', 'tblTempUsageDetail_20' ) end [2025-02-14 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477018', 'tblTempVendorCDR_20' ) start [2025-02-14 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477018', 'tblTempVendorCDR_20' ) end [2025-02-14 23:12:19] Production.INFO: ProcessCDR(1,14477018,1,1,2) [2025-02-14 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477018', 'tblTempUsageDetail_20' ) start [2025-02-14 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477018', 'tblTempUsageDetail_20' ) end [2025-02-14 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:12:22] Production.INFO: ==9936== Releasing lock... [2025-02-14 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:12:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-14 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:13:05 [end_date_ymd] => 2025-02-14 23:13:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:13:05' and `end` < '2025-02-14 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-02-14 23:13:18] Production.INFO: count ==1432 [2025-02-14 23:13:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:13:05 - End Time 2025-02-14 23:13:05 [2025-02-14 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477023', 'tblTempUsageDetail_20' ) start [2025-02-14 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477023', 'tblTempUsageDetail_20' ) end [2025-02-14 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477023', 'tblTempVendorCDR_20' ) start [2025-02-14 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477023', 'tblTempVendorCDR_20' ) end [2025-02-14 23:13:18] Production.INFO: ProcessCDR(1,14477023,1,1,2) [2025-02-14 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477023', 'tblTempUsageDetail_20' ) start [2025-02-14 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477023', 'tblTempUsageDetail_20' ) end [2025-02-14 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:13:22] Production.INFO: ==10041== Releasing lock... [2025-02-14 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:13:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-14 23:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:14:04 [end_date_ymd] => 2025-02-14 23:14:04 [RateCDR] => 1 ) [2025-02-14 23:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:14:04' and `end` < '2025-02-14 23:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:14:18] Production.INFO: count ==1430 [2025-02-14 23:14:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:14:04 - End Time 2025-02-14 23:14:04 [2025-02-14 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477028', 'tblTempUsageDetail_20' ) start [2025-02-14 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477028', 'tblTempUsageDetail_20' ) end [2025-02-14 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477028', 'tblTempVendorCDR_20' ) start [2025-02-14 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477028', 'tblTempVendorCDR_20' ) end [2025-02-14 23:14:18] Production.INFO: ProcessCDR(1,14477028,1,1,2) [2025-02-14 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477028', 'tblTempUsageDetail_20' ) start [2025-02-14 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477028', 'tblTempUsageDetail_20' ) end [2025-02-14 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:14:21] Production.INFO: ==10181== Releasing lock... [2025-02-14 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:14:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-14 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:15:05 [end_date_ymd] => 2025-02-14 23:15:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:15:05' and `end` < '2025-02-14 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-02-14 23:15:20] Production.INFO: count ==1424 [2025-02-14 23:15:20] Production.ERROR: pbx CDR StartTime 2025-02-14 20:15:05 - End Time 2025-02-14 23:15:05 [2025-02-14 23:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477033', 'tblTempUsageDetail_20' ) start [2025-02-14 23:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477033', 'tblTempUsageDetail_20' ) end [2025-02-14 23:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477033', 'tblTempVendorCDR_20' ) start [2025-02-14 23:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477033', 'tblTempVendorCDR_20' ) end [2025-02-14 23:15:20] Production.INFO: ProcessCDR(1,14477033,1,1,2) [2025-02-14 23:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477033', 'tblTempUsageDetail_20' ) start [2025-02-14 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477033', 'tblTempUsageDetail_20' ) end [2025-02-14 23:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:15:23] Production.INFO: ==10319== Releasing lock... [2025-02-14 23:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:15:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-14 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:16:06 [end_date_ymd] => 2025-02-14 23:16:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:16:06' and `end` < '2025-02-14 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-02-14 23:16:19] Production.INFO: count ==1420 [2025-02-14 23:16:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:16:06 - End Time 2025-02-14 23:16:06 [2025-02-14 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477038', 'tblTempUsageDetail_20' ) start [2025-02-14 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477038', 'tblTempUsageDetail_20' ) end [2025-02-14 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477038', 'tblTempVendorCDR_20' ) start [2025-02-14 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477038', 'tblTempVendorCDR_20' ) end [2025-02-14 23:16:19] Production.INFO: ProcessCDR(1,14477038,1,1,2) [2025-02-14 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477038', 'tblTempUsageDetail_20' ) start [2025-02-14 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477038', 'tblTempUsageDetail_20' ) end [2025-02-14 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:16:22] Production.INFO: ==10465== Releasing lock... [2025-02-14 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:16:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-14 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:17:05 [end_date_ymd] => 2025-02-14 23:17:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:17:05' and `end` < '2025-02-14 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-02-14 23:17:20] Production.INFO: count ==1418 [2025-02-14 23:17:20] Production.ERROR: pbx CDR StartTime 2025-02-14 20:17:05 - End Time 2025-02-14 23:17:05 [2025-02-14 23:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477043', 'tblTempUsageDetail_20' ) start [2025-02-14 23:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477043', 'tblTempUsageDetail_20' ) end [2025-02-14 23:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477043', 'tblTempVendorCDR_20' ) start [2025-02-14 23:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477043', 'tblTempVendorCDR_20' ) end [2025-02-14 23:17:20] Production.INFO: ProcessCDR(1,14477043,1,1,2) [2025-02-14 23:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477043', 'tblTempUsageDetail_20' ) start [2025-02-14 23:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477043', 'tblTempUsageDetail_20' ) end [2025-02-14 23:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:17:24] Production.INFO: ==10555== Releasing lock... [2025-02-14 23:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:17:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-14 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:18:06 [end_date_ymd] => 2025-02-14 23:18:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:18:06' and `end` < '2025-02-14 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-02-14 23:18:20] Production.INFO: count ==1420 [2025-02-14 23:18:20] Production.ERROR: pbx CDR StartTime 2025-02-14 20:18:06 - End Time 2025-02-14 23:18:06 [2025-02-14 23:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477048', 'tblTempUsageDetail_20' ) start [2025-02-14 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477048', 'tblTempUsageDetail_20' ) end [2025-02-14 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477048', 'tblTempVendorCDR_20' ) start [2025-02-14 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477048', 'tblTempVendorCDR_20' ) end [2025-02-14 23:18:20] Production.INFO: ProcessCDR(1,14477048,1,1,2) [2025-02-14 23:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477048', 'tblTempUsageDetail_20' ) start [2025-02-14 23:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477048', 'tblTempUsageDetail_20' ) end [2025-02-14 23:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:18:24] Production.INFO: ==10658== Releasing lock... [2025-02-14 23:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:18:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-14 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:19:05 [end_date_ymd] => 2025-02-14 23:19:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:19:05' and `end` < '2025-02-14 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-02-14 23:19:18] Production.INFO: count ==1412 [2025-02-14 23:19:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:19:05 - End Time 2025-02-14 23:19:05 [2025-02-14 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477053', 'tblTempUsageDetail_20' ) start [2025-02-14 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477053', 'tblTempUsageDetail_20' ) end [2025-02-14 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477053', 'tblTempVendorCDR_20' ) start [2025-02-14 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477053', 'tblTempVendorCDR_20' ) end [2025-02-14 23:19:18] Production.INFO: ProcessCDR(1,14477053,1,1,2) [2025-02-14 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477053', 'tblTempUsageDetail_20' ) start [2025-02-14 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477053', 'tblTempUsageDetail_20' ) end [2025-02-14 23:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:19:23] Production.INFO: ==10731== Releasing lock... [2025-02-14 23:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:19:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-14 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:20:06 [end_date_ymd] => 2025-02-14 23:20:06 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:20:06' and `end` < '2025-02-14 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-02-14 23:20:19] Production.INFO: count ==1412 [2025-02-14 23:20:20] Production.ERROR: pbx CDR StartTime 2025-02-14 20:20:06 - End Time 2025-02-14 23:20:06 [2025-02-14 23:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477059', 'tblTempUsageDetail_20' ) start [2025-02-14 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477059', 'tblTempUsageDetail_20' ) end [2025-02-14 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477059', 'tblTempVendorCDR_20' ) start [2025-02-14 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477059', 'tblTempVendorCDR_20' ) end [2025-02-14 23:20:20] Production.INFO: ProcessCDR(1,14477059,1,1,2) [2025-02-14 23:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477059', 'tblTempUsageDetail_20' ) start [2025-02-14 23:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477059', 'tblTempUsageDetail_20' ) end [2025-02-14 23:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:20:24] Production.INFO: ==10811== Releasing lock... [2025-02-14 23:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:20:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-14 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:21:05 [end_date_ymd] => 2025-02-14 23:21:05 [RateCDR] => 1 ) [2025-02-14 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:21:05' and `end` < '2025-02-14 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:21:19] Production.INFO: count ==1363 [2025-02-14 23:21:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:21:05 - End Time 2025-02-14 23:21:05 [2025-02-14 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477064', 'tblTempUsageDetail_20' ) start [2025-02-14 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477064', 'tblTempUsageDetail_20' ) end [2025-02-14 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477064', 'tblTempVendorCDR_20' ) start [2025-02-14 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477064', 'tblTempVendorCDR_20' ) end [2025-02-14 23:21:19] Production.INFO: ProcessCDR(1,14477064,1,1,2) [2025-02-14 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477064', 'tblTempUsageDetail_20' ) start [2025-02-14 23:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477064', 'tblTempUsageDetail_20' ) end [2025-02-14 23:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:21:24] Production.INFO: ==10888== Releasing lock... [2025-02-14 23:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:21:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-14 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:22:05 [end_date_ymd] => 2025-02-14 23:22:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:22:05' and `end` < '2025-02-14 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-02-14 23:22:19] Production.INFO: count ==1360 [2025-02-14 23:22:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:22:05 - End Time 2025-02-14 23:22:05 [2025-02-14 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477069', 'tblTempUsageDetail_20' ) start [2025-02-14 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477069', 'tblTempUsageDetail_20' ) end [2025-02-14 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477069', 'tblTempVendorCDR_20' ) start [2025-02-14 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477069', 'tblTempVendorCDR_20' ) end [2025-02-14 23:22:19] Production.INFO: ProcessCDR(1,14477069,1,1,2) [2025-02-14 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477069', 'tblTempUsageDetail_20' ) start [2025-02-14 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477069', 'tblTempUsageDetail_20' ) end [2025-02-14 23:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:22:24] Production.INFO: ==10969== Releasing lock... [2025-02-14 23:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:22:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-14 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:23:05 [end_date_ymd] => 2025-02-14 23:23:05 [RateCDR] => 1 ) [2025-02-14 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:23:05' and `end` < '2025-02-14 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:23:18] Production.INFO: count ==1359 [2025-02-14 23:23:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:23:05 - End Time 2025-02-14 23:23:05 [2025-02-14 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477074', 'tblTempUsageDetail_20' ) start [2025-02-14 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477074', 'tblTempUsageDetail_20' ) end [2025-02-14 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477074', 'tblTempVendorCDR_20' ) start [2025-02-14 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477074', 'tblTempVendorCDR_20' ) end [2025-02-14 23:23:18] Production.INFO: ProcessCDR(1,14477074,1,1,2) [2025-02-14 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477074', 'tblTempUsageDetail_20' ) start [2025-02-14 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477074', 'tblTempUsageDetail_20' ) end [2025-02-14 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:23:21] Production.INFO: ==11042== Releasing lock... [2025-02-14 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:23:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-14 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:24:05 [end_date_ymd] => 2025-02-14 23:24:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:24:05' and `end` < '2025-02-14 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-02-14 23:24:19] Production.INFO: count ==1353 [2025-02-14 23:24:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:24:05 - End Time 2025-02-14 23:24:05 [2025-02-14 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477079', 'tblTempUsageDetail_20' ) start [2025-02-14 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477079', 'tblTempUsageDetail_20' ) end [2025-02-14 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477079', 'tblTempVendorCDR_20' ) start [2025-02-14 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477079', 'tblTempVendorCDR_20' ) end [2025-02-14 23:24:19] Production.INFO: ProcessCDR(1,14477079,1,1,2) [2025-02-14 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477079', 'tblTempUsageDetail_20' ) start [2025-02-14 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477079', 'tblTempUsageDetail_20' ) end [2025-02-14 23:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:24:23] Production.INFO: ==11114== Releasing lock... [2025-02-14 23:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:24:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-14 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:25:05 [end_date_ymd] => 2025-02-14 23:25:05 [RateCDR] => 1 ) [2025-02-14 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:25:05' and `end` < '2025-02-14 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:25:18] Production.INFO: count ==1351 [2025-02-14 23:25:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:25:05 - End Time 2025-02-14 23:25:05 [2025-02-14 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477084', 'tblTempUsageDetail_20' ) start [2025-02-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477084', 'tblTempUsageDetail_20' ) end [2025-02-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477084', 'tblTempVendorCDR_20' ) start [2025-02-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477084', 'tblTempVendorCDR_20' ) end [2025-02-14 23:25:18] Production.INFO: ProcessCDR(1,14477084,1,1,2) [2025-02-14 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477084', 'tblTempUsageDetail_20' ) start [2025-02-14 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477084', 'tblTempUsageDetail_20' ) end [2025-02-14 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:25:21] Production.INFO: ==11185== Releasing lock... [2025-02-14 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:25:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-14 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:26:05 [end_date_ymd] => 2025-02-14 23:26:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:26:05' and `end` < '2025-02-14 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-02-14 23:26:18] Production.INFO: count ==1347 [2025-02-14 23:26:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:26:05 - End Time 2025-02-14 23:26:05 [2025-02-14 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477089', 'tblTempUsageDetail_20' ) start [2025-02-14 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477089', 'tblTempUsageDetail_20' ) end [2025-02-14 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477089', 'tblTempVendorCDR_20' ) start [2025-02-14 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477089', 'tblTempVendorCDR_20' ) end [2025-02-14 23:26:18] Production.INFO: ProcessCDR(1,14477089,1,1,2) [2025-02-14 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477089', 'tblTempUsageDetail_20' ) start [2025-02-14 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477089', 'tblTempUsageDetail_20' ) end [2025-02-14 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:26:22] Production.INFO: ==11256== Releasing lock... [2025-02-14 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:26:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-14 23:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:27:04 [end_date_ymd] => 2025-02-14 23:27:04 [RateCDR] => 1 ) [2025-02-14 23: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-02-14 20:27:04' and `end` < '2025-02-14 23: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-02-14 23:27:17] Production.INFO: count ==1345 [2025-02-14 23:27:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:27:04 - End Time 2025-02-14 23:27:04 [2025-02-14 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477094', 'tblTempUsageDetail_20' ) start [2025-02-14 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477094', 'tblTempUsageDetail_20' ) end [2025-02-14 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477094', 'tblTempVendorCDR_20' ) start [2025-02-14 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477094', 'tblTempVendorCDR_20' ) end [2025-02-14 23:27:18] Production.INFO: ProcessCDR(1,14477094,1,1,2) [2025-02-14 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477094', 'tblTempUsageDetail_20' ) start [2025-02-14 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477094', 'tblTempUsageDetail_20' ) end [2025-02-14 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:27:21] Production.INFO: ==11325== Releasing lock... [2025-02-14 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:27:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-14 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:28:05 [end_date_ymd] => 2025-02-14 23:28:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:28:05' and `end` < '2025-02-14 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-02-14 23:28:19] Production.INFO: count ==1341 [2025-02-14 23:28:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:28:05 - End Time 2025-02-14 23:28:05 [2025-02-14 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477099', 'tblTempUsageDetail_20' ) start [2025-02-14 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477099', 'tblTempUsageDetail_20' ) end [2025-02-14 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477099', 'tblTempVendorCDR_20' ) start [2025-02-14 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477099', 'tblTempVendorCDR_20' ) end [2025-02-14 23:28:19] Production.INFO: ProcessCDR(1,14477099,1,1,2) [2025-02-14 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477099', 'tblTempUsageDetail_20' ) start [2025-02-14 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477099', 'tblTempUsageDetail_20' ) end [2025-02-14 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:28:22] Production.INFO: ==11396== Releasing lock... [2025-02-14 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:28:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-14 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:29:05 [end_date_ymd] => 2025-02-14 23:29:05 [RateCDR] => 1 ) [2025-02-14 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:29:05' and `end` < '2025-02-14 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:29:18] Production.INFO: count ==1336 [2025-02-14 23:29:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:29:05 - End Time 2025-02-14 23:29:05 [2025-02-14 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477104', 'tblTempUsageDetail_20' ) start [2025-02-14 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477104', 'tblTempUsageDetail_20' ) end [2025-02-14 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477104', 'tblTempVendorCDR_20' ) start [2025-02-14 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477104', 'tblTempVendorCDR_20' ) end [2025-02-14 23:29:18] Production.INFO: ProcessCDR(1,14477104,1,1,2) [2025-02-14 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477104', 'tblTempUsageDetail_20' ) start [2025-02-14 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477104', 'tblTempUsageDetail_20' ) end [2025-02-14 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:29:21] Production.INFO: ==11505== Releasing lock... [2025-02-14 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:29:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-14 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:30:05 [end_date_ymd] => 2025-02-14 23:30:05 [RateCDR] => 1 ) [2025-02-14 23:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:30:05' and `end` < '2025-02-14 23:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:30:19] Production.INFO: count ==1332 [2025-02-14 23:30:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:30:05 - End Time 2025-02-14 23:30:05 [2025-02-14 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477109', 'tblTempUsageDetail_20' ) start [2025-02-14 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477109', 'tblTempUsageDetail_20' ) end [2025-02-14 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477109', 'tblTempVendorCDR_20' ) start [2025-02-14 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477109', 'tblTempVendorCDR_20' ) end [2025-02-14 23:30:19] Production.INFO: ProcessCDR(1,14477109,1,1,2) [2025-02-14 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477109', 'tblTempUsageDetail_20' ) start [2025-02-14 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477109', 'tblTempUsageDetail_20' ) end [2025-02-14 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:30:22] Production.INFO: ==11579== Releasing lock... [2025-02-14 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:30:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-14 23:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:31:06 [end_date_ymd] => 2025-02-14 23:31:06 [RateCDR] => 1 ) [2025-02-14 23:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:31:06' and `end` < '2025-02-14 23:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:31:19] Production.INFO: count ==1304 [2025-02-14 23:31:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:31:06 - End Time 2025-02-14 23:31:06 [2025-02-14 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477115', 'tblTempUsageDetail_20' ) start [2025-02-14 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477115', 'tblTempUsageDetail_20' ) end [2025-02-14 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477115', 'tblTempVendorCDR_20' ) start [2025-02-14 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477115', 'tblTempVendorCDR_20' ) end [2025-02-14 23:31:19] Production.INFO: ProcessCDR(1,14477115,1,1,2) [2025-02-14 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477115', 'tblTempUsageDetail_20' ) start [2025-02-14 23:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477115', 'tblTempUsageDetail_20' ) end [2025-02-14 23:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:31:24] Production.INFO: ==11651== Releasing lock... [2025-02-14 23:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:31:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-14 23:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:32:04 [end_date_ymd] => 2025-02-14 23:32:04 [RateCDR] => 1 ) [2025-02-14 23: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-02-14 20:32:04' and `end` < '2025-02-14 23: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-02-14 23:32:18] Production.INFO: count ==1300 [2025-02-14 23:32:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:32:04 - End Time 2025-02-14 23:32:04 [2025-02-14 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477120', 'tblTempUsageDetail_20' ) start [2025-02-14 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477120', 'tblTempUsageDetail_20' ) end [2025-02-14 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477120', 'tblTempVendorCDR_20' ) start [2025-02-14 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477120', 'tblTempVendorCDR_20' ) end [2025-02-14 23:32:18] Production.INFO: ProcessCDR(1,14477120,1,1,2) [2025-02-14 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477120', 'tblTempUsageDetail_20' ) start [2025-02-14 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477120', 'tblTempUsageDetail_20' ) end [2025-02-14 23:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:32:23] Production.INFO: ==11723== Releasing lock... [2025-02-14 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:32:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-14 23:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:33:06 [end_date_ymd] => 2025-02-14 23:33:06 [RateCDR] => 1 ) [2025-02-14 23: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-02-14 20:33:06' and `end` < '2025-02-14 23: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-02-14 23:33:19] Production.INFO: count ==1304 [2025-02-14 23:33:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:33:06 - End Time 2025-02-14 23:33:06 [2025-02-14 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477125', 'tblTempUsageDetail_20' ) start [2025-02-14 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477125', 'tblTempUsageDetail_20' ) end [2025-02-14 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477125', 'tblTempVendorCDR_20' ) start [2025-02-14 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477125', 'tblTempVendorCDR_20' ) end [2025-02-14 23:33:19] Production.INFO: ProcessCDR(1,14477125,1,1,2) [2025-02-14 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477125', 'tblTempUsageDetail_20' ) start [2025-02-14 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477125', 'tblTempUsageDetail_20' ) end [2025-02-14 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:33:24] Production.INFO: ==11798== Releasing lock... [2025-02-14 23:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:33:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-14 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:34:05 [end_date_ymd] => 2025-02-14 23:34:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:34:05' and `end` < '2025-02-14 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-02-14 23:34:19] Production.INFO: count ==1305 [2025-02-14 23:34:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:34:05 - End Time 2025-02-14 23:34:05 [2025-02-14 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477130', 'tblTempUsageDetail_20' ) start [2025-02-14 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477130', 'tblTempUsageDetail_20' ) end [2025-02-14 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477130', 'tblTempVendorCDR_20' ) start [2025-02-14 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477130', 'tblTempVendorCDR_20' ) end [2025-02-14 23:34:19] Production.INFO: ProcessCDR(1,14477130,1,1,2) [2025-02-14 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477130', 'tblTempUsageDetail_20' ) start [2025-02-14 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477130', 'tblTempUsageDetail_20' ) end [2025-02-14 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:34:22] Production.INFO: ==11873== Releasing lock... [2025-02-14 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:34:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-14 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:35:05 [end_date_ymd] => 2025-02-14 23:35:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:35:05' and `end` < '2025-02-14 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-02-14 23:35:19] Production.INFO: count ==1304 [2025-02-14 23:35:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:35:05 - End Time 2025-02-14 23:35:05 [2025-02-14 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477135', 'tblTempUsageDetail_20' ) start [2025-02-14 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477135', 'tblTempUsageDetail_20' ) end [2025-02-14 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477135', 'tblTempVendorCDR_20' ) start [2025-02-14 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477135', 'tblTempVendorCDR_20' ) end [2025-02-14 23:35:19] Production.INFO: ProcessCDR(1,14477135,1,1,2) [2025-02-14 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477135', 'tblTempUsageDetail_20' ) start [2025-02-14 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477135', 'tblTempUsageDetail_20' ) end [2025-02-14 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:35:22] Production.INFO: ==11949== Releasing lock... [2025-02-14 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:35:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-14 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:36:05 [end_date_ymd] => 2025-02-14 23:36:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:36:05' and `end` < '2025-02-14 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-02-14 23:36:20] Production.INFO: count ==1301 [2025-02-14 23:36:20] Production.ERROR: pbx CDR StartTime 2025-02-14 20:36:05 - End Time 2025-02-14 23:36:05 [2025-02-14 23:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477140', 'tblTempUsageDetail_20' ) start [2025-02-14 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477140', 'tblTempUsageDetail_20' ) end [2025-02-14 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477140', 'tblTempVendorCDR_20' ) start [2025-02-14 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477140', 'tblTempVendorCDR_20' ) end [2025-02-14 23:36:20] Production.INFO: ProcessCDR(1,14477140,1,1,2) [2025-02-14 23:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477140', 'tblTempUsageDetail_20' ) start [2025-02-14 23:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477140', 'tblTempUsageDetail_20' ) end [2025-02-14 23:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:36:24] Production.INFO: ==12020== Releasing lock... [2025-02-14 23:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:36:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-14 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:37:05 [end_date_ymd] => 2025-02-14 23:37:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:37:05' and `end` < '2025-02-14 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-02-14 23:37:19] Production.INFO: count ==1300 [2025-02-14 23:37:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:37:05 - End Time 2025-02-14 23:37:05 [2025-02-14 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477145', 'tblTempUsageDetail_20' ) start [2025-02-14 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477145', 'tblTempUsageDetail_20' ) end [2025-02-14 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477145', 'tblTempVendorCDR_20' ) start [2025-02-14 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477145', 'tblTempVendorCDR_20' ) end [2025-02-14 23:37:19] Production.INFO: ProcessCDR(1,14477145,1,1,2) [2025-02-14 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477145', 'tblTempUsageDetail_20' ) start [2025-02-14 23:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477145', 'tblTempUsageDetail_20' ) end [2025-02-14 23:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:37:24] Production.INFO: ==12096== Releasing lock... [2025-02-14 23:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:37:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-14 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:38:05 [end_date_ymd] => 2025-02-14 23:38:05 [RateCDR] => 1 ) [2025-02-14 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:38:05' and `end` < '2025-02-14 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:38:18] Production.INFO: count ==1296 [2025-02-14 23:38:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:38:05 - End Time 2025-02-14 23:38:05 [2025-02-14 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477150', 'tblTempUsageDetail_20' ) start [2025-02-14 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477150', 'tblTempUsageDetail_20' ) end [2025-02-14 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477150', 'tblTempVendorCDR_20' ) start [2025-02-14 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477150', 'tblTempVendorCDR_20' ) end [2025-02-14 23:38:18] Production.INFO: ProcessCDR(1,14477150,1,1,2) [2025-02-14 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477150', 'tblTempUsageDetail_20' ) start [2025-02-14 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477150', 'tblTempUsageDetail_20' ) end [2025-02-14 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:38:22] Production.INFO: ==12180== Releasing lock... [2025-02-14 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:38:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-14 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:39:05 [end_date_ymd] => 2025-02-14 23:39:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:39:05' and `end` < '2025-02-14 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-02-14 23:39:18] Production.INFO: count ==1296 [2025-02-14 23:39:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:39:05 - End Time 2025-02-14 23:39:05 [2025-02-14 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477155', 'tblTempUsageDetail_20' ) start [2025-02-14 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477155', 'tblTempUsageDetail_20' ) end [2025-02-14 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477155', 'tblTempVendorCDR_20' ) start [2025-02-14 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477155', 'tblTempVendorCDR_20' ) end [2025-02-14 23:39:19] Production.INFO: ProcessCDR(1,14477155,1,1,2) [2025-02-14 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477155', 'tblTempUsageDetail_20' ) start [2025-02-14 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477155', 'tblTempUsageDetail_20' ) end [2025-02-14 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:39:22] Production.INFO: ==12266== Releasing lock... [2025-02-14 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:39:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-14 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:40:05 [end_date_ymd] => 2025-02-14 23:40:05 [RateCDR] => 1 ) [2025-02-14 23: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-02-14 20:40:05' and `end` < '2025-02-14 23: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-02-14 23:40:19] Production.INFO: count ==1364 [2025-02-14 23:40:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:40:05 - End Time 2025-02-14 23:40:05 [2025-02-14 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477161', 'tblTempUsageDetail_20' ) start [2025-02-14 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477161', 'tblTempUsageDetail_20' ) end [2025-02-14 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477161', 'tblTempVendorCDR_20' ) start [2025-02-14 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477161', 'tblTempVendorCDR_20' ) end [2025-02-14 23:40:19] Production.INFO: ProcessCDR(1,14477161,1,1,2) [2025-02-14 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477161', 'tblTempUsageDetail_20' ) start [2025-02-14 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477161', 'tblTempUsageDetail_20' ) end [2025-02-14 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:40:22] Production.INFO: ==12347== Releasing lock... [2025-02-14 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:40:22] Production.INFO: 38 MB #Memory Used# [2025-02-14 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:41:05 [end_date_ymd] => 2025-02-14 23:41:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:41:05' and `end` < '2025-02-14 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-02-14 23:41:19] Production.INFO: count ==1374 [2025-02-14 23:41:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:41:05 - End Time 2025-02-14 23:41:05 [2025-02-14 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477166', 'tblTempUsageDetail_20' ) start [2025-02-14 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477166', 'tblTempUsageDetail_20' ) end [2025-02-14 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477166', 'tblTempVendorCDR_20' ) start [2025-02-14 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477166', 'tblTempVendorCDR_20' ) end [2025-02-14 23:41:19] Production.INFO: ProcessCDR(1,14477166,1,1,2) [2025-02-14 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477166', 'tblTempUsageDetail_20' ) start [2025-02-14 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477166', 'tblTempUsageDetail_20' ) end [2025-02-14 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:41:22] Production.INFO: ==12435== Releasing lock... [2025-02-14 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:41:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-14 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:42:05 [end_date_ymd] => 2025-02-14 23:42:05 [RateCDR] => 1 ) [2025-02-14 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:42:05' and `end` < '2025-02-14 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-02-14 23:42:18] Production.INFO: count ==1340 [2025-02-14 23:42:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:42:05 - End Time 2025-02-14 23:42:05 [2025-02-14 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477171', 'tblTempUsageDetail_20' ) start [2025-02-14 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477171', 'tblTempUsageDetail_20' ) end [2025-02-14 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477171', 'tblTempVendorCDR_20' ) start [2025-02-14 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477171', 'tblTempVendorCDR_20' ) end [2025-02-14 23:42:19] Production.INFO: ProcessCDR(1,14477171,1,1,2) [2025-02-14 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477171', 'tblTempUsageDetail_20' ) start [2025-02-14 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477171', 'tblTempUsageDetail_20' ) end [2025-02-14 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:42:22] Production.INFO: ==12512== Releasing lock... [2025-02-14 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:42:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-14 23:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:43:06 [end_date_ymd] => 2025-02-14 23:43:06 [RateCDR] => 1 ) [2025-02-14 23: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-02-14 20:43:06' and `end` < '2025-02-14 23: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-02-14 23:43:19] Production.INFO: count ==1330 [2025-02-14 23:43:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:43:06 - End Time 2025-02-14 23:43:06 [2025-02-14 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477176', 'tblTempUsageDetail_20' ) start [2025-02-14 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477176', 'tblTempUsageDetail_20' ) end [2025-02-14 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477176', 'tblTempVendorCDR_20' ) start [2025-02-14 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477176', 'tblTempVendorCDR_20' ) end [2025-02-14 23:43:19] Production.INFO: ProcessCDR(1,14477176,1,1,2) [2025-02-14 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477176', 'tblTempUsageDetail_20' ) start [2025-02-14 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477176', 'tblTempUsageDetail_20' ) end [2025-02-14 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:43:22] Production.INFO: ==12606== Releasing lock... [2025-02-14 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:43:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-14 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:44:05 [end_date_ymd] => 2025-02-14 23:44:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:44:05' and `end` < '2025-02-14 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-02-14 23:44:18] Production.INFO: count ==1325 [2025-02-14 23:44:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:44:05 - End Time 2025-02-14 23:44:05 [2025-02-14 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477181', 'tblTempUsageDetail_20' ) start [2025-02-14 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477181', 'tblTempUsageDetail_20' ) end [2025-02-14 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477181', 'tblTempVendorCDR_20' ) start [2025-02-14 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477181', 'tblTempVendorCDR_20' ) end [2025-02-14 23:44:18] Production.INFO: ProcessCDR(1,14477181,1,1,2) [2025-02-14 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477181', 'tblTempUsageDetail_20' ) start [2025-02-14 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477181', 'tblTempUsageDetail_20' ) end [2025-02-14 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:44:22] Production.INFO: ==12688== Releasing lock... [2025-02-14 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:44:22] Production.INFO: 38 MB #Memory Used# [2025-02-14 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:45:05 [end_date_ymd] => 2025-02-14 23:45:05 [RateCDR] => 1 ) [2025-02-14 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:45:05' and `end` < '2025-02-14 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:45:18] Production.INFO: count ==1325 [2025-02-14 23:45:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:45:05 - End Time 2025-02-14 23:45:05 [2025-02-14 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477186', 'tblTempUsageDetail_20' ) start [2025-02-14 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477186', 'tblTempUsageDetail_20' ) end [2025-02-14 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477186', 'tblTempVendorCDR_20' ) start [2025-02-14 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477186', 'tblTempVendorCDR_20' ) end [2025-02-14 23:45:19] Production.INFO: ProcessCDR(1,14477186,1,1,2) [2025-02-14 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477186', 'tblTempUsageDetail_20' ) start [2025-02-14 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477186', 'tblTempUsageDetail_20' ) end [2025-02-14 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:45:22] Production.INFO: ==12811== Releasing lock... [2025-02-14 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:45:22] Production.INFO: 38 MB #Memory Used# [2025-02-14 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:46:05 [end_date_ymd] => 2025-02-14 23:46:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:46:05' and `end` < '2025-02-14 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-02-14 23:46:18] Production.INFO: count ==1322 [2025-02-14 23:46:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:46:05 - End Time 2025-02-14 23:46:05 [2025-02-14 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477191', 'tblTempUsageDetail_20' ) start [2025-02-14 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477191', 'tblTempUsageDetail_20' ) end [2025-02-14 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477191', 'tblTempVendorCDR_20' ) start [2025-02-14 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477191', 'tblTempVendorCDR_20' ) end [2025-02-14 23:46:18] Production.INFO: ProcessCDR(1,14477191,1,1,2) [2025-02-14 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477191', 'tblTempUsageDetail_20' ) start [2025-02-14 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477191', 'tblTempUsageDetail_20' ) end [2025-02-14 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:46:22] Production.INFO: ==12895== Releasing lock... [2025-02-14 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:46:22] Production.INFO: 38 MB #Memory Used# [2025-02-14 23:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:47:06 [end_date_ymd] => 2025-02-14 23:47:06 [RateCDR] => 1 ) [2025-02-14 23:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:47:06' and `end` < '2025-02-14 23:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:47:19] Production.INFO: count ==1319 [2025-02-14 23:47:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:47:06 - End Time 2025-02-14 23:47:06 [2025-02-14 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477196', 'tblTempUsageDetail_20' ) start [2025-02-14 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477196', 'tblTempUsageDetail_20' ) end [2025-02-14 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477196', 'tblTempVendorCDR_20' ) start [2025-02-14 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477196', 'tblTempVendorCDR_20' ) end [2025-02-14 23:47:19] Production.INFO: ProcessCDR(1,14477196,1,1,2) [2025-02-14 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477196', 'tblTempUsageDetail_20' ) start [2025-02-14 23:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477196', 'tblTempUsageDetail_20' ) end [2025-02-14 23:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:47:24] Production.INFO: ==12980== Releasing lock... [2025-02-14 23:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:47:24] Production.INFO: 38 MB #Memory Used# [2025-02-14 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:48:05 [end_date_ymd] => 2025-02-14 23:48:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:48:05' and `end` < '2025-02-14 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-02-14 23:48:19] Production.INFO: count ==1318 [2025-02-14 23:48:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:48:05 - End Time 2025-02-14 23:48:05 [2025-02-14 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477201', 'tblTempUsageDetail_20' ) start [2025-02-14 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477201', 'tblTempUsageDetail_20' ) end [2025-02-14 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477201', 'tblTempVendorCDR_20' ) start [2025-02-14 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477201', 'tblTempVendorCDR_20' ) end [2025-02-14 23:48:19] Production.INFO: ProcessCDR(1,14477201,1,1,2) [2025-02-14 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477201', 'tblTempUsageDetail_20' ) start [2025-02-14 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477201', 'tblTempUsageDetail_20' ) end [2025-02-14 23:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:48:23] Production.INFO: ==13059== Releasing lock... [2025-02-14 23:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:48:23] Production.INFO: 38 MB #Memory Used# [2025-02-14 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:49:05 [end_date_ymd] => 2025-02-14 23:49:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:49:05' and `end` < '2025-02-14 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-02-14 23:49:18] Production.INFO: count ==1312 [2025-02-14 23:49:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:49:05 - End Time 2025-02-14 23:49:05 [2025-02-14 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477206', 'tblTempUsageDetail_20' ) start [2025-02-14 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477206', 'tblTempUsageDetail_20' ) end [2025-02-14 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477206', 'tblTempVendorCDR_20' ) start [2025-02-14 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477206', 'tblTempVendorCDR_20' ) end [2025-02-14 23:49:19] Production.INFO: ProcessCDR(1,14477206,1,1,2) [2025-02-14 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477206', 'tblTempUsageDetail_20' ) start [2025-02-14 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477206', 'tblTempUsageDetail_20' ) end [2025-02-14 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:49:22] Production.INFO: ==13143== Releasing lock... [2025-02-14 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:49:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-14 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:50:06 [end_date_ymd] => 2025-02-14 23:50:06 [RateCDR] => 1 ) [2025-02-14 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:50:06' and `end` < '2025-02-14 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:50:20] Production.INFO: count ==1311 [2025-02-14 23:50:20] Production.ERROR: pbx CDR StartTime 2025-02-14 20:50:06 - End Time 2025-02-14 23:50:06 [2025-02-14 23:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477211', 'tblTempUsageDetail_20' ) start [2025-02-14 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477211', 'tblTempUsageDetail_20' ) end [2025-02-14 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477211', 'tblTempVendorCDR_20' ) start [2025-02-14 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477211', 'tblTempVendorCDR_20' ) end [2025-02-14 23:50:20] Production.INFO: ProcessCDR(1,14477211,1,1,2) [2025-02-14 23:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477211', 'tblTempUsageDetail_20' ) start [2025-02-14 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477211', 'tblTempUsageDetail_20' ) end [2025-02-14 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:50:23] Production.INFO: ==13230== Releasing lock... [2025-02-14 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:50:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-14 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:51:04 [end_date_ymd] => 2025-02-14 23:51:04 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:51:04' and `end` < '2025-02-14 23:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:51:18] Production.INFO: count ==1239 [2025-02-14 23:51:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:51:04 - End Time 2025-02-14 23:51:04 [2025-02-14 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477217', 'tblTempUsageDetail_20' ) start [2025-02-14 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477217', 'tblTempUsageDetail_20' ) end [2025-02-14 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477217', 'tblTempVendorCDR_20' ) start [2025-02-14 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477217', 'tblTempVendorCDR_20' ) end [2025-02-14 23:51:18] Production.INFO: ProcessCDR(1,14477217,1,1,2) [2025-02-14 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477217', 'tblTempUsageDetail_20' ) start [2025-02-14 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477217', 'tblTempUsageDetail_20' ) end [2025-02-14 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:51:21] Production.INFO: ==13314== Releasing lock... [2025-02-14 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:51:21] Production.INFO: 37 MB #Memory Used# [2025-02-14 23:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:52:06 [end_date_ymd] => 2025-02-14 23:52:06 [RateCDR] => 1 ) [2025-02-14 23: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-02-14 20:52:06' and `end` < '2025-02-14 23: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-02-14 23:52:19] Production.INFO: count ==1215 [2025-02-14 23:52:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:52:06 - End Time 2025-02-14 23:52:06 [2025-02-14 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477222', 'tblTempUsageDetail_20' ) start [2025-02-14 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477222', 'tblTempUsageDetail_20' ) end [2025-02-14 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477222', 'tblTempVendorCDR_20' ) start [2025-02-14 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477222', 'tblTempVendorCDR_20' ) end [2025-02-14 23:52:19] Production.INFO: ProcessCDR(1,14477222,1,1,2) [2025-02-14 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477222', 'tblTempUsageDetail_20' ) start [2025-02-14 23:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477222', 'tblTempUsageDetail_20' ) end [2025-02-14 23:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:52:24] Production.INFO: ==13397== Releasing lock... [2025-02-14 23:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:52:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-14 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:53:05 [end_date_ymd] => 2025-02-14 23:53:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:53:05' and `end` < '2025-02-14 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-02-14 23:53:18] Production.INFO: count ==1210 [2025-02-14 23:53:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:53:05 - End Time 2025-02-14 23:53:05 [2025-02-14 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477227', 'tblTempUsageDetail_20' ) start [2025-02-14 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477227', 'tblTempUsageDetail_20' ) end [2025-02-14 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477227', 'tblTempVendorCDR_20' ) start [2025-02-14 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477227', 'tblTempVendorCDR_20' ) end [2025-02-14 23:53:18] Production.INFO: ProcessCDR(1,14477227,1,1,2) [2025-02-14 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477227', 'tblTempUsageDetail_20' ) start [2025-02-14 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477227', 'tblTempUsageDetail_20' ) end [2025-02-14 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:53:21] Production.INFO: ==13480== Releasing lock... [2025-02-14 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:53:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-14 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:54:05 [end_date_ymd] => 2025-02-14 23:54:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:54:05' and `end` < '2025-02-14 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-02-14 23:54:19] Production.INFO: count ==1205 [2025-02-14 23:54:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:54:05 - End Time 2025-02-14 23:54:05 [2025-02-14 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477232', 'tblTempUsageDetail_20' ) start [2025-02-14 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477232', 'tblTempUsageDetail_20' ) end [2025-02-14 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477232', 'tblTempVendorCDR_20' ) start [2025-02-14 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477232', 'tblTempVendorCDR_20' ) end [2025-02-14 23:54:19] Production.INFO: ProcessCDR(1,14477232,1,1,2) [2025-02-14 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477232', 'tblTempUsageDetail_20' ) start [2025-02-14 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477232', 'tblTempUsageDetail_20' ) end [2025-02-14 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:54:22] Production.INFO: ==13560== Releasing lock... [2025-02-14 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:54:22] Production.INFO: 37 MB #Memory Used# [2025-02-14 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:55:05 [end_date_ymd] => 2025-02-14 23:55:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:55:05' and `end` < '2025-02-14 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-02-14 23:55:18] Production.INFO: count ==1201 [2025-02-14 23:55:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:55:05 - End Time 2025-02-14 23:55:05 [2025-02-14 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477237', 'tblTempUsageDetail_20' ) start [2025-02-14 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477237', 'tblTempUsageDetail_20' ) end [2025-02-14 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477237', 'tblTempVendorCDR_20' ) start [2025-02-14 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477237', 'tblTempVendorCDR_20' ) end [2025-02-14 23:55:18] Production.INFO: ProcessCDR(1,14477237,1,1,2) [2025-02-14 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477237', 'tblTempUsageDetail_20' ) start [2025-02-14 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477237', 'tblTempUsageDetail_20' ) end [2025-02-14 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:55:21] Production.INFO: ==13643== Releasing lock... [2025-02-14 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:55:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-14 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:56:06 [end_date_ymd] => 2025-02-14 23:56:06 [RateCDR] => 1 ) [2025-02-14 23:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 20:56:06' and `end` < '2025-02-14 23:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-14 23:56:19] Production.INFO: count ==1199 [2025-02-14 23:56:20] Production.ERROR: pbx CDR StartTime 2025-02-14 20:56:06 - End Time 2025-02-14 23:56:06 [2025-02-14 23:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477242', 'tblTempUsageDetail_20' ) start [2025-02-14 23:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477242', 'tblTempUsageDetail_20' ) end [2025-02-14 23:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477242', 'tblTempVendorCDR_20' ) start [2025-02-14 23:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477242', 'tblTempVendorCDR_20' ) end [2025-02-14 23:56:20] Production.INFO: ProcessCDR(1,14477242,1,1,2) [2025-02-14 23:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477242', 'tblTempUsageDetail_20' ) start [2025-02-14 23:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477242', 'tblTempUsageDetail_20' ) end [2025-02-14 23:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:56:23] Production.INFO: ==13729== Releasing lock... [2025-02-14 23:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:56:23] Production.INFO: 37 MB #Memory Used# [2025-02-14 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:57:05 [end_date_ymd] => 2025-02-14 23:57:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:57:05' and `end` < '2025-02-14 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-02-14 23:57:18] Production.INFO: count ==1199 [2025-02-14 23:57:19] Production.ERROR: pbx CDR StartTime 2025-02-14 20:57:05 - End Time 2025-02-14 23:57:05 [2025-02-14 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477247', 'tblTempUsageDetail_20' ) start [2025-02-14 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477247', 'tblTempUsageDetail_20' ) end [2025-02-14 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477247', 'tblTempVendorCDR_20' ) start [2025-02-14 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477247', 'tblTempVendorCDR_20' ) end [2025-02-14 23:57:19] Production.INFO: ProcessCDR(1,14477247,1,1,2) [2025-02-14 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477247', 'tblTempUsageDetail_20' ) start [2025-02-14 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477247', 'tblTempUsageDetail_20' ) end [2025-02-14 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:57:22] Production.INFO: ==13809== Releasing lock... [2025-02-14 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:57:22] Production.INFO: 37 MB #Memory Used# [2025-02-14 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:58:05 [end_date_ymd] => 2025-02-14 23:58:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:58:05' and `end` < '2025-02-14 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-02-14 23:58:18] Production.INFO: count ==1199 [2025-02-14 23:58:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:58:05 - End Time 2025-02-14 23:58:05 [2025-02-14 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477252', 'tblTempUsageDetail_20' ) start [2025-02-14 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477252', 'tblTempUsageDetail_20' ) end [2025-02-14 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477252', 'tblTempVendorCDR_20' ) start [2025-02-14 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477252', 'tblTempVendorCDR_20' ) end [2025-02-14 23:58:18] Production.INFO: ProcessCDR(1,14477252,1,1,2) [2025-02-14 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477252', 'tblTempUsageDetail_20' ) start [2025-02-14 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477252', 'tblTempUsageDetail_20' ) end [2025-02-14 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:58:22] Production.INFO: ==13902== Releasing lock... [2025-02-14 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:58:22] Production.INFO: 37 MB #Memory Used# [2025-02-14 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 20:59:05 [end_date_ymd] => 2025-02-14 23:59:05 [RateCDR] => 1 ) [2025-02-14 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-02-14 20:59:05' and `end` < '2025-02-14 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-02-14 23:59:18] Production.INFO: count ==1195 [2025-02-14 23:59:18] Production.ERROR: pbx CDR StartTime 2025-02-14 20:59:05 - End Time 2025-02-14 23:59:05 [2025-02-14 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-14 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477257', 'tblTempUsageDetail_20' ) start [2025-02-14 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477257', 'tblTempUsageDetail_20' ) end [2025-02-14 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477257', 'tblTempVendorCDR_20' ) start [2025-02-14 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477257', 'tblTempVendorCDR_20' ) end [2025-02-14 23:59:18] Production.INFO: ProcessCDR(1,14477257,1,1,2) [2025-02-14 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-14 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-14 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477257', 'tblTempUsageDetail_20' ) start [2025-02-14 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477257', 'tblTempUsageDetail_20' ) end [2025-02-14 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-14 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-14 23:59:21] Production.INFO: ==13983== Releasing lock... [2025-02-14 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-14 23:59:21] Production.INFO: 37 MB #Memory Used#